Skip to content

Propose the measured-latents pair: a fabricated pin, an under-claimed sentinel, and a flattened resolution failure - #463

Merged
brettheap merged 4 commits into
mainfrom
change/fix-measured-pin-latents
Aug 28, 2026
Merged

brettheap merged 4 commits into
mainfrom
change/fix-measured-pin-latents

Conversation

@brettheap

@brettheap brettheap commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

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.

RULED 2026-08-28 — all eleven orchestrator decisions cleared as authored and
all eight open questions ruled on the packets' own recommendations, and the
clearance moved NO delta text.
Merge on green is approved and is the
orchestrating session's act, not this one's. See § Rulings at the bottom.

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.yaml files keep the two voices
apart 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:

defect surface contract-v2.0 inventory member? realization gate
1 — trailing hex boundary scripts/doc_health/pin_class.py no merge + green
3 — "unknown" split snapshot_registry.py, avatar_f0/cli.py, pin_sentinels.py no merge + green
2 — _blob_object_id conflation scripts/hermes_runtime_validation/release.py YES, type: validator, at the digest the tree holds merge + green + an additive bundle cut

Bundling all three would hold two zero-cost fixes behind a human-gated contract
tag — the contract-v1.44 precedent (same file, same cause, 2026-08-26) records
that verify-promotion and the annotated tag are not the authoring session's
acts. The rejected one-packet alternative is argued in full in both
design.md § 1, with the honest cost stated: the split re-sequences the
approved 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-promotion and the tag left post-merge.

fix-pin-value-boundary-and-sentinel-split — defects 1 and 3, no bundle owed

Defect 1, constructed and run at 6612d323. 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. A 64-hex value under a
swept key therefore yields a fabricated 40-character "pin" — the truncated
prefix of a value nobody wrote:

expression site result
_field_re (YAML and JSON forms) :204 fabricated, length 40
_VOCAB_RE (YAML and JSON) :980 fabricated, length 40
prose member ideation/cross-reference.md :347 fabricated, length 40
prose member gate-action record :406 fabricated, length 40
LOOSE_SHA_RE on the same line :159 no match — the guard works

FULL_SHA_RE then accepts that prefix as a whole object name. The guard against
exactly 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 two
prose 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 three
conditions, not § 5.6's three. cli.py:49 fires on two conditions by itself —
its subprocess.run has no check and its return code is never read — so no
split is correct without a branch that does not exist yet. And
snapshot_registry.py:283 measures as already correct: the projector's
condition genuinely is unestablished-revision. Both are corrections to the
inherited record rather than agreements with it.

Delta: 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 — ideation-cross-reference's "the condition it names MUST
be the one that actually held" — with no requirement of its own (OD-3). Not a
delta-less packet: supersede-lost-pin-baseline OD-3's measurement re-taken
here 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/ or
experiments/.

fix-content-resolution-conflation — defect 2, and a 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, the tree was
read and the path was not in it — for which None is the right answer. Six
conditions 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 report
the surface clean having read neither blob — the quiet direction, which
emits nothing.

Recorded as § 6.3 of the archived fix-release-reachability-race, quoted
verbatim rather than paraphrased. The caller consequence and the identical
_CommitSource.exists conflation at :401-405 — whose False decides whether
contracts/manifest.yaml is present at the commit — are measured here and not
inherited.

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.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, 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.28 renumber precedent.

Validation

  • OPENSPEC_TELEMETRY=0 openspec validate --all --strict → 78 passed, 0
    failed
    (76 before this pair)
  • both changes --strict valid individually
  • set -o pipefail; python3 -m pytest tests/doc-health -q → 1270 passed, 0
    failed, 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 the
    origin/main merges, not this branch's)
  • declared pin class at 6612d323: 66 sites / 23 members, 50 reachable, 0
    orphaned, 1 lost (discharged), 0 inconclusive, 0 uncovered, 7 legal non-pins,
    0 undeclared non-commit values — clean, unchanged by this filing

Rulings, 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 without
reserving a minor.

Ruled — all eight questions. Packet A: Q1 ride the existing
undeclared-non-commit defect · Q2 unreadable-repository for a failed
git log · Q3 import the declared constant · Q4 a structural test over the
declaration. Packet B: Q1 ReleaseDependencyError wrapping 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 diff over
both 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; 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-promotion plus the annotated tag
left post-merge per the contract-v1.44 precedent; and the bundle state was
re-affirmed — contract-v2.0 is current, so the cut allocates the next
number at merge order and the collision check still runs before one is claimed.

🤖 Generated with Claude Code

…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]>
Copilot AI lite review requested due to automatic review settings August 28, 2026 07:47

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hi @brettheap! 👋

Your private repo does not have access to Sourcery.

Please upgrade to continue using Sourcery ✨

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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-health and shared-contract-ownership under 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
Copilot AI review requested due to automatic review settings August 28, 2026 07:50

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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 is PinMember.line_re() in scripts/doc_health/pin_class.py (and it is the method that compiles self.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

Comment on lines +39 to +42
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.)
brettheap and others added 2 commits August 28, 2026 04:48
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]>
Copilot AI review requested due to automatic review settings August 28, 2026 08:54

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 11 out of 11 changed files in this pull request and generated no new comments.

@brettheap
brettheap merged commit 5314fac into main Aug 28, 2026
4 checks passed
@brettheap
brettheap deleted the change/fix-measured-pin-latents branch August 28, 2026 09:17
brettheap pushed a commit that referenced this pull request Aug 28, 2026
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]>
brettheap pushed a commit that referenced this pull request Aug 28, 2026
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]>
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