Commit Graph
272 Commits
Author SHA1 Message Date
cflmy 4bbefc9244 release: publish 3.0.0-rc.4 with analysis boundary evidence
ci/woodpecker/push/main Pipeline was successful
Record the RC_RELEASE_CANDIDATE gate manifest, same-SHA CI #94, frozen
extension 7/7, archive smoke, Ubuntu 24.04 cold install, disposable-VM strict
L1 PASS (uid 1000), archived-binary VM verification and the maintainer-approved
shared-node performance WARN for this named RC. Document that stable/LTS still
requires a dedicated fixed node and link the downstream view/lint issues.
2026-11-25 14:17:31 +08:00
cflmy 452e9a32bd docs: define RC shared-node policy and downstream Analysis integration
ci/woodpecker/push/main Pipeline was successful
RC candidates may use a maintainer-approved shared node with a recorded WARN;
stable/LTS still requires a dedicated fixed node. Add the migration guide for
marqdo-view and marqdo-lint covering exact source/AST consumption, the changed
unit span meaning, the stateful reference contract and the rejection of old
same-revision artifacts.
v3.0.0-rc.4
2026-11-25 13:19:41 +08:00
cflmy 63f62d5728 Merge issue #10: close the public Analysis boundary
ci/woodpecker/push/main Pipeline was successful
Replace the program-only Analysis v3 shape in place with the ADR-0069 boundary:
exact source and document AST, complete heading scope, entry/snapshot identity,
one shared document-link resolver, typed call/reference facts, semantic
validation and owner-only atomic emit. All code/CI/archive/conformance gates pass;
rc.4 publication is withheld (DO_NOT_RELEASE) pending the strict-VM and approved
G4 gates.
2026-11-25 11:55:36 +08:00
cflmy 4a4ca63b45 evidence: record the green follow-up CI tree
ci/woodpecker/push/main Pipeline was successful
Pipeline 91 is fully green for the CI-helper follow-up commit b1fc211; the
shipped-code candidate remains e0645f3 and the release decision remains
DO_NOT_RELEASE because strict VM and the approved G4 result are unavailable.
2026-11-25 11:55:21 +08:00
cflmy b1fc211916 ci: move the stale-Analysis assertion into a checked-in script
ci/woodpecker/push/main Pipeline was successful
The runner does not preserve shell quoting inside multiline YAML commands, so a
single-quoted Python -c kept aborting the contract lane. Use a small checked-in
tool instead; it appends one byte, runs the independent Observation consumer and
fails the lane unless the stale artifact is rejected.
2026-11-25 11:51:56 +08:00
cflmy 8473ac9827 evidence: record the rc.4 same-SHA CI, archive and conformance gates
ci/woodpecker/push/main Pipeline failed
Record pipeline #89 (all four lanes PASS) for e0645f3, the CI and local archive
hashes, archive smoke, Ubuntu 24.04 cold install and frozen extension 7/7.
The SHA-bound gate aggregate is DO_NOT_RELEASE: strict VM is UNVERIFIED and no
approved G4 node result exists, so rc.4 is not tagged or published.
2026-11-25 11:47:55 +08:00
cflmy e0645f376b schema: allow legal path characters and reject only real traversal
ci/woodpecker/push/main Pipeline was successful
Accept a double dot inside a file name and '::' in a module path; reject only an
absolute, drive, UNC or backslash path, duplicate separators, and '.'/'..'
path segments. This matches the loader and avoids over-rejecting legal files.
2026-11-25 11:40:22 +08:00
cflmy 7064c5f22c analysis: keep function and module identities injective
ci/woodpecker/push/main Pipeline was successful
Escape the module/function delimiter when a function name contains '::', so a
path segment containing the delimiter cannot make two FunctionId renderings
collide. Drop the temporary path restriction that rejected a legal '::' in a
module path; the structured path and name fields remain authoritative. Add an
identity regression test and revalidate the schema.
2026-11-25 11:37:39 +08:00
cflmy 31ccfe15f8 ci: make the stale-Analysis rejection step shell-safe
ci/woodpecker/push/main Pipeline was canceled
The multiline if/printf block was truncated by the runner shell, so the
contract lane aborted with a syntax error after all protocol consumers had
already passed. Replace it with a single Python byte-append and an && guard;
the assertion still requires the stale artifact to be rejected.
2026-11-25 11:34:14 +08:00
cflmy 1543d33c8a evidence: record rc.4 archive smoke and cold-install gates
The packaged 3.0.0-rc.4 archive passes the archive-only smoke (stdlib digests,
Analysis/Observation consumers, Tool dispatch, workers, strict refusal) and the
container-only cold install on Ubuntu 24.04 with no Cargo and no network.
2026-11-25 11:22:13 +08:00
cflmy 8737e093d6 release: prepare 3.0.0-rc.4 and record the Analysis boundary
ci/woodpecker/push/main Pipeline failed
Bump the workspace product version, document the in-place Analysis contract
replacement, update the current-facing guides and architecture overview, and
record the local gate plus the 101-module/rc.3 performance comparison. The
candidate is not a release: same-SHA CI, archive cold install, frozen external
conformance and the strict VM gate are still required before tagging.
2026-11-25 11:18:31 +08:00
cflmy 0b7f238fd8 refs: keep plain-file fragments unverified and cover missing targets
A fragment on a verified non-program file is coverage the loaded catalog does
not have; report not_loaded instead of a file success. Add explicit-refs tests
for verified plain files, symlink refusal, encoded traversal, missing
unimported programs and lock snapshot digests.
2026-11-25 11:04:52 +08:00
cflmy 93e125e921 analysis: verify resource digests against the projected AST payload
Reject a resource whose content_digest does not match the AST node at its
span, so a tampered formula/code digest cannot pass the semantic validator.
2026-11-25 11:01:45 +08:00
cflmy 6d4209bf32 tests: verify the closed Analysis boundary with independent consumers
Add black-box tests for exact source/AST projection, complete heading scopes,
explicit reference states, output safety (input/symlink/hardlink/directory and
owner-only bytes), Observation digest binding, multi-entry snapshot context and
the protocol mutation gate. Upgrade the Python consumer into a full independent
semantic validator, add view/lint/knowledge consumer fixtures driven by the
real CLI, and run schema plus semantic mutation checks from validate_protocols.
2026-11-25 11:01:24 +08:00
cflmy 99789616a4 analysis: project document and program facts through one typed encoder
Replace the program-only projection with ADR-0069's typed model: exact source
and digest, the public document AST, complete heading scopes with parent/mode
origin/range, anchors, functions, imports, references, calls and resources.
Project identity now carries the entry, captured manifest/lock digests, stdlib
and the static extension identities that participated in preparation. Run and
call bind Observation to the same canonical bytes, inspect reuses the same AST,
unit and reference projectors, and the retired duplicate link resolver is
deleted. Emit refuses to overwrite inputs, directories, symlinks or hard links
and publishes through an owner-only exclusive temporary file.
2026-11-25 10:12:07 +08:00
cflmy 1b214d48da refs: converge Markdown link resolution on one scoped catalog
Add the single pure document-link resolver: it resolves exact anchors first,
collects all canonical-name fallback candidates, decodes percent escapes once,
and distinguishes resolved/not_loaded/missing/ambiguous/external/outside_scope/
invalid without network access or caller-entry fallback. The loaded catalog
never opens a link target; the explicit --refs catalog may verify directly
referenced files once, inside the package root, with symlink refusal and read
limits. Add unit-range ownership helpers to the heading index and focused
resolver tests.
2026-11-25 09:55:58 +08:00
cflmy d8212aaa01 loader: bind Analysis to the captured manifest and lock bytes
Read marqdo.yaml and marqdo.lock exactly once while loading, parse those bytes,
and record sha256 digests on LoadedProject. This removes the post-preparation
lock re-read (and its silent empty digest on IO failure) and lets Analysis name
the exact static snapshot that selected the program. Add a regression test that
editing the manifest after load cannot change the captured digest.
2026-11-25 09:46:04 +08:00
cflmy 629fb9834d frontend: expose heading scope facts for the public boundary
Keep the one heading index but record the effective mode origin and source
unit, the nearest ancestor unit, the complete section span and the heading
span separately, and cover the whole source with the root unit. Reject a dot
inside a function/namespace component as an ambiguous public identity, and
escape the structural separators in UnitId display so a segment containing
'/', '#' or '%' cannot collide with a deeper path. Add focused tests for the
new invariants and diagnostics.
2026-11-25 09:44:16 +08:00
cflmy 88d7cd3414 docs: define the closed public Analysis boundary
Add ADR-0069 and replace the program-only Analysis v3 shape in place with the
one public projection consumed by independent static tools: project entry and
snapshot identity, exact source, document AST, heading scope facts, anchors,
functions, calls, resources and stateful references. Update the Markdown
profile, reference and observation specs to point at the single resolver and
the same encoder/digest rule.
2026-11-25 09:39:26 +08:00
cflmy e6066e6ba9 evidence: record the published 3.0.0-rc.3 release
ci/woodpecker/push/main Pipeline was successful
- docs/evidence/2026-11-24-rc.3-release.md: per-gate record for the tagged SHA
  (same-SHA Linux CI pipeline #80, archive smoke, clean install, frozen
  extensions 7/7, strict L1 disposable VM with the published archive
  re-verified in the guest, three paired shared-node G4 runs with the
  maintainer-approved WARN, and the RSS sampler investigation).
