Compare commits

..
Author SHA1 Message Date
cflmy 33df185e04 fix(proof): distinguish kernel checking at issuance from independent certificate replay 2026-11-18 17:00:13 +08:00
cflmy f8d2f0a9d6 ci(release): run full 2.9.0 promotion preflight on PR; only tag on verified main 2026-11-18 16:58:55 +08:00
cflmy c952765845 merge: reconcile 2.9.0 proof release with latest native AI extension updates 2026-11-18 16:58:35 +08:00
cflmy 8440e563e8 release: prepare Marqdo v2.9.0 full with exact versioning, documented proof limits, and guarded tag promotion 2026-11-18 16:57:04 +08:00
cflmy a5a9001a54 test(proof): assert core-Lean branch case analysis instead of Mathlib tactic 2026-11-18 16:45:14 +08:00
cflmy 074c4e4994 fix(proof): use core Lean by_cases/simp_all instead of unavailable split_ifs tactic 2026-11-18 16:45:03 +08:00
cflmy 5d6b8e66b8 fix(proof): preserve existing simple-forwarder receipts while unifying complex DAG and branching contracts 2026-11-18 16:40:34 +08:00
cflmy 1d7d376396 docs(architecture): record verified knowledge compiler goals, Lean limits, evidence grades and stop criteria 2026-11-18 16:39:34 +08:00
cflmy d919e886d8 ci(proof): gate unified 3-module branch composition and evidence-grade integrity 2026-11-18 16:39:05 +08:00
cflmy 4bec0f809e test(proof): 3-level contract DAG, sequential calls, exhaustive branches, and Lean replay 2026-11-18 16:38:59 +08:00
cflmy cba6218cdb fix(proof): avoid self-borrow conflicts and handle solved Lean subgoals 2026-11-18 16:38:35 +08:00
cflmy 97b38c6311 feat(knowledge): expose proven-vs-assumed evidence on modular obligations without promoting audit to proof 2026-11-18 16:38:10 +08:00
cflmy 65b876d6d7 feat(knowledge): attach nonpromoting evidence levels to proof links, index and replay 2026-11-18 16:38:01 +08:00
cflmy d67689f295 feat(proof): prioritize unified contract DAG while retaining legacy certificate replay 2026-11-18 16:37:53 +08:00
cflmy f84e79250c feat(proof): prioritize unified contract DAG while retaining legacy certificate replay 2026-11-18 16:37:50 +08:00
cflmy 1b0ca8e3c8 feat(proof): prioritize unified contract DAG while retaining legacy certificate replay 2026-11-18 16:37:48 +08:00
cflmy de1716cc8d feat(knowledge): wire unified proof engine and evidence lattice 2026-11-18 16:37:39 +08:00
cflmy eab44128f9 feat(knowledge): typed provenance evidence grades with strict runtime-proof nonpromotion 2026-11-18 16:37:33 +08:00
cflmy 024b6b5bec feat(knowledge): unified source-driven modular contracts for pure sequential, branched and transitive calls 2026-11-18 16:37:18 +08:00
cflmy ec80b00b15 ci(proof): add full source-to-Lean, semantic, knowledge and runtime regression gate 2026-11-18 15:26:50 +08:00
cflmy e282dae2b8 ci(proof): gate source-derived linear path preconditions against Lean kernel 2026-11-18 15:23:38 +08:00
cflmy e2953153dd test(proof): real Lean linear arithmetic callsite implication and runtime-scope guard 2026-11-18 15:23:31 +08:00
cflmy 52c7690324 feat(proof): preserve source arithmetic in exact branch path obligations 2026-11-18 15:23:22 +08:00
cflmy a5c250641d feat(proof): source-derived linear arithmetic symbolic path VCs with nonlinear fail-closed 2026-11-18 15:23:03 +08:00
cflmy 0f54b33971 fix(proof): use public SymbolId re-export to restore Rust compilation 2026-11-18 15:19:51 +08:00
cflmy 3cb85fc48e test(proof): explicitly identify Marqdo parameter variables in expression fixtures 2026-11-18 15:19:23 +08:00
cflmy a49a507c21 ci(proof): gate pure-expression source matching and independently replayed Lean certificates 2026-11-18 15:17:53 +08:00
cflmy 176ba3832b test(proof): real Lean arithmetic module composition and stale/false claim rejection 2026-11-18 15:17:47 +08:00
cflmy 05ef930878 feat(proof): compose/replay polymorphic source-derived arithmetic contract proof certificates 2026-11-18 15:17:35 +08:00
cflmy bfe7d73862 feat(proof): register independently checked pure-expression proof backend 2026-11-18 15:17:26 +08:00
cflmy 21f1003450 feat(proof): source-matched pure arithmetic contract composition and independent Lean replay 2026-11-18 15:17:13 +08:00
cflmy eda0bad6d5 refactor(proof): reuse source-resolved forwarder and exact closure logic across verified composition backends 2026-11-18 15:16:47 +08:00
cflmy 07623f613f docs(proof): specify parameter projection certificates, real Lean scope and unresolved general semantics 2026-11-18 15:07:40 +08:00
cflmy 8aa6a70fe9 fix(proof): require unique source declarations and semantic symbols for projection certificates 2026-11-18 15:07:31 +08:00
cflmy 57e060477a fix(proof): restore literal backtick identifiers in real-Lean fixtures 2026-11-18 15:04:38 +08:00
cflmy cd07e9a959 fix(proof): correct raw Marqdo parameter fixtures and literal backtick encoding 2026-11-18 15:04:31 +08:00
cflmy 261b2d77ed test(proof): symbolic argument permutation and ambiguous projection contracts fail closed 2026-11-18 15:03:29 +08:00
cflmy ec567a70e6 ci(proof): execute parameter projection composition and replay against real Lean 2026-11-18 15:03:01 +08:00
cflmy e125636767 test(proof): real Lean parameter-projection caller proof, replay and stale-source refusal 2026-11-18 15:02:54 +08:00
cflmy 4981a77d5e feat(proof): compose and replay independently verified parameter projections 2026-11-18 15:02:42 +08:00
cflmy 9b82044b69 feat(proof): register parameter projection proof backend 2026-11-18 15:02:33 +08:00
cflmy 8f5d3e1a03 feat(proof): independent Lean projection-contract composition with source-bound replay 2026-11-18 15:02:24 +08:00
cflmy d0d9b7a9c0 docs(proof): clarify strict claim uniqueness and intermodule certificate boundary 2026-11-18 15:00:06 +08:00
cflmy bb41674665 test(proof): duplicate matching constant contracts fail closed 2026-11-18 14:59:52 +08:00
cflmy bf546eb62d fix(proof): reject ambiguous constant claims and same-file pseudo-composition 2026-11-18 14:59:41 +08:00
cflmy 6a2d0067ad docs(proof): document exact closure and unique callsite replay gate 2026-11-18 14:58:48 +08:00
cflmy c61af4b829 test(proof): reject duplicate, injected and stale composition closure receipts 2026-11-18 14:58:36 +08:00
cflmy 1965faf189 fix(proof): require unambiguous composition replay and exact source closure set 2026-11-18 14:58:27 +08:00
cflmy b982c1dbe0 ci(proof): recheck deterministic source-to-Lean regeneration against original proof receipts 2026-11-18 14:00:36 +08:00
cflmy a2629068fd security(proof): regenerate plan and Lean source from current Marqdo before accepting cached theorem receipts 2026-11-18 14:00:25 +08:00
cflmy 2f79ffd646 security(sema): unknown earlier branch guards block proof of all subsequent else/elif arms 2026-11-18 13:57:12 +08:00
cflmy c09dcc50b2 ci(lean): verify stronger symbolic branch guard implication end to end under real Lean 2026-11-18 13:55:30 +08:00
cflmy 5ee23d8fc8 ci: cancel outdated modular proof smoke jobs to prioritize latest validated branch head 2026-11-18 13:53:43 +08:00
cflmy 8f9b8cbf34 fix(symbolic): encode non-identical guard implication as optional exact index for omega proof 2026-11-18 13:53:14 +08:00
cflmy fcc4d27856 test(lean): omega proves stronger symbolic branch guard without promoting runtime proof status 2026-11-18 13:52:46 +08:00
cflmy 7881cd4663 ci(lean): focused smoke tests also kernel-check abstract ABI/exception/loop models 2026-11-18 13:52:33 +08:00
cflmy 65779ef2ae feat(modular): explicitly distinguish Int abstraction from verified Marqdo runtime type domain 2026-11-18 13:51:42 +08:00
cflmy 6f4575e4d5 fix(proof): run Lean on Number-contract Int abstraction but never claim runtime type equivalence 2026-11-18 13:51:39 +08:00
cflmy 4a142843c8 feat(proof): admit only Int abstraction for Number contracts and generate omega path implication goals 2026-11-18 13:51:30 +08:00
cflmy 9956f2ff1f docs(proof): acknowledge number/int/float contract normalization and limited Int-model certificate scope 2026-11-18 13:51:03 +08:00
cflmy 761f35201d test(proof): require explicit Int-model-only composition scope, not arbitrary runtime number correctness 2026-11-18 13:50:44 +08:00
cflmy 5b785a196c fix(proof): treat canonical number contract only as Int-model proof, never claim runtime i64 typing 2026-11-18 13:50:35 +08:00
cflmy 15ae30ff70 ci(proof): kernel-check stateful ABI failure and finite-fuel loop semantics 2026-11-18 13:49:36 +08:00
cflmy e6b9e4f83b feat(lean): model stateful ABI outcomes and fuel-bounded loops without assuming plugin correctness or termination 2026-11-18 13:49:30 +08:00
cflmy d4514f7b0c ci(modular): focused isolated composition/VC tests and real Lean replay with diagnostics 2026-11-18 13:47:54 +08:00
cflmy a8e7b1bb05 debug(composition): explain precise AST, call binding, type and evidence rejection gates 2026-11-18 13:45:53 +08:00
cflmy 167d2fadda test(modular): print exact source-grounded eligibility diagnostics on composition regression failure 2026-11-18 13:44:39 +08:00
cflmy bf80f4527e feat(composition): return source-grounded rejection diagnostics for unsupported proof fragments 2026-11-18 13:44:18 +08:00
cflmy 7436ecaa3e fix(lean): emit actual newlines and indented tactic in independent caller and callee modules 2026-11-18 13:43:12 +08:00
cflmy a46f01b906 docs(modular): document independent Lean caller certificate and replay, including loop/ABI/symbolic limitations 2026-11-18 13:42:28 +08:00
cflmy ca92b031b1 test(lean): independently replay caller certificate and reject stale callee source 2026-11-18 13:41:44 +08:00
cflmy 3a5c7478a0 feat(cli): knowledge replay checks independently issued composition certificate and current semantic source 2026-11-18 13:41:34 +08:00
cflmy ccf513aa4b feat(proof): independently replay caller composition certificate against current source and two Lean module hashes 2026-11-18 13:41:26 +08:00
cflmy e242870d0f ci(lean): run semantic proof module tests and trigger on knowledge compiler changes 2026-11-18 13:41:00 +08:00
cflmy dba9b31726 ci(proof): include new symbolic branch, closed VC and independent composition unit tests 2026-11-18 13:40:53 +08:00
cflmy 32859c48d3 test(modular): source-grounded independent composition accepts pure forwarding and rejects branches 2026-11-18 13:40:24 +08:00
cflmy 1cd0ddaa50 fix(prove): preserve existing proof tactic scaffold while separately simplifying imported arithmetic 2026-11-18 13:40:10 +08:00
cflmy 16d9cc1610 fix(lean): annotate polymorphic divergence type to discharge implicit universe inference 2026-11-18 13:39:34 +08:00
cflmy 1f730ad4fd test(lean): independent callee theorem imports into caller composition and produces scope-limited certificate 2026-11-18 13:39:02 +08:00
cflmy 8dede5b888 feat(cli): knowledge compose produces independent Lean import proof and restricted replayable composition certificate 2026-11-18 13:38:49 +08:00
cflmy ff1887d6a3 feat(knowledge): export independent two-module Lean composition prover 2026-11-18 13:38:42 +08:00
cflmy 54f38b1b40 security(composition): require exact resolved forwarded call identity and unique bound call 2026-11-18 13:38:24 +08:00
cflmy 92fee48910 feat(modular): create standalone Lean callee and caller modules with replayable composed certificate for pure typed-int forwarders 2026-11-18 13:38:00 +08:00
cflmy 4e61b33c90 feat(lean): compile independent imported Lean proof modules with timeout and source race detection 2026-11-18 13:37:40 +08:00
cflmy e5da4e90fd fix(prove): unfold bounded arithmetic helper equations in Lean auto proofs of imported pure functions 2026-11-18 13:36:32 +08:00
cflmy b9fc9f1dbf fix(knowledge): canonicalize empty parent as current directory when compiling bare filename 2026-11-18 13:36:20 +08:00
cflmy e833898fb5 feat(lean): total-correctness assume-guarantee theorem tracks plugin error and loop divergence explicitly 2026-11-18 13:35:41 +08:00
cflmy d8182ae405 feat(cli): Lean-check typed symbolic branch path goals as model proofs without upgrading runtime contract status 2026-11-18 13:35:08 +08:00
cflmy e48172153c test(modular): branch guard with typed symbolic caller param generates Lean implication without assuming callee result 2026-11-18 13:34:48 +08:00
cflmy 6807600404 feat(modular): publish symbolic guarded goals, block effects and loops before contract audit success 2026-11-18 13:34:39 +08:00
cflmy 986ddb0040 feat(proof): expose symbolic path-sensitive Lean goal generator 2026-11-18 13:34:32 +08:00
cflmy 9e09a4434f feat(proof): generate branch-guarded symbolic Int Lean goals without assuming runtime equivalence 2026-11-18 13:34:19 +08:00
cflmy 668c465658 feat(sema): preserve branch path predicates and loop blockers on bound calls for modular symbolic VCs 2026-11-18 13:33:51 +08:00
cflmy 57a57745da fix(sema): remove duplicate derive and restore BoundCall Debug Clone Eq after StaticCallArg insertion 2026-11-18 13:32:30 +08:00
cflmy 38785c5960 test(lean): remove redundant fixture string transformation in modular replay test 2026-11-18 13:03:25 +08:00
cflmy 8c93c9711b docs(modular): document real Lean receipt replay, closed callsite VCs and explicit incomplete proof boundaries 2026-11-18 13:02:44 +08:00
cflmy 1763891ba9 test(proof): kernel must replay callee proof and closed caller premise before contract becomes available 2026-11-18 13:02:18 +08:00
cflmy faafc75129 security(modular): require Lean replay of callee certificates before discharging caller preconditions 2026-11-18 13:02:08 +08:00
cflmy c0ac1f4599 security(proof): re-run Lean kernel on every imported receipt before accepting modular --verify 2026-11-18 13:01:49 +08:00
cflmy 35bd542a04 test(proof): tampering with generated Lean source invalidates otherwise valid certificate 2026-11-18 13:01:05 +08:00
cflmy df9f7fea84 security(lean): reject modified goal module during kernel invocation 2026-11-18 13:00:29 +08:00
cflmy a198cbfdd0 test(proof): real imported call has exact actuals and generated Lean goal, not assumed proof 2026-11-18 13:00:01 +08:00
cflmy 9d41779c22 test(modular): keep unknown-argument preconditions pending rather than guessing a Lean bridge 2026-11-18 12:59:46 +08:00
cflmy 553bf1aeb0 security(proof): validate Lean source, plan cache key and embedded proof-library identity before reusing receipts 2026-11-18 12:58:56 +08:00
cflmy 9e181704f5 test(proof): invalid actual argument cannot inherit verified callee proof 2026-11-18 12:58:19 +08:00
cflmy 88295a40c9 test(proof): end-to-end real Lean checks closed imported precondition and verified callee certificate 2026-11-18 12:58:07 +08:00
cflmy 9072e1b8a7 security(proof): derive VC actuals only after runtime-equivalent call normalization 2026-11-18 12:57:50 +08:00
cflmy 4b2f3c8e15 feat(cli): knowledge proof-deps --verify invokes Lean to discharge closed actual-argument preconditions 2026-11-18 12:57:33 +08:00
cflmy edd477c967 feat(lean): check closed modular precondition goals with real Lean process and timeout 2026-11-18 12:57:21 +08:00
cflmy 270d8b8148 feat(modular): expose instantiated actual-argument Lean goals and accept only kernel-discharge results 2026-11-18 12:57:10 +08:00
cflmy a1a933b112 feat(proof): expose closed callsite Lean verification conditions 2026-11-18 12:56:53 +08:00
cflmy d99d6e46d4 feat(proof): generate strictly closed actual-argument Lean precondition goals with checked i64 semantics 2026-11-18 12:56:34 +08:00
cflmy 40b87bd15e feat(sema): retain exact call-site arg identities and overflow-safe closed integer actuals for modular VCs 2026-11-18 12:56:12 +08:00
cflmy 7d00043236 test(proof): reject overflowing actual call argument in cross-module source proof 2026-11-18 12:52:03 +08:00
cflmy ebe795f847 security(proof): require call argument arithmetic itself to be closed and i64-safe before imported proof inlining 2026-11-18 12:51:55 +08:00
cflmy 50786ddea0 security(proof): keep imported division opaque pending interpreter-to-Lean quotient semantic equivalence 2026-11-18 12:51:44 +08:00
cflmy 42600c8a2c docs(proof): define limits of pure source transparency and bounded i64 arithmetic 2026-11-18 12:51:01 +08:00
cflmy 8e41337e17 test(proof): arithmetic overflow at imported call boundary remains opaque, not misproved by unbounded Lean Int 2026-11-18 12:50:20 +08:00
cflmy b168e56dd0 security(proof): reject unsafe i64 overflow and division-by-zero in imported pure-source proof inlining 2026-11-18 12:50:11 +08:00
cflmy 26fc74646c test(prove): verify actual call argument substitution across imported pure module with Lean 2026-11-18 12:49:28 +08:00
cflmy 70249bc972 test(prove): effectful imported calls remain opaque, never silently inlined for Lean 2026-11-18 12:47:29 +08:00
cflmy a1fd279641 test(prove): real Lean proves function across file import through sound pure-leaf source substitution 2026-11-18 12:47:06 +08:00
cflmy 51aa97fb2c feat(prove): verify narrow pure imported leaf calls through exact source substitution rather than opaque model 2026-11-18 12:46:55 +08:00
cflmy 7ac2456b76 test(modular): even verified callee requires clause cannot self-discharge caller bridge 2026-11-18 12:46:28 +08:00
cflmy 267a304a04 fix(modular): use compiler-resolved caller identity in proof obligation graph 2026-11-18 12:45:45 +08:00
cflmy c4ccce13c0 fix(sema): bind every static call to exact owning SymbolId, never infer caller by source line 2026-11-18 12:45:39 +08:00
cflmy f25108f04c docs(proof): distinguish Lean composition rule, proof graph audit and missing runtime entailment 2026-11-18 12:45:20 +08:00
cflmy 51cb8d52f2 feat(proof): show declared but undischarged operation assumptions alongside proof receipts 2026-11-18 12:44:48 +08:00
cflmy ab6c781947 fix(proof): check --proof rejects malformed/misplaced assumption tables instead of silently treating as evidence 2026-11-18 12:44:30 +08:00
cflmy 4da9e2d775 fix(cli): proof-deps works with bare .mq.md filename in current directory 2026-11-18 12:44:10 +08:00
cflmy ab6eca1b68 fix(knowledge): accept bare filename as project root dot in Lean proof publication 2026-11-18 12:44:00 +08:00
cflmy 24cbc61ca5 test(modular): use canonical nested imported class path for bound-call proof obligations 2026-11-18 12:43:19 +08:00
cflmy 37ebbfd319 test(knowledge): assumed operation tables publish inert contract metadata, never a proof 2026-11-18 12:43:12 +08:00
cflmy 6854fcd33b feat(modular): bind caller assumption declarations to exact static callsite and expose pending obligations 2026-11-18 12:42:57 +08:00
cflmy 4ae150eb7b feat(knowledge): publish modular assumption identities and declarations in semantic graph 2026-11-18 12:42:47 +08:00
cflmy 2cdb453547 test(proof): assumption tables survive into IR and cannot confer proof status alone 2026-11-18 12:42:27 +08:00
cflmy 6a9441d188 test(proof): GFM assumption tables remain metadata and coexist with theorem tables 2026-11-18 12:41:34 +08:00
cflmy 4495021b70 feat(prove): lower modular assumption declarations into explicit proof IR 2026-11-18 12:41:21 +08:00
cflmy c185078bb8 feat(contract): parse explicit assume-guarantee operation tables with strict row validation 2026-11-18 12:41:14 +08:00
cflmy a2cab8cdb1 feat(parse): extract GFM assumption tables before executable body without changing runtime semantics 2026-11-18 12:41:05 +08:00
cflmy 663c44ead7 feat(proof): carry non-executable assumption table declarations in function AST 2026-11-18 12:41:02 +08:00
cflmy 21a70198b2 ci(proof): kernel-check modular assume-guarantee composition lemma and missing-bridge counterexample 2026-11-18 12:39:48 +08:00
cflmy cefcc9e0d1 fix(proof): use core Lean elimination for modular composition counterexample 2026-11-18 12:39:39 +08:00
cflmy 0fdc9f1309 fix(lean): make modular-rule counterexample use identity downstream function without omega 2026-11-18 12:39:31 +08:00
cflmy d9a1df72ab feat(proof): Lean-checked assume–guarantee composition rule with explicit call-site bridge 2026-11-18 12:39:22 +08:00
cflmy d2a44afbd7 test(modular): strict knowledge proof-deps rejects unproven claims with machine-readable obligations 2026-11-18 12:39:10 +08:00
cflmy cc1788ca64 test(proof): use valid nested imported class path and require bound call before invalidation 2026-11-18 12:39:02 +08:00
cflmy ac3777882c feat(cli): add marqdo knowledge proof-deps --strict for machine-checkable modular proof obligations 2026-11-18 12:38:24 +08:00
cflmy 819051d2af feat(proof): audit verified callee receipts and independent caller claims without conflating graph audit with formal proof 2026-11-18 12:38:16 +08:00
cflmy 77989362ca fix(sema): bind imported calls to full declaration path for sound transitive proof invalidation 2026-11-18 12:36:36 +08:00
cflmy da0fc6a188 fix(proof): keep modular verifier compatible with Rust 1.81 2026-11-18 12:35:46 +08:00
cflmy 25833895db feat(knowledge): atomically publish proof obligation graph with semantic generation 2026-11-18 12:35:43 +08:00
cflmy 5c728b6581 feat(knowledge): expose module proof dependency planner 2026-11-18 12:35:40 +08:00
cflmy 980309a6e0 feat(proof): add fail-closed intermodule proof obligation graph and contract precondition tracking 2026-11-18 12:35:33 +08:00
cflmy 475a0d6810 fix(sema): initialize target_claim exactly once in both knowledge ref variants 2026-11-18 12:34:37 +08:00
cflmy f18e7691be test(prove): real Lean proof must survive semantic knowledge publication with validated cache 2026-11-18 12:06:02 +08:00
cflmy 79f3eca2f3 security(proof): verify declared claim and original certificate content before publishing proved receipts 2026-11-18 12:05:21 +08:00
cflmy c841bfb5dc test(proof): changed theorem conclusion cannot inherit old proof by matching function name 2026-11-18 12:04:13 +08:00
cflmy 9a22a70db7 test(knowledge): published theorem declarations are separate from proof status 2026-11-18 12:03:57 +08:00
cflmy 1e3f56d8e5 docs(knowledge): document stable theorem claim identity and proof-declaration references 2026-11-18 12:03:48 +08:00
cflmy 18dc20e138 docs(knowledge): document stable theorem claim identity and proof-declaration references 2026-11-18 12:03:45 +08:00
cflmy d38ec25d2c docs(knowledge): document stable theorem claim identity and proof-declaration references 2026-11-18 12:03:43 +08:00
cflmy dc4acda005 fix(knowledge): borrow resolved source path in knowledge diagnostics 2026-11-18 12:03:30 +08:00
cflmy a856bc52f4 fix(knowledge): use explicit file path type in duplicate theorem diagnostics 2026-11-18 12:03:22 +08:00
cflmy 9f7ae6c919 fix(knowledge): duplicate theorem names and ambiguous anchor links fail closed with diagnostics 2026-11-18 12:03:16 +08:00
cflmy 6e5f9bafb7 feat(parse): treat canonical theorem mq://claim references as inert Markdown knowledge links 2026-11-18 12:03:08 +08:00
cflmy 206b142444 test(knowledge): theorem table declarations gain inert stable claim addresses 2026-11-18 12:03:03 +08:00
cflmy 37dff4f757 test(knowledge): synthetic receipts require exact matching theorem tables in source 2026-11-18 12:02:56 +08:00
cflmy 34d90a114a feat(prove): bind receipts only when exact source theorem declaration and premise match 2026-11-18 12:02:43 +08:00
cflmy 1c06ed13e3 feat(knowledge): stable theorem claim identities in SemanticProject and inert claim references 2026-11-18 12:02:26 +08:00
cflmy 20f7602eb4 fix(knowledge): keep diagnostic positions in u32 source span representation 2026-11-18 12:01:42 +08:00
cflmy 12523fea4f feat(knowledge): emit source-located unresolved anchor diagnostics instead of silent fallback 2026-11-18 12:01:34 +08:00
cflmy f52e728c87 test(prove): verify genuine Lean receipt binds to semantic function proof link 2026-11-18 12:01:17 +08:00
cflmy 298e0e00c4 test(knowledge): verify full EK compile publishes anchors and proof index atomically 2026-11-18 12:00:34 +08:00
cflmy 7e194b41a3 examples(knowledge): Markdown-native anchor with function theorem and nonexecuting reference 2026-11-18 12:00:17 +08:00
cflmy c7ad19b5e1 examples(knowledge): Markdown-native anchor with function theorem and nonexecuting reference 2026-11-18 12:00:15 +08:00
cflmy d6485e8b5f test(knowledge): canonical mq:// cross-function narrative references do not execute 2026-11-18 11:59:49 +08:00
cflmy 79d58bb755 test(proof): invalidate dependent caller evidence when imported knowledge changes 2026-11-18 11:59:38 +08:00
cflmy f4059f57e4 docs(knowledge): specify stable anchor links and exact proof receipt trust boundaries 2026-11-18 11:59:03 +08:00
cflmy ba889ce87f test(knowledge): prove pipeline writes semantic claim linkage as artifact sidecar 2026-11-18 11:58:45 +08:00
cflmy 5236cf6fa3 feat(parse): classify mq:// knowledge-anchor links as inert narrative references 2026-11-18 11:58:18 +08:00
cflmy 95cf2e79a2 feat(knowledge): resolve inert Markdown knowledge anchor refs, fail closed for missing targets 2026-11-18 11:58:12 +08:00
cflmy b7a4bb5f57 test(knowledge): proof-owner linkage, stale invalidation, fake certificate and duplicate fail-closed checks 2026-11-18 11:57:33 +08:00
cflmy a0b0e01b07 fix(prove): gate knowledge linkage behind CLI feature 2026-11-18 11:57:24 +08:00
cflmy 1fb87b37c7 ci(knowledge): focused semantic anchors and proof linkage verification 2026-11-18 11:57:09 +08:00
cflmy eb56c0cf02 feat(knowledge): publish verified proof link index atomically in semantic generation 2026-11-18 11:57:02 +08:00
cflmy 2826924361 feat(prove): emit sidecar linking function claims to semantic identities 2026-11-18 11:56:59 +08:00
cflmy c989152c6d feat(knowledge): export proof linkage module 2026-11-18 11:56:57 +08:00
cflmy 40fd31a34a fix(knowledge): compare raw v2.8.0 source SHA-256 encoding 2026-11-18 11:56:55 +08:00
cflmy 06c54ec4db feat(knowledge): proof reports bind to exact function symbols and reject stale/counterfeit evidence 2026-11-18 11:56:41 +08:00
cflmy db4a7a848d test(knowledge): anchor stability across insertions, digest change and duplicate-label rejection 2026-11-18 11:55:36 +08:00
cflmy 8bf7ace9e3 feat(knowledge): stable unique marked-step anchors, definition digests and semantic projection 2026-11-18 11:55:26 +08:00
10 changed files with 99 additions and 106 deletions

