Repository navigation
Propose the measured-latents pair: a fabricated pin, an under-claimed sentinel, and a flattened resolution failure - #463
Conversation
…oundary
Brett selected the orchestrating session's recommended "the measured-latents
bundle" on 2026-08-28, verbatim: "lets do all 3 in order". The set is three
defects the corpus had already measured and deliberately declined to fix. The
filing shape is the authoring session's and is flagged for veto as OD-1 in both
packets: the word "bundle" names the set of defects, not a packet count.
fix-pin-value-boundary-and-sentinel-split — defects 1 and 3, no bundle owed.
FOUR expressions in scripts/doc_health/pin_class.py build a pin site from
([0-9a-f]{40}) with a key boundary in front and no hexadecimal boundary behind,
so a 64-hex value under a swept key yields a FABRICATED 40-character pin.
Constructed and run at 6612d32: all four return the same truncated prefix,
FULL_SHA_RE then accepts it as a whole object name, and LOOSE_SHA_RE ten lines
above — which carries the guard and a comment saying why — matches nothing on
the same line. The inherited record (declare-sentinel-pin-vocabulary § 5.5)
named two of the four; the two PROSE members' own patterns at :347 and :406 are
recorded here. Latent, measured: 1116 swept files, 0 over-long hex values.
And "unknown" is emitted by FIVE sites spanning THREE conditions rather than
§ 5.6's three: cli.py:49 fires on two conditions by itself, because its
subprocess.run has no check and its return code is never read, and
snapshot_registry.py:283 measures as ALREADY CORRECT. One ADDED requirement on
doc-health (38 -> 39, four scenarios); the sentinel split ships as realization
under canon promoted the same day that already obliges it (OD-3).
fix-content-resolution-conflation — defect 2, and a contract bundle IS owed.
_blob_object_id (release.py:312-316) converts every ContentResolutionError into
None; resolve_git_object reaches 15 raise sites, 14 distinct messages, and
exactly ONE — content.py:125 — for which None is the right answer. Six
conditions run here, one value. Its only caller compares two of those answers,
so one failure manufactures a false HGR-RELEASE-SURFACE-DRIFT and two failures
compare EQUAL and report the surface clean, having read neither blob. Recorded
as § 6.3 of the archived fix-release-reachability-race, quoted rather than
paraphrased; the caller consequence and the identical _CommitSource.exists
conflation at :401-405 are measured here and not inherited. Two ADDED
requirements on shared-contract-ownership (10 -> 12, seven scenarios).
THE COST IS DECLARED UP FRONT, by parse rather than grep: release.py is a
non-editorial member of contract-v2.0's inventory (type: validator, digest
sha256:660e55ca..., exactly what the tree carries), content.py likewise, so the
realization owes an additive cut on the contract-v1.44 precedent — the same
file, the same cause, two days earlier. No minor is reserved.
Splitting on that boundary is what lets the two zero-cost fixes archive on a
green suite instead of waiting on a human-gated contract tag. The rejected
one-packet alternative is argued in full in both design.md § 1, including the
honest cost: it re-sequences the approved 1, 2, 3 as {1, 3} then {2}.
openspec validate --all --strict: 78 passed, 0 failed (76 before the pair).
pytest tests/doc-health under pipefail: 1249 passed, 0 failed, exit 0.
Co-Authored-By: Claude Fable 5 <[email protected]>
There was a problem hiding this comment.
Hi @brettheap! 👋
Your private repo does not have access to Sourcery.
Please upgrade to continue using Sourcery ✨
There was a problem hiding this comment.
Pull request overview
This PR adds two new OpenSpec change packets (“fix-pin-value-boundary-and-sentinel-split” and “fix-content-resolution-conflation”) and indexes them in the repository’s OpenSpec Records section. The packets document measured defects, the intended remediation, and the realization tasks (including the contract-bundle implications for the second packet).
Changes:
- Add two new OpenSpec change directories with
.openspec.yaml, proposal/design narratives, tasks, and capability spec deltas. - Update
README.md“Active changes” to include both packets with filing context and summarized measurements. - Introduce new spec-delta markdown for
doc-healthandshared-contract-ownershipunder the respective packets.
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| README.md | Adds two new “Active changes” entries pointing at the new packets. |
| openspec/changes/fix-pin-value-boundary-and-sentinel-split/.openspec.yaml | Declares packet origin/admission metadata and related changes. |
| openspec/changes/fix-pin-value-boundary-and-sentinel-split/proposal.md | Proposal narrative, measurements, decisions, and questions for defects 1 & 3. |
| openspec/changes/fix-pin-value-boundary-and-sentinel-split/design.md | Design rationale (packaging, delta placement, fix approach, split details). |
| openspec/changes/fix-pin-value-boundary-and-sentinel-split/tasks.md | Realization plan and verification steps for defects 1 & 3. |
| openspec/changes/fix-pin-value-boundary-and-sentinel-split/specs/doc-health/spec.md | Adds a doc-health requirement/scenarios for whole-object-name pin-site construction. |
| openspec/changes/fix-content-resolution-conflation/.openspec.yaml | Declares packet origin/admission metadata and related changes, including bundle-cut obligation. |
| openspec/changes/fix-content-resolution-conflation/proposal.md | Proposal narrative, measurements, decisions, and questions for defect 2. |
| openspec/changes/fix-content-resolution-conflation/design.md | Design rationale (scoping, mechanism, and contract bundle coupling). |
| openspec/changes/fix-content-resolution-conflation/tasks.md | Realization plan including contract bundle cut steps and proof requirements. |
| openspec/changes/fix-content-resolution-conflation/specs/shared-contract-ownership/spec.md | Adds shared-contract-ownership requirements/scenarios for content-resolution distinction + proofs. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| @@ -0,0 +1,84 @@ | |||
| # doc-health | |||
| @@ -0,0 +1,136 @@ | |||
| # shared-contract-ownership | |||
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 11 out of 11 changed files in this pull request and generated 2 comments.
Suppressed comments (1)
openspec/changes/fix-pin-value-boundary-and-sentinel-split/proposal.md:66
- This section references
PinMember.regex, but the implementation isPinMember.line_re()inscripts/doc_health/pin_class.py(and it is the method that compilesself.pattern).
PROSE members declare their own `pattern` strings, and `PinMember.regex` at
`:289-290` compiles those directly to build sites — same defect, same shape, not
| record this item inherits — the two PROSE members' own patterns at `:347` | ||
| (`Source revision:\s*`?([0-9a-f]{40})`?`) and `:406` | ||
| (`source_revision\s+`?([0-9a-f]{40})`?`), which `PinMember.regex` at | ||
| `:289-290` compiles directly to build sites. CONSTRUCTED AND RUN HERE |
| @@ -0,0 +1,349 @@ | |||
| --- | |||
| code_surface: openxFactory (`scripts/doc_health/pin_class.py` — the FOUR expressions that build a pin site, each binding its value group to `([0-9a-f]{40})` with a leading key boundary and no trailing hexadecimal boundary: `_field_re` at `:194-205` with its value group at `:204`, `_VOCAB_RE` at `:977-980` with its value group at `:980`, and the two PROSE class members' own declared patterns at `:347` and `:406`, which `PinMember.regex` at `:289-290` compiles directly; `LOOSE_SHA_RE` at `:159` is the guard that already states the rule and is NOT edited, only carried. `experiments/avatar-brokered-call/src/avatar_f0/cli.py` — `_git_file_commit` at `:43-51` (its `"unknown"` returns at `:49` and `:51`) and `_git_head` at `:54-62` (`:60` and `:62`), four emission sites across two functions, of which `:49` fires on two conditions because `subprocess.run` is called with no `check` and its return code is never read. `scripts/ideation_dashboard/snapshot_registry.py:283` — `self.source_revision or "unknown"` in `index_entry`, whose MEMBER does not change and whose LITERAL does. `scripts/doc_health/pin_sentinels.py` — the `emitters` tuples of `UNCOMMITTED_WORKTREE`, `UNCOMMITTED` and `UNKNOWN`, which are measured by test and must follow the split. Plus regressions under `tests/doc-health/` (`test_pin_reachability.py`, `test_sentinel_vocabulary.py`). NO change is proposed to the declared `PIN_CLASS` rows, `PIN_KEY_VOCABULARY`, `NON_MEMBERS`, the ref set consulted, `KNOWN_LOSSES` or its discharge mechanism, `repair_route()`, the retention namespace, the sentinel `CONDITIONS` map or the set of declared members, the deterministic check family registry `scripts/doc_health/families.py`, the family enumeration or its numerals, `health/dispositions.yaml`, or one byte of any committed artifact.) | |||
Brett ruled on PR #463 on 2026-08-28, by a four-question multi-choice put to him by the orchestrating session and relayed the same day. He took each packet's own recommendation on every question. The mechanism, the date, the approver and the selections are recorded; no verbatim wording of the ruling reached this session, so none is quoted. CLEARED AS AUTHORED: all five orchestrator decisions in fix-pin-value-boundary-and-sentinel-split and all six in fix-content-resolution-conflation — including OD-1 in both, the two-packet split on the contract-bundle boundary, WITH its re-sequencing of the approved 1, 2, 3 into {1, 3} then {2} accepted on the record. That was the only part of either packet that changed what was approved, and it stands. RULED, all eight questions, each on the packet's recommendation. Packet A: ride the existing undeclared-non-commit defect rather than adding a class; write unreadable-repository for a failed git log; import the declared constant across the package boundary; assert the boundary rule by a test over the declaration. Packet B: ReleaseDependencyError wrapping the original with from; one declared code rather than fifteen; reuse the existing fixture pair plus test_content_resolution.py; drive the failing condition by argument. THE CLEARANCE MOVED NOTHING, and that is measured rather than asserted: both spec deltas are byte-identical to the filing — git diff over the two specs/ trees reports zero lines. Every ruled answer is realization mechanics, and both requirements were written to govern the outcome rather than the mechanism. Each question's original text is kept verbatim beneath its ruling, and the original flagged text of every decision is kept as marked history, because what was flagged and why is the part a later reader needs. The same act also settled three things about what happens next, none of them this session's to perform: merge on green is APPROVED and is the orchestrating session's act; both realizations are pre-commissioned to dispatch in order, packet A first and archived on its own green, packet B second with its candidate inventory built in the realization pull request and verify-promotion plus the annotated tag left post-merge on the contract-v1.44 precedent; and the bundle state was re-affirmed rather than carried — contract-v2.0 is current and the cut allocates the next number at merge order, so the collision check still runs before a number is claimed. The Ratified: line of each proposal now records the two acts distinctly: the commission ADMITTED the packet, this ruling CLOSED the veto window. openspec validate --all --strict: 78 passed, 0 failed. Co-Authored-By: Claude Fable 5 <[email protected]>
Re-measured after origin/main was merged a second time: main landed #463 (the measured-latents filing), #466/#469 (add-unclassified-finding-class realized and archived) and a nightly token fix, adding twenty-one tests between them. tests/doc-health reads 1272 passed / 0 failed on the merged head against 1251 before it — grown by main's twenty-one and by none of this packet's. validate --all --strict moved 77 to 78 for the same reason. The floor is UNMOVED at 5 critical / 7 error / 41 warning / 12 info. Task 4.2b records the conflict and its resolution: #463 added two active-change entries at the head of the OpenSpec Records block where this packet had added one — a pure both-sides-inserted-at-the-head conflict in README.md alone, the self-gate ledger auto-merging cleanly around this packet's row. Resolved by keeping BOTH sides, this entry at the head as the newest arrival and main's two blocks verbatim beneath it. Nothing of main's was dropped, reworded or reordered, and each of the three entries appears exactly once. Co-Authored-By: Claude Fable 5 <[email protected]>
Merged origin/main a second time without waiting for a conflict report, so this packet does not race its sibling's merge. Same conflict shape as the sibling's: #463 added two active-change entries at the head of the OpenSpec Records block where this packet had added one — a pure both-sides-inserted-at-the-head conflict in README.md ALONE. Every code file, the delta, the regenerated projection and both test files merged clean; the taxonomy value and the self-gate ledger row were re-checked present afterwards. Resolved by keeping BOTH sides, this entry at the head and main's two blocks verbatim beneath it. tests/doc-health HOLDS at 1271 passed / 0 failed — unmoved, because the second merge brought governance text and an archive act rather than tests. validate --all --strict moved 77 to 78 for main's two new active packets. The floor is unmoved at 4 critical / 11 error / 41 warning / 12 info. Co-Authored-By: Claude Fable 5 <[email protected]>
Two OpenSpec packets, filing three defects the corpus had already measured and
deliberately declined to fix in the packets that found them. Proposal only —
no code changes, no implementation.
Origin
Brett, in-session 2026-08-28, selected the orchestrating session's recommended
option, verbatim: "lets do all 3 in order". The recommendation's own
wording was "the measured-latents bundle" — that phrase is the orchestrating
session's, not Brett's, and both
.openspec.yamlfiles keep the two voicesapart rather than merging them into one quotation. The citation is an
admission to the proposal queue, not a ratification of content: every
orchestrator decision and open question below is flagged for veto.
The packaging decision — OD-1, CLEARED 2026-08-28 with the re-sequencing accepted
The approval named a SET of three defects. It did not name a packet count. The
authoring session split them on the contract-bundle boundary:
contract-v2.0inventory member?scripts/doc_health/pin_class.py"unknown"splitsnapshot_registry.py,avatar_f0/cli.py,pin_sentinels.py_blob_object_idconflationscripts/hermes_runtime_validation/release.pytype: validator, at the digest the tree holdsBundling all three would hold two zero-cost fixes behind a human-gated contract
tag — the
contract-v1.44precedent (same file, same cause, 2026-08-26) recordsthat
verify-promotionand the annotated tag are not the authoring session'sacts. The rejected one-packet alternative is argued in full in both
design.md§ 1, with the honest cost stated: the split re-sequences theapproved 1, 2, 3 as {1, 3} then {2}.
Brett cleared OD-1 as authored on 2026-08-28 and accepted the re-sequencing on
the record. The split stands, and both realizations are pre-commissioned to
dispatch in order: packet A first, archived on its own green; packet B second,
with
verify-promotionand the tag left post-merge.fix-pin-value-boundary-and-sentinel-split— defects 1 and 3, no bundle owedDefect 1, constructed and run at
6612d323. FOUR expressions inscripts/doc_health/pin_class.pybuild a pin site from([0-9a-f]{40})with akey boundary in front and no hexadecimal boundary behind. A 64-hex value under a
swept key therefore yields a fabricated 40-character "pin" — the truncated
prefix of a value nobody wrote:
_field_re(YAML and JSON forms):204_VOCAB_RE(YAML and JSON):980ideation/cross-reference.md:347:406LOOSE_SHA_REon the same line:159FULL_SHA_REthen accepts that prefix as a whole object name. The guard againstexactly this sits ten lines above
_field_re, with a comment explaining why,and was never carried to the four that build sites. The inherited record
(
declare-sentinel-pin-vocabulary§ 5.5) named two of the four; the twoprose members' own patterns are recorded here as a correction. Latent,
measured: 1116 swept files, 0 over-long hex values under any vocabulary key.
Defect 3.
"unknown"is emitted by five sites spanning threeconditions, not § 5.6's three.
cli.py:49fires on two conditions by itself —its
subprocess.runhas nocheckand its return code is never read — so nosplit is correct without a branch that does not exist yet. And
snapshot_registry.py:283measures as already correct: the projector'scondition genuinely is
unestablished-revision. Both are corrections to theinherited record rather than agreements with it.
Delta: one ADDED requirement on
doc-health(38 → 39), four scenarios. Thesentinel split ships as realization under canon promoted the same day that
already obliges it —
ideation-cross-reference's "the condition it names MUSTbe the one that actually held" — with no requirement of its own (OD-3). Not a
delta-less packet:
supersede-lost-pin-baselineOD-3's measurement re-takenhere reads 112 of 112 archived changes carry a spec delta, and this one
carries defect 1's.
No contract bundle owed, by parse:
contract-v2.0's 192 entries walked,zero members under
scripts/doc_health/,scripts/ideation_dashboard/orexperiments/.fix-content-resolution-conflation— defect 2, and a bundle IS owed_blob_object_id(release.py:312-316) converts everyContentResolutionErrorintoNone.resolve_git_objectreaches 15 raisesites, 14 distinct messages, and exactly ONE —
content.py:125, the tree wasread and the path was not in it — for which
Noneis the right answer. Sixconditions run here, one value out.
Its only caller compares two of those answers, so one failure manufactures a
false
HGR-RELEASE-SURFACE-DRIFT, and two failures compare EQUAL and reportthe surface clean having read neither blob — the quiet direction, which
emits nothing.
Recorded as § 6.3 of the archived
fix-release-reachability-race, quotedverbatim rather than paraphrased. The caller consequence and the identical
_CommitSource.existsconflation at:401-405— whoseFalsedecides whethercontracts/manifest.yamlis present at the commit — are measured here and notinherited.
Delta: two ADDED requirements on
shared-contract-ownership(10 → 12),seven scenarios. The second copies the sibling family's proof requirement,
which exists because that defect was invisible to the suite — as this one is
today.
A CONTRACT BUNDLE IS OWED, declared up front, by parse rather than
grep:release.pyis a non-editorial member ofcontract-v2.0's inventory(
type: validator,digest: sha256:660e55ca…, exactly what the tree carries),content.pylikewise, and the editorial set is three files with neither in it.The minor is allocated at realization and none is reserved, on the
contract-v1.28renumber precedent.Validation
OPENSPEC_TELEMETRY=0 openspec validate --all --strict→ 78 passed, 0failed (76 before this pair)
--strictvalid individuallyset -o pipefail; python3 -m pytest tests/doc-health -q→ 1270 passed, 0failed, exit 0 at the clearance commit, exit code read rather than inferred
(1249 at the filing commit; the 21 added are
#466's, arriving with theorigin/mainmerges, not this branch's)6612d323: 66 sites / 23 members, 50 reachable, 0orphaned, 1 lost (discharged), 0 inconclusive, 0 uncovered, 7 legal non-pins,
0 undeclared non-commit values —
clean, unchanged by this filingRulings, 2026-08-28
Brett ruled by a four-question multi-choice put to him by the orchestrating
session over this pull request and relayed the same day. On every question he
took the packet's own recommendation. The mechanism, the date, the approver
and the selections are recorded in both packets; no verbatim wording of the
ruling reached the authoring session, so none is quoted.
Cleared as authored — all eleven orchestrator decisions. Packet A: OD-1 the
two-packet split (with the re-sequencing accepted) · OD-2 single-capability
all-ADDED · OD-3 realization-only for the sentinel split · OD-4 trailing
boundary over whole-value rewrite · OD-5 correcting the inherited record. Packet
B: OD-1 the split · OD-2 capability home and two-requirement shape · OD-3 the
narrowed scope · OD-4 declared code over message matching · OD-5 fixing
exists()alongside the named surface · OD-6 declaring the cut withoutreserving a minor.
Ruled — all eight questions. Packet A: Q1 ride the existing
undeclared-non-commit defect · Q2
unreadable-repositoryfor a failedgit log· Q3 import the declared constant · Q4 a structural test over thedeclaration. Packet B: Q1
ReleaseDependencyErrorwrapping the original ·Q2 one declared code, not fifteen · Q3 reuse the existing fixtures ·
Q4 drive the failing condition by argument.
THE CLEARANCE MOVED NOTHING, measured rather than asserted:
git diffoverboth
specs/trees reports zero lines. Every ruled answer is realizationmechanics, and both requirements were written to govern the outcome rather than
the mechanism. Each question's original text is kept verbatim beneath its
ruling; every decision's original flagged text is kept as marked history.
What the same act settled about what comes next — none of it performed here:
merge on green is approved and is the orchestrating session's act; both
realizations are pre-commissioned to dispatch in order, packet A first and
archived on its own green, packet B second with its candidate inventory built
in the realization pull request and
verify-promotionplus the annotated tagleft post-merge per the
contract-v1.44precedent; and the bundle state wasre-affirmed —
contract-v2.0is current, so the cut allocates the nextnumber at merge order and the collision check still runs before one is claimed.
🤖 Generated with Claude Code