- docs/evidence/ci/<sha>/manifest.json: RC_RELEASE_CANDIDATE gate manifest.
- STATUS/COMPATIBILITY/CHANGELOG: publication record, release link, evidence
  paths and the released version heading.

Post-release docs commit: it references the tagged SHA and does not move the
release source.
2026-11-25 00:00:29 +08:00
cflmy 1e2a045cc7 perf: time the execution path, not the opt-in Observation document
ci/woodpecker/push/main Pipeline was successful
ci/woodpecker/manual/performance Pipeline was successful
The first rc.3 perf comparison reused the old workload commands but switched
them to `run/call --output json`, so the candidate was timed while producing
thousands of structural events that the beta baseline never emitted. The result
was a reproducible +240..+375% p50 and +130% RSS delta caused by the
measurement, not by the program's execution cost.

- Give each run/call workload a correctness command (current Observation
  snapshot, full contract digest) and a measurement command (plain execution
  path, committed text digest).
- Verify the correctness digest once per workload and the measurement digest on
  every timed sample; a wrong or changed output is never timed.
- Re-record the expected digests and extend the tooling tests.
- A protocol document that is produced only on request must not be billed as
  an execution regression.
v3.0.0-rc.3
2026-11-24 22:25:30 +08:00
cflmy f211568c42 docs: record the reviewed candidate status and mark the beta guide historical
ci/woodpecker/manual/performance Pipeline failed
ci/woodpecker/push/main Pipeline was successful
- docs/STATUS.md: snapshot the 3.0.0-rc.3 candidate, publish the reviewed local
  gate counts (607 workspace tests, docs-consistency 7, tools/ci 41) and add
  the review-closure record; label the earlier pipeline #70 results as the
  first pre-review candidate build.
