Deterministic capsule format for Flagship agents: a shared language between the Reasoning Core, Memory Brain, and Tooling Mesh.
Goal. Guarantee that every .context capsule conforms to the specification and passes the golden suite before entering Modular Intellegence Systems production pipelines.
| Path | Purpose |
|---|---|
docs/context_spec_1_2.md |
Authoritative CONTEXT/1.2 specification with CTX-CANON/3 annexes. |
docs/testing.md |
Guide for running and extending the golden suites. |
.agents/tools/ctx_lint.py |
Reference parser/linter used across all validations. |
tests/context/ |
Positive and negative .context scenarios. |
tests/outcomes/ |
Expected outputs for the golden suite. |
.github/workflows/goldens.yml |
CI workflow that executes the full golden suite on every push/PR. |
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt # ensure python>=3.11 if the file is absent
python tests/run_goldens.pyThe command must exit with status 0. Any divergence between actual and expected output marks a regression and blocks merge.
goldens.ymlruns on every push and pull request.- Always run
python tests/run_goldens.pylocally before publishing commits. - Specification changes must ship with updated golden cases and documentation.
- Create a
.contextcapsule intests/context/with a descriptive name. - Execute
python tests/run_goldens.pyto produce the digest or error metadata. - Store the expected output under
tests/outcomes/<name>.json. - Update
docs/context_spec_1_2.mdanddocs/testing.mdif behavior changed. - Open a pull request with the execution trace, references to ADRs when relevant, and proof of a green CI run.
- Covered: resolver metadata, chunk payloads, TTL, confidence models, signature rotation and quorum, safe hints, TAB errors, attachment hash mismatch, external relation validation, JSON round-trip placeholder.
- In progress: pack/unpack flow, tag validation, external descriptors, public registry.
- Quarterly target: broaden negative scenarios and formalize the converter audit protocol.
- Follow
AGENTS.mdand the Flagship bar: zero mocks, coverage >=85 percent, cyclomatic complexity <=10. - Each pull request includes a design brief plus evidence (test logs, ADR links).
- Use organization GitHub Discussions for questions and design clarifications.
- Issues are the preferred channel for requests or improvements.
- Contact: magraytlinov@gmail.com - core team replies within one business day.
- Context is pinned on the Modular Intellegence Systems overview as the entry point into the modular ecosystem.