feat(contracts): agent-state v1 fixture pack + Go/Rust replay suites #126
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/contract-agent-state-v1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Captures the agent-state contract once in a language-neutral fixture pack and replays it across the Go and Rust implementations (Issue #87, "Agent state is defined three times with no single source of truth" — Option 1).
Refs #87 — pending closure. This PR does not resolve #87; see Binding status below.
What's included
testdata/contracts/agent-state/v1/states.json— canonical 5-state vocabulary (idle, working, blocked, done, error), fold rules, invariants (sticky error, session reset, turn restart, unknown passthrough), bherdr 4-state projection and rollup priority (blocked > working > idle > unknown), plus replay cases: 45 single-step, 6 multi-step, 9 rollup.testdata/contracts/agent-state/v1/README.md— contract spec (OKF frontmatter).internal/zotrpc/agent_state_contract_test.go— Go replay throughzotrpc.Apply.crates/colibri-glasspane/src/lib.rs— Rust replay throughAgentState/apply_pi_event(agent_state_contract_*tests).internal/zotrpc/events.go— doc comment cites the new pack.Binding status (why #87 stays open)
The pack binds the two implementations that replay it in this repository: Rust
colibri-glasspaneand Gozotrpc. The third original definition — bherdr's production pane-status implementation (bherdr/internal/server/server.go) — is specified by the pack but not yet bound: bherdr does not consume these fixtures, and the rollup replay cases validate a test-local projection, not bherdr's code. Bherdr must replay the pack (or a matching suite must land in that repository) before #87 can be considered resolved.Verification
go test -race ./internal/zotrpc/(contract tests) — PASScargo test -p colibri-glasspane --lib— 64/64 passed (this is thecolibri-glasspanelibrary test count, which includes the 4agent_state_contract_*tests; not the workspace total)gofmt -lclean;go vet ./internal/zotrpc/clean./scripts/ci-checks.sh— PASScheck-okf.sh --changedPASS;check-dates.sh --strictclean;check-format.shcleancheck-evidence.py— 4 of 8 sets fully checked, 0 errorsNotes
caller_attributionwork.verified_bycorrected to the current identity policy (antigravity@debby).