Skip to content

Propose declare-sentinel-pin-vocabulary: the shared declared vocabulary for honest non-pins, and the git_generation() dirty-tree fix - #442

Merged
brettheap merged 5 commits into
mainfrom
change/declare-sentinel-pin-vocabulary
Aug 28, 2026
Merged

brettheap merged 5 commits into
mainfrom
change/declare-sentinel-pin-vocabulary

Conversation

@brettheap

@brettheap brettheap commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

Proposal only. No code. All five flagged decisions cleared and all four open questions ruled on 2026-08-27 — merge approved on green, performed by the orchestrating session, not by the authoring one.

Files the follow-up two archived packets deferred and Brett ruled was one packet:

Why it is its own packet

An orphaned pin was true once. A HEAD stamped from a dirty tree never was — the commit resolves perfectly and names a tree the generator did not read. Reachability answers PASS, retention has nothing to retain, re-derivation has no state to re-derive from, and a superseding record has no loss to name. No instrument the pin canon carries reaches it, and the verification cannot see it.

What was measured (2026-08-27, fresh worktree off origin/main at b5fb03f3)

  • The defect stands. scripts/bootstrap-ideation-cross-reference.py:144-154 — no status --porcelain, no diff --quiet, no sentinel branch, no fallback; check=True.
  • Sentinel sites re-counted from the declared globs. 34 proposal-support manifests: 24 real pins, 6 "uncommitted-worktree", 1 "not-applicable-ad-hoc", 3 with no key. Archived count confirmed exactly. All ten are inside archived packets.
  • One correction to the inherited premise, recorded rather than smoothed. The archived record says the generator "already refuses to write a pin it cannot mean". It does not. git log -S"uncommitted-worktree" -- scripts/ is empty across all history, as is the search for not-applicable-ad-hoc. repo_revision() emits a third spelling, "uncommitted", and only on a rev-parse non-zero exit — never on a dirty tree. All seven sentinel values were hand-written. That strengthens the case: the practice is real, it was right 7/7, and it lives in no generator and no declaration.
  • The sentinels are invisible by construction, and invisible is not excluded. pin_class.py binds both site regexes' value group to ([0-9a-f]{40}), so a sentinel creates no site: not reachable, not orphaned, not lost, and not uncovered. Probe: 65 sites / 22 members — 50 reachable, 0 orphaned, 1 lost (discharged), 0 inconclusive, 0 uncovered, 0 vanished. A fully verified class over seven artifacts nothing has read.
  • The drift is already a latent raise, run rather than predicted. Three guards in proposal-support.py (:184, :632, :737) compare against the literal "uncommitted"; git_blob_sha256(root, "uncommitted-worktree", …) raises SupportError: invalid repository revision: uncommitted-worktree where "uncommitted" returns None. Latent only because the crashing guard is on the active-support path and all seven sentinel manifests are archived.
  • Six undeclared spellings exist: "uncommitted", "uncommitted-worktree", "not-applicable-ad-hoc", "unknown", "composed", beside the adjacent verdict constant "not-applicable". Two appear in no governance document at all.

The delta

Four requirements ADDED across two capabilities, nineteen scenarios, none MODIFIED.

Capability ADDED Scenarios
ideation-cross-reference 2 — the generator rules 9
doc-health 2 — the verification rules 10
  • Generator: a generator that cannot truthfully pin writes a declared sentinel, one shared spelling per condition — never a commit that never described the content, never an undeclared free-form string. A clean tree keeps the real pin unchanged. And the committed spellings are grandfathered, never rewritten — all seven sit in archived packets whose bytes this capability's own rule protects, the same ordering that makes retention rather than re-pinning the repair for a record.
  • Verification: a declared sentinel is a legal non-pin — a fifth outcome beside reachable / orphaned / lost / uncovered, which does not hold full verification open because the artifact is conforming — and an undeclared non-commit value is a defect naming artifact, key and value. The vocabulary is declared beside the pin class and checked in both directions over that class's own inventory.

