Skip to content

fix: both domains in comparisons; live docs match the shipped contract (#30, #31) - #33

Merged
onlyxItachi merged 1 commit into
mainfrom
fix/live-contract-drift
Jul 19, 2026
Merged

fix: both domains in comparisons; live docs match the shipped contract (#30, #31)#33
onlyxItachi merged 1 commit into
mainfrom
fix/live-contract-drift

Conversation

@onlyxItachi

Copy link
Copy Markdown
Owner

Two issues filed against e00854c, both valid.

#31compare_metrics reported only the A-side domain, which is wrong for the supported case of comparing two units of one mixed-domain trace. Adds domain_a/domain_b, retains domain as the alias so nothing breaks.

#30 — the live guidance had drifted from the shipped contract (release state, Python floor, tool count). Corrected, and INIT_PROMPT.md is now explicitly framed as frozen rationale rather than current truth. A new test extracts the floor from pyproject.toml and requires the guide to agree, so this drift class fails CI in future.

216 tests. No version bump, no release.

🤖 Generated with Claude Code

#31: compare_metrics returned only unit_a's domain, so comparing a
framework_op span against a gpu_kernel from the same trace — a supported
flow — labelled the payload with a domain true of half of it and dropped
a fact the reader already had. Adds domain_a/domain_b and keeps `domain`
as the A-side alias, so existing callers are unaffected. Tested on the
real torch trace in both the mixed and matching cases.

#30: the docs an agent actually reads still described the older
contract — CLAUDE.md called v1.2.0 "pre-release, in review" and claimed
a 3.11 floor after the widening to 3.10, and both clients.md and the
server module overview listed three tier-1 tools when five ship. All
corrected. docs/INIT_PROMPT.md stays frozen by intent, but CLAUDE.md no
longer calls it the source of truth: it is now framed as the record of
WHY the locked decisions were made, with its superseded specifics named
so nobody validates against them.

Guarded by a test that extracts the floor from pyproject and requires
the live guide to state the same one, and checks every shipped tool name
appears in the client setup guide — so this drift class fails CI next
time rather than waiting for a reader to notice.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@onlyxItachi
onlyxItachi merged commit 390ad80 into main Jul 19, 2026
17 of 18 checks passed
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