- Mark the beta-era third-party integration guide as historical and point to
  the current spec/ and developer entry points from README and
  docs/developers/README.md.
2026-11-24 21:14:11 +08:00
cflmy 765c8350b0 fix: keep snapshots free of host paths and use the documented error phases
- runtime_error_json reports module_id/relative_path/line/column only; an
  absolute host path is environment data and must not be embedded in a
  shareable Observation snapshot.
- A bad --arg is a pre-start option error: report phase "options" as the
  schema defines instead of "prepare".
- Document that any provider transport failure, including an over-budget
  request frame, kills and reaps the helper and is never retried.
2026-11-24 21:06:05 +08:00
cflmy 847cf9fe33 docs: record the rc.3 release record, licensing and CI lanes truthfully
- CHANGELOG: add the Apache-2.0-only licensing change, the removed --trace
  path, the contract/test CI split with the checked-in stream verifier, the
  analysis-observation rename, and the post-review fixes; replace the stale
  pipeline #70/archive claim with the evidence-bound wording.
- docs/ci.md: describe the actual contract, test, minimum-rust and build lanes,
  the manual performance workflow and the new docs gate.
- Annotate RFC-OBS-0001, ADR-0059 and the Execution Events evidence as
  historical so their retired spec references are not read as current.
2026-11-24 20:59:50 +08:00
cflmy d11b261aca docs: make the current contracts describe the binary that exists
- spec/security.md: replace the retired --json/EffectTrace/--trace-file
  sections with the current strict output contract (text or one snapshot from
  the verified child, live/file destinations refused) and Observation effect
  events; drop the deleted trace.rs implementation row.
