Skip to content

docs(contracts): contract roadmap, signal contract sheet + baseline-gated audit, rule-contract-audit skill - #2811

Merged
squid-protocol merged 1 commit into
mainfrom
docs/contract-roadmap
Sep 6, 2026
Merged

docs(contracts): contract roadmap, signal contract sheet + baseline-gated audit, rule-contract-audit skill#2811
squid-protocol merged 1 commit into
mainfrom
docs/contract-roadmap

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Sep 6, 2026

Copy link
Copy Markdown
Owner

Summary

Phase 1 of docs/contract_roadmap.md (the strategy approved 2026-09-06, companion artifact linked from the doc). No engine behaviour change — nothing at scan time imports the new module, so no golden-master delta.

What it adds:

Proof

$ python tests/signal_contract_audit.py --ci
signal contracts: 68 entries, 2 stated, 66 draft, 80 registry keys
signal_contract_audit: no new findings

ruff format clean; ruff_audit.py --ci / mypy_audit.py --ci: the only new hits are in untracked scratch files already sitting in the working tree (gitgalaxy/tests.py, gen_tests.py, parse_regex.py — not in this PR); dead_key_audit.py --ci clean; pytest tests/core_engine: 372 passed, 1 pre-existing failure unrelated to this diff (test_committed_fidelity_table_is_fresh_against_the_corpus — corpus-state dependent, see comment below).

Cross-repo

🤖 Generated with Claude Code

…ated audit, rule-contract-audit skill

Phase 1 of docs/contract_roadmap.md (approved 2026-09-06). No engine behaviour
change: nothing at scan time imports the new module.

- docs/contract_roadmap.md: the assessment (267 gated red cells by cause: 102 echo,
  ~45 inherency, ~50 extraction, 38 correlation, ~32 scoring), the three-layer
  diagnosis (stream / count / score), decisions D1-D4, phases 0-5, issue
  disposition, and the corrections to the first assessment (#2535 closed as
  not-a-bug: no string shielding exists; the x3 flux lives in
  spatial_correlation.py, pinned by #2631).
- gitgalaxy/standards/signal_contracts.py: one SignalContract per registry rule
  key (68 entries over 80 keys; 12 helper keys described separately) with kind,
  unit, contract sentence, status, doc, issue, planted. The stream contract and
  the count contract as module constants. api and args are `stated`
  (#2730/#2743, #2773/#2786); the other 66 are `draft` -- the schema comment
  transcribed verbatim.
- tests/signal_contract_audit.py (+ baseline, + workflow beside dead-key-audit):
  missing-contract / orphan-contract / schema-drift / missing-schema / draft
  findings, baseline-gated like dead_key_audit.py. --render writes
  docs/signal_contracts.md.
- how_to_add_a_language.md: CRITICAL ENGINE RULE 18 (the stream contract) and a
  pointer above the OUTPUT SCHEMA making the comment lines the prompt form of
  the sheet.
- .claude/skills/rule-contract-audit: the #2730/#2743 method as a repeatable
  workflow (read the ledger first; sentence + corollaries; 46-language audit via
  screen_plant.py + crucible incidence on the Prism code stream; engine PR one
  layer; corpus plant PR; sheet row -> stated).
- docs/ecosystem.md: skills table and the rosetta workflow row (cause family,
  not language).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@squid-protocol

Copy link
Copy Markdown
Owner Author

Pre-existing local failure, not this PR's: tests/core_engine/test_language_strictness.py::test_committed_fidelity_table_is_fresh_against_the_corpus fails on this branch and on origin/main alike — tests/tools/fidelity_table.py --check --corpus ../keyword-rosetta reports the committed gitgalaxy/standards/fidelity_table.py stale against corpus main (555604e, keyword-rosetta #74 merged today). This diff touches neither the table nor its inputs; the regen is owed by whichever PR next touches the fidelity layer (one layer per PR). Logged in the contract-roadmap epic's housekeeping list.

@github-actions

github-actions Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol merged commit 7df1503 into main Sep 6, 2026
30 checks passed
@squid-protocol
squid-protocol deleted the docs/contract-roadmap branch September 6, 2026 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant