Skip to content

docs(pool,convert,upstream,server): task-local CONTRACT.md + burst-test lease hygiene - #357

Merged
trefeon merged 1 commit into
mainfrom
docs/package-contracts
Sep 5, 2026
Merged

docs(pool,convert,upstream,server): task-local CONTRACT.md + burst-test lease hygiene#357
trefeon merged 1 commit into
mainfrom
docs/package-contracts

Conversation

@trefeon

@trefeon trefeon commented Sep 5, 2026

Copy link
Copy Markdown
Owner

Contracts

Four task-local package contracts (purpose, public API, allowed/forbidden dependencies, critical invariants, protecting tests, safe modification patterns) so an agent working one package no longer needs the whole-repo mental model. AGENTS.md untouched by design.

  • pool/CONTRACT.md: failover bucket precedence, lease contract, swap-safety, RPM/RPD semantics, bridgeMu discipline, maturity posture.
  • convert/CONTRACT.md: purity rule + import boundary test, end_turn parity, schema caps, plural-dialect extraction.
  • upstream/CONTRACT.md: anti-ban header contract, TTFB-only timeout, transient-retry rules, turn_spend terminal.
  • server/CONTRACT.md: protocol split, retry-once matrix, envelope rules, dashboard security gates, parallel-work hazard note.

All claims grounded in current code (imports grepped, invariants cite files).

Test hygiene

Releases the winning lease in TestAcquireRPMAdmitBurstIsAtomic / TestBridgeRPMAdmitBurstIsAtomic instead of stranding the run.

Verification

  • Hermetic backend suite green; go vet clean; gofmt clean (my files).
  • Note: backend/internal/archtest/ (parallel session, untracked) flags its own formatting — not mine, not in this PR.

…st lease hygiene

Four package contracts (purpose, public API, allowed/forbidden deps,
critical invariants, protecting tests, safe modification patterns) so an
agent working one package no longer needs the whole-repo mental model:
pool, convert, upstream, server. All claims grounded in the current code
(imports verified by grep, invariants cite exact files).

Also releases the winning lease in the two RPM burst-atomicity tests
instead of stranding the run.
Copilot AI balanced review requested due to automatic review settings September 5, 2026 21:04

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@trefeon
trefeon merged commit 4301961 into main Sep 5, 2026
6 checks passed
@trefeon
trefeon deleted the docs/package-contracts branch September 5, 2026 21:07
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.

2 participants