No files matched your search

-40
View File
@@ -1,40 +0,0 @@
# Cargo feature compatibility gate.
#
# `sema` (the core compiler) must build without the `cli` feature. Library
# consumers such as qdagent depend on `marqdo` with `default-features = false`,
# so any unconditional reference to a `cli`-gated module is a release blocker.
# Keep this matrix in sync with the feature graph in Cargo.toml.
name: feature-matrix
on:
push:
branches: [main]
paths:
- "src/**"
- "Cargo.toml"
- "Cargo.lock"
- ".github/workflows/feature-matrix.yml"
pull_request:
paths:
- "src/**"
- "Cargo.toml"
- "Cargo.lock"
- ".github/workflows/feature-matrix.yml"
workflow_dispatch:
concurrency:
group: feature-matrix-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
lib-feature-matrix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.81.0
- name: Library builds with no default features
run: cargo check --locked --lib --no-default-features
- name: Library builds with only the cli feature
run: cargo check --locked --lib --no-default-features --features cli
- name: Library builds with default features
run: cargo check --locked --lib
+91
View File
@@ -0,0 +1,91 @@
# One-time, fail-closed promotion from verified main to immutable v2.9.0.
# GITHUB_TOKEN-created tag pushes do not recursively start tag workflows.
# Explicit workflow_dispatch is used to run the existing multi-platform
# Release workflow against the immutable tag itself.
name: Release v2.9.0 promotion
on:
push:
branches: [main]
paths:
- "Cargo.toml"
- "doc/releases/v2.9.0.md"
- ".github/workflows/release-v2.9.yml"
pull_request:
paths:
- "Cargo.toml"
- "Cargo.lock"
- "crates/marqdo-wasm/Cargo.toml"
- "ext/VERSION"
- "doc/releases/v2.9.0.md"
- ".github/workflows/release-v2.9.yml"
workflow_dispatch:
permissions:
contents: write
actions: write
concurrency:
group: release-v2.9-promotion
cancel-in-progress: false
jobs:
verify-and-dispatch:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: true
- uses: dtolnay/rust-toolchain@stable
- name: Verify complete, matching release metadata
run: |
set -euo pipefail
python3 - <<'PY'
import re, pathlib
want = '2.9.0'
for file in ['Cargo.toml', 'crates/marqdo-wasm/Cargo.toml']:
data = pathlib.Path(file).read_text()
assert re.search(r'^version\s*=\s*"2\.9\.0"\s*$', data, re.M), file
lock = pathlib.Path('Cargo.lock').read_text()
for name in ['marqdo', 'marqdo-wasm']:
assert re.search(r'\[\[package\]\]\nname = "'+name+r'"\nversion = "2\.9\.0"', lock), name
assert pathlib.Path('ext/VERSION').read_text().strip() == want
assert pathlib.Path('doc/releases/v2.9.0.md').exists()
PY
git diff --exit-code
- name: Install pinned Lean checker
run: |
curl -sSf https://elan.lean-lang.org/elan-init.sh | sh -s -- -y --default-toolchain leanprover/lean4:v4.35.0
echo "$HOME/.elan/bin" >> "$GITHUB_PATH"
- name: Validate Lean and source-derived proof library
run: |
lean --version
bash scripts/check-proof-library.sh
lean doc/verification/skill-proof/MarqdoModularProof.lean
lean doc/verification/skill-proof/MarqdoEffects.lean
- name: Build and gate source semantics, actual Lean and compatibility
env:
MARQDO_PROOF_REQUIRE_LEAN: "1"
run: |
cargo build --locked
cargo test --locked --lib knowledge::
cargo test --locked --test knowledge_proof
cargo test --locked --test prove_lean
cargo test --locked --test prove_corpus
cargo test --locked --test conformance
cargo test --locked --test executable_knowledge
cargo test --locked --test release_handbook
- name: Create v2.9.0 only once and dispatch full platform release
if: github.repository == 'cflmy/marqdo' && github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
env:
GH_TOKEN: ${{ github.token }}
run: |
set -euo pipefail
if git ls-remote --exit-code --tags origin refs/tags/v2.9.0 >/dev/null 2>&1; then
echo "v2.9.0 already exists; refusing to replace or re-dispatch assets"
exit 1
fi
test "$(git rev-parse HEAD)" = "$GITHUB_SHA"
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git tag -a v2.9.0 "$GITHUB_SHA" -m "Marqdo v2.9.0 full: Verified Knowledge Compiler"
git push origin refs/tags/v2.9.0
gh workflow run release.yml --ref v2.9.0
echo "Dispatched Release workflow for immutable tag v2.9.0"
+1 -17
View File
@@ -1,22 +1,6 @@
# Changelog
## v2.9.1 — 2026-11-18 · Full release / 正式补丁版本
Marqdo 2.9.1 修复 2.9.0 的库构建回归:`knowledge` 属于核心编译器,不再由 `cli` 特性门控,`default-features = false` 的下游库恢复可编译;并新增 feature-matrix CI 守卫。无运行时语义、插件 ABI 或证书格式变化。
**EN:** 2.9.1 fixes the 2.9.0 library regression where the core compiler's `knowledge` module was gated on `cli`, breaking `default-features = false` consumers; a feature-matrix CI gate now prevents regressions. No runtime semantics, plugin ABI or certificate format changes.
### Fixed
- Library builds with `--no-default-features` again. `sema::ir` unconditionally
emits `proof-index.json` / `proof-obligations.json` through `knowledge`, but
`knowledge` was gated on `cli`; it is now part of the core compiler, so
downstream crates using `default-features = false` no longer hit
`E0433: could not find knowledge in the crate root`.
- CI: `feature-matrix` checks the library with no features, `cli` only, and
default features to prevent feature-gate regressions.
详情 / Details: [2.9.1 release notes](doc/releases/v2.9.1.md).
## Unreleased
## v2.9.0 — 2026-11-18 · Full release / 正式完整版本
Generated
+3 -3
View File
@@ -1,6 +1,6 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 4
version = 3
[[package]]
name = "adler2"
@@ -615,7 +615,7 @@ checksum = "0ceec5bc11778974d1bcb055b18002eba7f4b3518b6a0081b3af5f21666da9ad"
[[package]]
name = "marqdo"
version = "2.9.1"
version = "2.9.0"
dependencies = [
"anyhow",
"assert_cmd",
@@ -656,7 +656,7 @@ dependencies = [
[[package]]
name = "marqdo-wasm"
version = "2.9.1"
version = "2.9.0"
dependencies = [
"marqdo",
"serde_json",
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "marqdo"
version = "2.9.1"
version = "2.9.0"
edition = "2021"
license = "Apache-2.0"
description = "Marqdo — Markdown markers as an interpreted programming language"
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "marqdo-wasm"
version = "2.9.1"
version = "2.9.0"
edition = "2021"
license = "Apache-2.0"
description = "Marqdo interpreter as WebAssembly (browser host bridge)"
-6
View File
@@ -1,9 +1,3 @@
marqdo (2.9.1-1ppa1) noble; urgency=medium
* Release 2.9.1; see the reviewed upstream CHANGELOG.
-- Marqdo Maintainers <cflmy@users.noreply.github.com> Wed, 18 Nov 2026 18:43:10 +0800
marqdo (2.8.0-1ppa1) noble; urgency=medium
* Release 2.8.0; see the reviewed upstream CHANGELOG.
-33
View File
@@ -1,33 +0,0 @@
# Marqdo v2.9.1 · Library Feature-Gate Fix / 库可选特性修复
## 核心更新 · Highlights
Marqdo 2.9.1 修复 2.9.0 引入的库构建回归:`sema::ir` 在输出 `proof-index.json` 与 `proof-obligations.json` 时无条件使用 `knowledge` 模块,而该模块此前只在 `cli` 特性下编译,导致以 `default-features = false` 依赖本库的下游工程出现 `E0433: could not find knowledge in the crate root`。
**EN:** Marqdo 2.9.1 fixes a library-build regression introduced in 2.9.0. `sema::ir` unconditionally emits `proof-index.json` and `proof-obligations.json` through the `knowledge` module, but that module was gated on the `cli` feature, so downstream crates depending on the library with `default-features = false` failed with `E0433: could not find knowledge in the crate root`.
- `knowledge` 现在是核心编译器的一部分,不再由 `cli` 特性门控;CLI 二进制仍由 `required-features = ["cli"]` 约束。
- 新增 `feature-matrix` CI:分别用无默认特性、仅 `cli`、默认特性检查库构建,防止特性门控再次回归。
- 没有运行时语义、文稿格式、插件 ABI(v2)或证明证书格式的变化。
## 兼容性 · Compatibility
- 2.9.0 的 `.mq.md` 文稿、原生插件(ABI v2)和知识证明证书保持兼容,无需迁移。
- 下游库可继续使用 `default-features = false`;2.9.0 期间为绕过该回归而启用的 `cli` 特性可以撤销。
- 不可变标签 `v2.9.0` 保持不变,本次是同一主线的补丁版本。
## 验证 · Verification
- `cargo check --locked --lib --no-default-features`、`--no-default-features --features cli` 与默认特性三种配置均通过。
- `cargo test --locked` 全量通过(Linux x86_64 本地环境)。
- 下游验证:qdagent 原生插件恢复 `default-features = false` 后重新编译通过,`cargo test` 17 项通过。
- 限制:Windows 与 Linux 发布产物由标签触发的 Release 流水线构建;本地验证不代表其他平台已通过,最终以实际流水线结果和资产校验为准。
## 完整发行产物 · Full distribution
The `v2.9.1` full packaging workflow produces:
- Windows x86_64 native CLI (standalone EXE and bundled ZIP);
- Linux x86_64 CLI+libraries bundle;
- standard library ZIP, source ZIP and static user-site ZIP;
- editor `marqdo-2.9.1.vsix` from the independent editor branch;
- both Windows and Linux official native plugin packs, plus the versioned extension source pack when `ext/VERSION` matches `2.9.1`.
+1 -1
View File
@@ -1 +1 @@
2.9.1
2.9.0
+1 -4
View File
@@ -19,10 +19,7 @@ pub mod capture;
pub mod narrative_ratio;
#[cfg(feature = "cli")]
pub mod catalog;
// `sema::ir` unconditionally emits `proof-index.json` and
// `proof-obligations.json` through this module, so it is part of the core
// compiler rather than the CLI surface. Gating it on `cli` broke library
// consumers that disable default features (E0433).
#[cfg(feature = "cli")]
pub mod knowledge;
pub mod check;
pub mod contract;