Adds no deterministic check family and does not restate the enumeration, on the same two reasons both siblings gave.

Decisions and questions — resolved by ruling (2026-08-27)

A four-question multi-choice put to Brett by the orchestrating session; approver, date, mechanism and selections are recorded, no wording invented.

All five § Orchestrator decisions CLEARED AS AUTHORED — the two-capability all-ADDED split, the vocabulary beside the pin class with no path in canon, grandfathering rather than normalizing, filing on the corrected premise, and no check family. The clearance moved nothing; the original flagged text is kept as marked history.

All four § Open Questions RULED, and three moved delta text:

Ruling What moved
Q1 Declare both spellings with distinct meanings — "uncommitted-worktree" canonical for a dirty tree, "uncommitted" its own member meaning unreadable repository Grandfathering requirement now obliges establishing which condition each spelling names before marking any legacy (two spellings that look like variants are sometimes two conditions); +1 scenario. Unblocks tasks § 2.1
Q2 An absent key is not an honest non-pin — a recognized legacy state, never a member, never filled in after the fact Stated in both capabilities; +1 scenario
Q3 "unknown" and "composed" join — otherwise the defect branch would flag the snapshot registry's own committed output on day one Generalized into a seeding obligation on the declaration, with the trade stated so it is not read as an amnesty; +1 scenario
Q4 The proposal-support.py guard repair is in scope No delta text — the consumer scenario already obliged it; tasks § 2.7 unconditional

Counts are additive: requirements unchanged at four, scenarios 8/8 → 9/10. One point neither ruling settles is recorded rather than invented — "unknown" also stands for an unreadable revision, so whether it is a second spelling of "uncommitted"'s condition is left to realization under the same-condition rule.

