Skip to content

Contracts: debug_prints, sync_locks, concurrency go draft -> declared (Part of #8863) - #9197

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8863-declare-resource-contracts
Nov 24, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8863-declare-resource-contracts

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8863 (child #8862).

Checklist: partial [c:a9dfa2bb] -- 9 draft rows remain (dead_code, reflection_metaprogramming, spec_exposure, llm_api unplanted; safety_bypasses, doc, telemetry, planned_debt, fragile_debt planted) and the #8868 readings on assert and doc.

What changed

debug_prints, sync_locks and concurrency move from draft to declared (the #2897 state for unplanted rows): a one-sentence language-independent contract in signal_contracts.py, the same sentence in the how_to_add_a_language.md schema comment (the audit's containment check), incidence measured with rule_probe.py on language-crucible v1.8.0 and keyword-rosetta main, and every contradicting rule listed in the new docs/resource_family_contracts.md. No rule is edited, so no golden or rosetta cell moves and there is nothing to time.

Readings this settles from #8868 (a reading of the existing words; the maintainer can overrule by editing the sentence): a write to a file or writer is not a debug_prints site; atomic operations are sync_locks, spawning the work is concurrency.

Hand-written files (4): gitgalaxy/standards/signal_contracts.py, gitgalaxy/standards/how_to_add_a_language.md, docs/resource_family_contracts.md, tests/test_signal_contract_sheet.py. Regenerated: docs/signal_contracts.md, tests/signal_contract_audit_baseline.json (3 draft entries gone), the two family-validity SVGs (the grid reads contract status).

Class / Sibling gaps

Class: unplanted draft rows in the contract sheet that need a declared sentence plus measured incidence and a list of contradicting rules. Members handled here: debug_prints, sync_locks, concurrency (each pinned by a parametrized test).

Sibling gaps (none needs a burned estate; this is a non-mainframe engine item):

  • dead_code, reflection_metaprogramming, spec_exposure, llm_api: same mechanism, unplanted, next slice of 4 rows (core).
  • safety_bypasses, doc, telemetry, planned_debt, fragile_debt: planted, so they need the full family audit (rule-contract-audit), not a sentence (sweep).
  • Keyword families in Go, Rust, JavaScript, TypeScript, Java, C: per-language differences that need a definition decision #8868 readings still open: is assert an abort; doc in a language without /** */ (frontier, owner call).
  • The 14 contradictions in the new doc (e.g. C/MATLAB fprintf to a file counted as a debug print, Rust semaphore identifiers, Dart Completer) are one-layer rule fixes, each needing a timed PR (core).

Gates

  • pytest tests/test_signal_contract_sheet.py tests/signal_contract_audit.py: 15 passed; signal_contract_audit.py --ci: no new findings
  • audit_check.py: all clear; ruff format --check clean on changed .py files
  • pr_gates --fast: first run 1 failure (stale family-validity SVGs), regenerated with family_validity_chart.py --write, --check current and its tests pass; the "affected" gate only reports tests over its 300 s budget left to CI
  • --ratchets and golden bless not run: no parsing rule or engine path changed

Lessons for agents

  • family_validity_chart.py reads contract status, so promoting any contract row makes test_committed_svgs_are_current fail: run family_validity_chart.py --write in the same PR.
  • keyword-rosetta lives at /srv/storage_16tb/projects/keyword-rosetta, not under projects/gitgalaxy/; env_check.py --exports does not print KEYWORD_ROSETTA_PATH.

🤖 Generated with Claude Code

… with measured incidence (Part of #8863)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 24, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 24, 2026 13:40
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 24, 2026 13:40
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot merged commit 028ba4f into main Nov 24, 2026
106 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8863-declare-resource-contracts branch November 24, 2026 13:49
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Nov 24, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant