docs: define single current contracts before the first stable release
This commit is contained in:
1 parent
652ea76360
commit
8bd33a4615
3 files changed
+67
No files matched your search
@@ -34,6 +34,16 @@ correctness and release evidence before expanding the surface.
|
|||||||
10. Language semantics, package format, ABI, authorization defaults or public CLI behavior changes require an ADR + tests + spec updates.
|
10. Language semantics, package format, ABI, authorization defaults or public CLI behavior changes require an ADR + tests + spec updates.
|
||||||
11. RFC-LANG-0002 is implemented by the frontend, `marqdo-expression`, IR lowering, runtime and the bundled stdlib. Keep `spec/`, implementation, fixtures, stdlib digest and docs in lockstep; there is no legacy mapper or per-file syntax switch to fall back to. Do not make a release claim beyond the evidence recorded in `docs/STATUS.md`.
|
11. RFC-LANG-0002 is implemented by the frontend, `marqdo-expression`, IR lowering, runtime and the bundled stdlib. Keep `spec/`, implementation, fixtures, stdlib digest and docs in lockstep; there is no legacy mapper or per-file syntax switch to fall back to. Do not make a release claim beyond the evidence recorded in `docs/STATUS.md`.
|
||||||
|
|
||||||
|
## Pre-stable protocol changes
|
||||||
|
|
||||||
|
Read [ADR-0068](docs/adr/0068-single-current-public-contracts.md) before changing
|
||||||
|
a public boundary. Keep one current specification, producer and validator per
|
||||||
|
boundary. Replace retired paths in the same integration, reject unsupported
|
||||||
|
formats explicitly, and update independent consumers and release smoke tests.
|
||||||
|
Keep old formats in Git history. Preserve authority, attribution and resource
|
||||||
|
limits during refactors. Confirm cross-repository and release evidence before
|
||||||
|
closing a protocol replacement issue.
|
||||||
|
|
||||||
## Development workflow
|
## Development workflow
|
||||||
|
|
||||||
1. Identify the affected rule and cite RFC-LANG-0002 / `spec/mapping.md` (or, for architecture-only changes, the relevant `docs/DEVELOPMENT_BLUEPRINT.md` section).
|
1. Identify the affected rule and cite RFC-LANG-0002 / `spec/mapping.md` (or, for architecture-only changes, the relevant `docs/DEVELOPMENT_BLUEPRINT.md` section).
|
||||||
|
|||||||
@@ -0,0 +1,53 @@
|
|||||||
|
# ADR-0068 — One current contract per public boundary
|
||||||
|
|
||||||
|
Status: Accepted for implementation on the pre-stable 3.0 line (2026-11-24).
|
||||||
|
|
||||||
|
## Context
|
||||||
|
|
||||||
|
Issue [#8](https://git.cflmy.cn/cflmy/marqdo-cli/issues/8) identified two
|
||||||
|
independent Analysis version selectors. A tool could install successfully
|
||||||
|
even when it could not read the output for a given project. The runtime
|
||||||
|
also projected the same execution into independently defined Trace and
|
||||||
|
Execution Events protocols. The compilation pipeline described in
|
||||||
|
DEVELOPMENT_BLUEPRINT §7 remains the source of language facts.
|
||||||
|
|
||||||
|
## Decision
|
||||||
|
|
||||||
|
Before the first stable release, replace a broken public contract in place.
|
||||||
|
For each boundary, keep one current format identifier, one producer and one
|
||||||
|
validation path. Reject mismatches explicitly. Update the CLI, schemas,
|
||||||
|
consumers, fixtures and CI in the same integration. Use Git history and
|
||||||
|
release tags to retrieve retired specifications. A future stable release
|
||||||
|
requires its own compatibility policy.
|
||||||
|
|
||||||
|
- Analysis is always `marqdo.analysis` revision 3, including projects without
|
||||||
|
loop transfers. The Markdown AST and IR remain internal authorities.
|
||||||
|
- Runtime observations use `marqdo.observation` revision 1. One run emits
|
||||||
|
one sequence. JSONL stdout and JSON snapshots deliver those same events.
|
||||||
|
`run` and `call` use `--output text|json|jsonl` and
|
||||||
|
`--observation-file PATH`. Capture selections and budgets apply to all
|
||||||
|
observation destinations.
|
||||||
|
- Tool manifests use `marqdo.cli-tool` revision 2, with a required
|
||||||
|
`requires.api_revision: 1` and optional exact Analysis and Observation
|
||||||
|
requirements. Reinstall tools registered under earlier formats. The
|
||||||
|
existing Tool subcommands and external dispatch suffice for this workflow.
|
||||||
|
- Keep the three current extension descriptors. Callable exports, resource
|
||||||
|
rights and foreign interpreter selection have independent validation and
|
||||||
|
lifecycles. Share value encoding and equivalent process transport
|
||||||
|
primitives. Keep Lock v4 because its graph and artifact identities still
|
||||||
|
describe the selected extensions without a format change.
|
||||||
|
|
||||||
|
## Security and verification
|
||||||
|
|
||||||
|
Static analysis stays non-executing. Observation binds to the exact Analysis
|
||||||
|
artifact and defaults to structural capture. Selected values, Text consent,
|
||||||
|
handles, buffering, output bytes and failure/truncation must follow the
|
||||||
|
current observation contract. Preserve native trust, process timeouts,
|
||||||
|
worker quarantine, capability grants, artifact integrity and fail-closed
|
||||||
|
strict behavior.
|
||||||
|
|
||||||
|
Exercise real CLI output with an independent consumer, including old-input
|
||||||
|
rejection, two simultaneous destinations from a single invocation, source
|
||||||
|
digest mismatches, allowlisted capture, and consumer installation. Validate
|
||||||
|
independent View and Lint against the final CLI, then validate the shipped
|
||||||
|
archive and its SHA-bound release evidence before tagging an RC.
|
||||||
@@ -62,6 +62,10 @@ replace `spec/` or a recorded test log.
|
|||||||
> statements it emits. The interpreter owns the transfers and reports them
|
> statements it emits. The interpreter owns the transfers and reports them
|
||||||
> through the existing observation facade.
|
> through the existing observation facade.
|
||||||
|
|
||||||
|
Protocol architecture and pre-stable replacement rules are recorded in
|
||||||
|
[ADR-0068](../adr/0068-single-current-public-contracts.md). Check the
|
||||||
|
[implementation status](../STATUS.md) for rollout and release evidence.
|
||||||
|
|
||||||
## 1. Four state dimensions
|
## 1. Four state dimensions
|
||||||
|
|
||||||
A claim is stated in exactly one of these dimensions. "Exists in the tree" is not
|
A claim is stated in exactly one of these dimensions. "Exists in the tree" is not
|
||||||
|
|||||||
Reference in new issue
Block a user