Gate

  • OPENSPEC_TELEMETRY=0 openspec validate declare-sentinel-pin-vocabulary --strict — valid
  • OPENSPEC_TELEMETRY=0 openspec validate --all --strict — 75 passed, 0 failed (74 → 75; re-run green after origin/main was merged in twice, latest at b223b0b6)
  • python3 -m pytest tests/doc-health -q under set -o pipefail — 1215 passed on the current head (1209 at filing; grown by six for main's reasons and none for this act)

🤖 Generated with Claude Code

brettheap and others added 2 commits August 27, 2026 19:09
Two archived packets deferred the same question and Brett ruled they were one.
harden-ideation-readiness-check 5.3 wrote down that git_generation() pins HEAD on
a dirty tree; govern-derived-pin-reachability 5.1 carried it forward and found
the sentinel practice while realizing. This is that packet.

An orphaned pin was true once. A HEAD stamped from a dirty tree never was, and it
is worse for exactly that reason: the commit resolves, reachability answers pass,
retention has nothing to retain, re-derivation has no state to re-derive from,
and no instrument the pin canon carries reaches it. The defect still stands on
main at bootstrap-ideation-cross-reference.py:144-154 — no status --porcelain, no
diff --quiet, no fallback branch of any kind.

One correction to the premise this packet inherited, recorded rather than
smoothed, because it changes what the packet is for. The archived record says the
proposal-support generator already refuses to write a pin it cannot mean. It does
not. Searching all history for uncommitted-worktree under scripts/ returns
nothing, and so does not-applicable-ad-hoc; neither string has ever existed in
any script here. repo_revision() emits a third spelling, "uncommitted", and only
when rev-parse exits non-zero — never on a dirty tree. All seven sentinel values
were written by hand, one packet at a time. That makes the case stronger: the
practice is real, it was right seven times out of seven, and it lives in no
generator and no declaration.

The sentinels are invisible to the verification by construction, and invisible is
not excluded. Both site regexes in pin_class bind their value group to forty hex
characters, so a sentinel creates no site at all: not reachable, not orphaned,
not lost, and not uncovered. The probe reports 65 sites across 22 members, 50
reachable, 0 orphaned, 1 lost, 0 uncovered — a fully verified class over seven
artifacts whose central provenance claim nothing has ever read.

The drift is already a latent raise, run rather than predicted. Three guards in
proposal-support.py compare against the literal "uncommitted", so
git_blob_sha256 with "uncommitted-worktree" raises SupportError where
"uncommitted" returns None. Latent only because all seven sentinel manifests are
archived and the crashing guard sits on the active path. Six undeclared spellings
exist across generators; two of them appear in no governance document at all.

Four requirements added across two capabilities, sixteen scenarios, none
modified. ideation-cross-reference gets the generator rules: write a declared
sentinel rather than an untrue commit, one shared spelling per condition, and
declare the committed spellings rather than rewrite them — every one sits in an
archived packet whose bytes this capability's own rule protects, the same
ordering that makes retention rather than re-pinning the repair for a record.
doc-health gets the verification rules: a declared sentinel is a legal non-pin, a
fifth outcome beside reachable, orphaned, lost and uncovered, and it does not
hold full verification open because the artifact is conforming; an undeclared
non-commit value is a defect naming artifact, key and value; and the vocabulary
is declared beside the pin class and checked in both directions over that class's
own inventory.

No deterministic check family is added and the enumeration is not restated, on
the same two reasons both siblings gave.

Brett commissioned the filing verbatim on 2026-08-27; that admits the packet and
nothing more. Five decisions stay flagged for veto and four questions stay open,
including which spelling is canonical for the dirty-tree condition.

openspec validate --strict green; --all --strict 74 -> 75 passed, 0 failed.
tests/doc-health 1209 passed under pipefail.

Co-Authored-By: Claude Fable 5 <[email protected]>
Copilot AI lite review requested due to automatic review settings August 27, 2026 23:11

@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 a new OpenSpec change packet, declare-sentinel-pin-vocabulary, proposing a shared, declared vocabulary for “honest non-pins” (non-commit provenance values) and documenting the motivation/plan to fix git_generation() so it does not stamp HEAD from a dirty working tree.

Changes:

  • Adds a new spec-driven change packet with proposal/design/tasks and two spec deltas (ideation-cross-reference, doc-health) defining generator and verification requirements for declared sentinels.
  • Updates the repository’s OpenSpec “Active changes” index (README) to include the new packet.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
README.md Adds the packet to the OpenSpec Records active-change index.
openspec/changes/declare-sentinel-pin-vocabulary/.openspec.yaml Defines the packet’s origin/approval metadata and related links.
openspec/changes/declare-sentinel-pin-vocabulary/proposal.md Records the proposal, measurements, decisions/questions, and intended deltas.
openspec/changes/declare-sentinel-pin-vocabulary/design.md Captures rationale and design decisions for the vocabulary + verification behavior.
openspec/changes/declare-sentinel-pin-vocabulary/tasks.md Provides filing evidence, implementation checklist, and archive gate criteria.
openspec/changes/declare-sentinel-pin-vocabulary/specs/ideation-cross-reference/spec.md Adds generator-side requirements for declared sentinels vs commit pins.
openspec/changes/declare-sentinel-pin-vocabulary/specs/doc-health/spec.md Adds verifier-side requirements for classifying sentinels and checking the declaration.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread README.md
Comment on lines +384 to +386
— **RATIFIED 2026-08-27** (Brett, in-session commissioning of the filing,
verbatim: "file the sentinel-vocabulary follow-up change"). A SECOND, EARLIER
ruling of the same day constituted the packet rather than ordering it —
Comment on lines +4 to +7
Status: ratified
Ratified: 2026-08-27 by Brett — in-session commissioning of the filing, verbatim: "file the sentinel-vocabulary follow-up change". THE CITATION COVERS THE DECISION TO FILE THIS CHANGE AND NOTHING ELSE; the five decisions in § Orchestrator decisions below were taken by the authoring session under standing patterns and are NOT covered by it, nor are the four questions in § Open Questions. A separate and EARLIER ruling of the same day constituted the packet's scope rather than ordering it — selected verbatim as "Named follow-up (Recommended): Record it beside the §5.3 git_generation() follow-up — they're the same idea (honest non-pins) and should be one future packet" — and it is recorded in `.openspec.yaml` as a distinct act. The record this citation resolves against is this file, § Orchestrator decisions and § Open Questions. No approving OpenSpec change exists to name, so the citation takes the record spelling `sanction-ratified-record-spelling` sanctioned for exactly that case, and clears its three-way floor on all three axes rather than on the one it needs: approver (`by Brett`), date (`2026-08-27`), and a resolvable record path.
Proposed: 2026-08-27
Origin: The one follow-up two archived packets agreed was a single question. `harden-ideation-readiness-check` § 5.3 recorded that `git_generation()` pins `HEAD` on a dirty tree. `govern-derived-pin-reachability` § 5.1 carried that item forward, found the sentinel practice while realizing, and Brett ruled at that archive that the two are the same idea — honest non-pins — and belong in one future packet. This is that packet, and re-measuring its own premise on the day of filing changed what it is for.
brettheap and others added 2 commits August 27, 2026 21:45
The veto window closed the same day it opened. All five orchestrator decisions
cleared as authored, so the clearance moves nothing — the two-capability
all-ADDED split, the vocabulary beside the pin class with no path in canon,
grandfathering rather than normalizing, filing on the corrected premise, and no
check family all stand exactly as written. The original flagged text is kept as
marked history rather than rewritten, because what was flagged and why is the
part a later reader needs.

The questions were different: three of the four changed what canon says.

Q1 ruled both spellings are members with distinct meanings —
uncommitted-worktree canonical for a dirty tree, uncommitted its own member
meaning unreadable repository. That is not the canonical-plus-legacy shape the
packet drafted for them, so the grandfathering requirement now obliges the
declaration to establish which condition each spelling names before marking any
of them legacy: two spellings that look like variants of one condition are
sometimes two conditions wearing similar words, and folding the second into the
first as a legacy spelling would silently restate every artifact carrying it. One
scenario added. One point neither ruling settles is recorded rather than
invented: unknown also stands for an unreadable revision, so whether it is a
second spelling of that condition, and which is then canonical, is left to
realization under the same-condition rule.

Q2 ruled an absent key is not an honest non-pin. It is a recognized legacy state
of the corpus — visible, reported once, repaired never — and never a member, and
no absent key is filled in with a sentinel after the fact, because a sentinel
asserts which condition applied and absence records no condition at all. Stated
in both capabilities; one scenario added.

Q3 ruled unknown and composed join, and gave a reason the packet had not stated:
left out, the undeclared-value-is-a-defect branch would flag the snapshot
registry's own committed output the day it was switched on. That generalizes, so
it is now a seeding obligation on the declaration rather than a fact about two
strings — every non-commit spelling the corpus already carries is resolved before
the branch runs, declared where it names a real condition or corrected at its
generator where it does not. The trade is stated in the same breath so it cannot
be read as an amnesty. One scenario added.

Q4 ruled the proposal-support guard repair in scope, and moved no delta text
because the obligation was already there: a guard that recognizes one spelling is
already a reported coverage gap. Q1 sharpens that repair rather than complicating
it — the guards are not learning a synonym, they are learning that the condition
they test for has more than one member.

Counts additive: four requirements unchanged, scenarios 8/8 to 9/10. Merge
approved on green and is not this session's to perform.

openspec validate --strict green; --all --strict 75 passed, 0 failed.
tests/doc-health 1215 passed under pipefail, on origin/main merged in at b223b0b.

Co-Authored-By: Claude Fable 5 <[email protected]>
Copilot AI review requested due to automatic review settings August 28, 2026 01:52

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 7 out of 7 changed files in this pull request and generated 2 comments.

Comment on lines +107 to +113
THE CITATION COVERS THE DECISION TO FILE AND NOTHING ELSE. Every decision in
`proposal.md` § Orchestrator decisions — the two-capability all-ADDED split,
the vocabulary's home beside the pin class, grandfathering the committed
spellings rather than normalizing them, filing on a corrected premise, and
adding no deterministic check family — was taken by the authoring session and
stays FLAGGED FOR VETO, as do the four questions in § Open Questions, each of
which carries a recommendation and no decision.
Comment on lines +200 to +202
requirement. **The existing 53 tests in `test_pin_reachability.py` must stay
green unchanged** — none of them asserts anything about a non-commit value
today, which is itself the coverage gap.
…, both kept

The third main race on this branch and the first to conflict. One file, one hunk:
the OpenSpec Records active-changes block, where create-ledgerxwallet-overlay-boundary
landed at the top on main while this branch already had declare-sentinel-pin-vocabulary
there. Both sides were adding, neither was editing the other, so both entries are
kept verbatim and ordered newest-first — ledgerxwallet ratified 2026-08-28, this
packet 2026-08-27 — which is main's own ordering and the block's convention.

Nothing else conflicted. The new active change declares only
ledgerxwallet-overlay-boundary, so it does not touch either capability this packet
adds to, and both spec deltas are byte-identical across the merge.

openspec validate declare-sentinel-pin-vocabulary --strict green.
--all --strict 76 passed, 0 failed (75 -> 76, the arriving change).
tests/doc-health 1215 passed under pipefail on the resolved head.

Co-Authored-By: Claude Fable 5 <[email protected]>
Copilot AI review requested due to automatic review settings August 28, 2026 02:13

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 7 out of 7 changed files in this pull request and generated no new comments.

@brettheap
brettheap merged commit 45ba637 into main Aug 28, 2026
4 checks passed
@brettheap
brettheap deleted the change/declare-sentinel-pin-vocabulary branch August 28, 2026 02:43
brettheap added a commit that referenced this pull request Sep 12, 2026
…ny landed), reconcile the 5.2/5.7 wording (#1005)

Lane: openxfactory-4-opendox-extraction

Refs #656 (stays OPEN). CLAIM: #656 comment 5646972546 (continuation of 5641679012; amendment #1 landed as #991 → 1f06864).

split-opendox-two-layer-product tasks.md amendment #2. Two boxes tick on the § 5.8
landing (opensoft/xFactory #442 → 41d6d7aeb15dbb73c75ac4e9ba2cb2e8cfc6c1a3, admin-merged
by the lane on Brett Heap's word by interactive multi-choice, RULED ASK-9b → 1):
- 5.8 — the aggregation row + re-point ceremony (root gitlinks openDox 8ec3036c / openXdox
  eca0b597 equal to openxFactory's nested gitlinks and pin files; codexFactory and
  MIGRATION_PIN untouched).
- 1.9 — the two derived project-register.yaml election rows, verified against both roots'
  project.yaml.
Two boxes stay open with a reconciliation STATUS paragraph appended after their own text,
nothing else edited: 5.2 ("four dashboard contract schemas" versus the five manifest rows —
5.6a records the defect) and 5.6a's "two defects in 5.2 and 5.7" note (defect (b) is answered
in the contract-v4.0 CHANGELOG entry; defect (a) lives in 5.2).

Box count 37 ticked / 34 open → 39 ticked / 32 open of 71. `proposal-support.py verify` ok;
`openspec validate --strict` valid. Merged main in (879e950's merge left the file at the
merge-base; no conflict). pytest-suite 34706948296 SUCCESS at 2b93e7a; Copilot review at
2b93e7a: 0 findings; 0 threads.
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