- spec/package-format.md, spec/value-wire.md, spec/evaluation.md,
  spec/resource-provider-v2.md, spec/foreign.md: describe the current
  --output/--observation-file and Observation events instead of run/call
  --json and Execution Events.
- spec/analysis.md: a load failure removes the previous artifact, not only a
  compile error.
- COMPATIBILITY.md and docs/developers/*: current axes are Analysis v3,
  Observation v1 and CLI Tool revision 1; Rust 1.89; rc.3 candidate status.
- Fix the Analysis v2 / Trace v2 / trace-file references in README,
  architecture overview, contributor guide, tool example, source comments and
  AGENTS.md.
- Add a docs-consistency gate that fails when spec/ or the current developer
  guides document a retired interface or a deleted spec path.
2026-11-24 20:57:13 +08:00
cflmy 682eae82b6 perf: measure run/call through the current Observation snapshot
The nine G4 workloads still requested the retired `run/call --json` option,
so every non-check workload exited 2 and was recorded as CORRECTNESS_FAIL; the
RC performance gate could not run at all.

- Request `--output json` for run/call workloads and re-record the committed
  expected digests.
- Pin correctness to the current snapshot: terminal status/result, committed
  stdout/stderr byte digests, and ordered event-kind counts with a sequence
  digest. Run ids, wall-clock stamps and host paths are excluded, so a correct
  program keeps one stable digest.
- Add tooling tests for the workload catalogue and digest stability.
2026-11-24 20:48:26 +08:00
cflmy 44a118003f fix: close rc.3 review defects in strict destinations and Analysis cleanup
- Reject strict live/file observation destinations before opening a session:
  a rejected destination no longer writes a partial JSONL stream or snapshot.
- Remove a previous `check --emit` artifact when the project cannot be loaded,
  not only when it has compile errors, so a consumer can never bind a run to a
  stale Analysis document.
- Report the concrete `fs.exists|metadata|list|mkdir|remove|rename` effect
  operation instead of collapsing all six into `resource.request`.
- Preserve the plugin ABI frame codes through the shared worker transport:
  an over-limit frame is `worker_frame_too_large` and an encode failure is
  `worker_encode_failed`, not a generic `worker_frame_invalid`.
- Give the event and snapshot schemas the same capture `level` enum and
  document the levels in spec/observation.md.
- Add a regression test for each fix.
2026-11-24 20:43:23 +08:00
cflmy 238e4065c1 ci: use a checked-in verifier for the one-run stream/snapshot assertion
ci/woodpecker/push/main Pipeline was successful
2026-11-24 19:31:50 +08:00
cflmy 72d49ab2a1 Merge pull request 'Protocol convergence for 3.0.0-rc.3 (issue #8)' (#9) from architecture/issue-8-protocols into master
ci/woodpecker/push/main Pipeline was canceled
One current contract per public boundary: Analysis single writer, Observation replaces Trace/Execution Events, exact CLI Tool requirements, shared worker transport, rejected retired formats.

Same-SHA CI: https://ci.cflmy.cn/repos/1/pipeline/71
2026-11-24 19:23:26 +08:00
cflmy 5c371a9bef evidence: record the same-SHA CI for the rc.3 candidate
ci/woodpecker/push/main Pipeline was successful
ci/woodpecker/pr/main Pipeline was successful
2026-11-24 18:49:54 +08:00
cflmy 5a89a137c7 ci: pin the converged conformance fixtures
ci/woodpecker/push/main Pipeline was successful
2026-11-24 18:32:44 +08:00
cflmy f55559b531 ci: keep the contract lane compatible with the image shell
ci/woodpecker/push/main Pipeline failed
2026-11-24 18:20:41 +08:00
cflmy 6b509d344e ci: split a fast contract lane from the full Rust lane
ci/woodpecker/push/main Pipeline was canceled
2026-11-24 18:18:35 +08:00
cflmy 33b73f41e3 consumers: resolve the event schema on jsonschema before 4.18
ci/woodpecker/push/main Pipeline failed
2026-11-24 17:49:24 +08:00
cflmy 4f3a9bff29 docs: describe the current CI protocol gates 2026-11-24 17:40:54 +08:00
cflmy 09ab131b96 ci: exercise only the current Analysis and Observation contracts
ci/woodpecker/push/main Pipeline failed
2026-11-24 17:37:49 +08:00
cflmy 93fada3d92 evidence: record the rc.3 local protocol-convergence gate
ci/woodpecker/push/main Pipeline failed
2026-11-24 17:16:05 +08:00
cflmy 291e521cec release: prepare 3.0.0-rc.3 with the converged contracts 2026-11-24 17:12:51 +08:00
cflmy ca0f0799e7 ext: reject retired descriptor revisions without migration 2026-11-24 17:05:38 +08:00
cflmy 867cd72ced docs: remove retired protocol names from current guides 2026-11-24 17:04:27 +08:00
cflmy 3fe1ca3c0c docs: record the single-contract policy and review gate 2026-11-24 17:04:03 +08:00
cflmy bf141a1f26 worker: share one bounded transport across plugin and provider workers 2026-11-24 16:55:19 +08:00
Codex 404d559b86 observation: deliver one execution event sequence to stream and snapshot 2026-11-24 15:30:18 +08:00
Codex f83d992c61 tool: require exact current contracts without negotiation 2026-11-24 14:23:48 +08:00
Codex 8bfe0c36ee analysis: publish one schema for every project 2026-11-24 14:16:56 +08:00
Codex 8bd33a4615 docs: define single current contracts before the first stable release 2026-11-24 14:11:26 +08:00
Codex 652ea76360 Use Apache-2.0 as the sole project license
ci/woodpecker/push/main Pipeline was successful
2026-11-23 22:58:10 +08:00
Codex 9149ee40a4 Prepare Marqdo CLI 3.0.0-rc.2 with structured control flow
ci/woodpecker/push/main Pipeline was successful
ci/woodpecker/manual/performance Pipeline was successful
v3.0.0-rc.2
2026-11-23 22:40:06 +08:00
Codex 51d4c6568d Record control-flow RC verification and the pending performance decision 2026-11-23 22:35:23 +08:00
Codex af1e07f3d7 Benchmark the verified archive on release staging branches
ci/woodpecker/push/main Pipeline was successful
ci/woodpecker/manual/performance Pipeline was successful
2026-11-23 22:19:57 +08:00