Skip to content

Sweep the proposal-origin errors: one derivable, two a STOP - #344

Merged
brettheap merged 1 commit into
mainfrom
fix/proposal-origin-errors
Aug 25, 2026
Merged

brettheap merged 1 commit into
mainfrom
fix/proposal-origin-errors

Conversation

@brettheap

Copy link
Copy Markdown
Contributor

The act

Brett ruled it on 2026-08-25, verbatim:

sweep the three proposal-origin errors

Result: one swept, two STOPPED. The headline moves 8 error → 7 error, not → 5, and that is the honest outcome rather than a shortfall — two of the three packets' records establish no origin at all, and declaring one would mean fabricating approval provenance.

What the family actually requires — read before writing anything

proposal_origin.py splits ERROR from WARNING on CONTRACT_DATE = "2026-08-07": a packet created after it owes a declaration; on or before, it is "pre-contract legacy". All three errors are post-contract packets. The two declarable kinds:

kind required id grammar
ad_hoc kind, id, reason, approved_by, approved_on — "the explicit approval provenance the ad-hoc exception requires" <repo>:adhoc:<slug>
staged kind, id, path — and the path must resolve at the manifest's source_revision <repo>:staging:<topic>

Neither kind can be declared without a record behind it. That is precisely what makes two of these three unfixable, not merely unfixed.

✅ FIXED — archive/2026-08-14-add-worker-credential-by-reference

Every required field derived from the packet's own record:

reason — the forcing fact is a live outage its own § Why records:

"Between 2026-07-25 and 2026-08-13 three Omnigent worker lanes on the opensoft CPC fleet were dark because ONE host-profile OAuth session expired — and nothing noticed, because a host-resident credential fails silently and its repair requires host administration."

with the ownership split pre-ruled, per its tasks.md § 1.1:

"The ownership split was pre-ruled 2026-08-11 — neutral contract, operator as binding; this change realizes that ruling as contract text."

approved_by / approved_on — in its own lifecycle header:

Ratified: 2026-08-14 by Brett Heap — in-session, verbatim: "I ratify the contract — implement the realization"

created: 2026-08-14 — verified against the packet's first commit 8eae26b8 ("Propose add-worker-credential-by-reference"), not assumed from the archive folder prefix.

Declared ad_hoc, deliberately NOT staged

The packet names the hermes-stack-topology-per-client staging topic twice, which is the tempting staged declaration — and it would misstate the record:

  • That topic's own INDEX.md row exits to OpsxFactory add-request-intake-boundary, not to this change.
  • This packet's tasks.md § 1.2 describes its own relationship to the topic as a "follow-through pointer" added by this change — a pointer back to it, not a transition out of it.
  • The topic is still resident in ideation/staging/.

So the topic is where a prior ruling was recorded and where this change left a pointer. It is not this change's origin. Declaring staged against it would have cleared the finding by misdescribing the record — the exact failure the derive-never-invent discipline exists to prevent.

🛑 STOPPED — create-medxchart-overlay-boundary and create-medxpractice-overlay-boundary

Their records establish no origin, and that is not my reading — a prior ratified read-back already established it. govern-openspec-corpus-membership's archived task record read both packets exhaustively:

"The record names no ratification act. .openspec.yaml carries schema: and created: 2026-08-23 only — no approved_by/approved_on pair at all … tasks.md is implementation and verification throughout with no ratification task and no approval line; SIX landing commits across the two packets … all six are single-line implementation messages. No pull request exists for either packet."

and of the three things that could establish ratification:

"None of those three exists here."

Both are legitimately Status: draft — the read-back notes "none is owed: the promoted rule requires one only for Status: ratified."

Why neither kind is available:

  • ad_hoc requires approved_by and approved_on. The record names no approver and no approval date. Supplying them would fabricate approval provenance for packets a prior ratified read-back found were never approved.
  • staged requires a staging topic. A search of ideation/staging/ and INDEX.md for medxchart / medxpractice / openchart / openpractice returns one unrelated topic (dashboard-project-scoping, which merely mentions the names). No transition source exists.

Their commit subjects are bare ("Govern MedxChart composition boundary"), and their prose carries no commissioning ruling, brainstorm lineage, or staging header.

These two keep their errors. An honest partial sweep beats an invented declaration. Discharging them needs a ruling that supplies the approval — which is a governance act, not a metadata edit.

Discipline notes

Archived-packet edit is precedented, not novel. 78 of 94 archived packets already carry .openspec.yaml, many with origin: blocks backfilled by the 2026-07-12 migration (the family's own MIGRATION_EVIDENCE_RELPATHS machinery). Measured before pushing, as asked:

  • .openspec.yaml is outside the governed corpus — corpus.py never references it — so record-immutability cannot fire on it.
  • schema: is validated nowhere.
  • The report diff is three lines out, one in, nothing else — no family was disturbed.

The two ACTIVE packets belong to other lanes and were not edited at all. This PR touches exactly one file.

Exit path determination

The #323/#343 mechanical class — metadata alignment to an authority the record already carries. No OpenSpec packet. Confirmed nothing demands more: the origin file is a precedented artefact beside archived packets, the values are quoted from the packet's own record, and no spec requirement changes. Nothing in canon needed amending.

The 30 warnings — outlook for the next commission

Out of scope here, deliberately. Forecast so the next commission is informed:

count
proposal-origin warnings total 30
active packets / archived packets 9 / 21
already carry .openspec.yaml (missing only the origin: block) 7
carry no .openspec.yaml at all 23
whose proposal carries a Ratified: citation — an approver + date to derive from, same method as this sweep 23
whose proposal carries no ratification citation — the same STOP class as the two medx packets 7

So roughly 23 look derivable by the identical method and ~7 are likely STOPs for the same reason the medx packets are. They are warning rather than error only because they are pre-contract; the derivation work is the same shape, just larger.

Verification

gate main 1bf16533 this branch
python3 -m pytest tests/doc-health 889 passed, 7 skipped 889 passed, 7 skipped — unchanged
openspec validate --all --strict 76 passed, 0 failed (76 items) 76 passed, 0 failed (76 items) — unchanged
single-repo headline 5 critical, 8 error, 73 warning, 4 info 5 critical, 7 error, 73 warning, 4 info

Every changed report line accounted:

removed: 3 | added: 1
--- REMOVED ---
   Findings: 5 critical, 8 error, 73 warning, 4 info. …
   - [error] REPO:openspec/changes/archive/2026-08-14-add-worker-credential-by-reference — proposal carries no origin declaration
   - severity=error family=proposal-origin … path=openspec/changes/archive/2026-08-14-add-worker-credential-by-reference …
--- ADDED ---
   Findings: 5 critical, 7 error, 73 warning, 4 info. …

All three self-checking families read this branch clean:

PROMOTION_FIDELITY_GATE_EXIT=0
DUPLICATE_PACKET_GATE_EXIT=0
FAMILY_ENUMERATION_GATE_EXIT=0

Exit codes direct: PYTEST_EXIT=0, ALL_STRICT_EXIT=0, HEALTH_EXIT=0.

Branch point and collisions

Branched from 1bf16533 (the #343 merge). Collision-checked before building and again before pushing — main carries no origin file for the archived packet, and no PR claims this sweep.

🤖 Generated with Claude Code

… STOP

Brett ruled it on 2026-08-25, verbatim: "sweep the three proposal-origin
errors" - the three the FAMILY_IDS fix made visible.

DERIVED, NEVER INVENTED. The proposal-origin family splits ERROR from WARNING on
CONTRACT_DATE 2026-08-07: a packet created after it owes a declaration, one
created on or before is pre-contract legacy. All three errors are
post-contract packets. `kind: ad_hoc` REQUIRES reason, approved_by and
approved_on - "the explicit approval provenance the ad-hoc exception requires" -
and `kind: staged` requires a staging id plus a path that resolves at the
recorded source revision. Neither kind can be declared without a record behind
it, which is what makes two of these three unfixable rather than merely
unfixed.

FIXED - archive/2026-08-14-add-worker-credential-by-reference. Its own record
establishes every required field. The forcing fact is a live outage its § Why
records: three Omnigent worker lanes dark from 2026-07-25 to 2026-08-13 because
one host-profile OAuth session expired silently. The ownership split was
pre-ruled 2026-08-11 per its tasks § 1.1. The approval is in its own lifecycle
header - "Ratified: 2026-08-14 by Brett Heap - in-session, verbatim: 'I ratify
the contract - implement the realization'" - giving approved_by and
approved_on directly. `created: 2026-08-14` was verified against the packet's
first commit 8eae26b rather than assumed from the archive folder prefix.

Declared ad_hoc and NOT staged, deliberately. The packet names the
`hermes-stack-topology-per-client` staging topic twice, and it is not a
transition source: that topic's INDEX row exits to OpsxFactory
`add-request-intake-boundary`, and this packet's tasks § 1.2 calls its own
relationship to the topic a "follow-through pointer" added BY this change.
Declaring staged against it would misstate the record to clear a finding.

STOPPED - create-medxchart-overlay-boundary and
create-medxpractice-overlay-boundary. Their records establish NO origin, and
that is not my reading: `govern-openspec-corpus-membership`'s archived task
record already read both packets exhaustively and concluded "The record names
no ratification act... no approver/approved_on pair at all... tasks.md is
implementation and verification throughout with no ratification task and no
approval line... No pull request exists for either packet," and of the three
things that could establish ratification, "None of those three exists here."
Both are legitimately `Status: draft`. With no approver and no approval date in
the record, ad_hoc cannot be declared without fabricating approval provenance
for packets a prior ratified read-back found were never approved; with no
staging topic, staged is unavailable too. An honest partial sweep beats an
invented declaration, so these two keep their errors and this reports them by
name.

EXIT PATH: the #323/#343 mechanical class - metadata alignment to an authority
the record already carries, no OpenSpec packet. Confirmed nothing demands more:
78 of 94 archived packets already carry .openspec.yaml, many with origins
backfilled by the 2026-07-12 migration, so an origin file beside an archived
packet is precedented rather than novel. `.openspec.yaml` is outside the
governed corpus - corpus.py never references it - so record-immutability cannot
fire on it, and `schema:` is validated nowhere. Measured rather than assumed:
the report diff is three lines out and one in and nothing else.

Headline 8 error -> 7 error, not 5: exactly the one derivable error cleared.
Removed the finding line, its ranked-plan line, and the old headline; added the
new headline. Every other line byte-identical. doc-health 889 passed / 7
skipped, unchanged from main. openspec --all --strict unchanged at 76 items.
All three self-checking families exit 0 at --fail-on error.

Touched exactly one file. The two active packets belong to other lanes and were
not edited at all.

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

@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 ✨

@brettheap
brettheap merged commit a90d631 into main Aug 25, 2026
2 of 3 checks passed
@brettheap
brettheap deleted the fix/proposal-origin-errors branch August 25, 2026 13:57

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 pull request addresses the proposal-origin doc-health errors by adding an explicit, contract-compliant origin: declaration to the archived OpenSpec change 2026-08-14-add-worker-credential-by-reference, deriving the required ad-hoc provenance fields from the packet’s own recorded approval/ratification evidence (rather than inventing a staged lineage).

Changes:

  • Add a new .openspec.yaml metadata file for the archived packet with schema, created, and a complete origin block.
  • Declare origin.kind: ad_hoc with a durable id matching the enforced grammar, and provide the required reason, approved_by, and approved_on fields.

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

brettheap pushed a commit that referenced this pull request Aug 25, 2026
…ord lacked

Brett ruled it on 2026-08-25, verbatim: "admit the two medx boundary packets".
That ruling IS the governance act PR #344's STOP said was missing, so the two
remaining proposal-origin errors discharge on it.

WHY AN ACT WAS NEEDED, and it was measured twice before it was asked for.
govern-openspec-corpus-membership's archived read-back found of MedxChart "The
record names no ratification act ... no approver/approved_on pair at all ...
tasks.md is implementation and verification throughout with no ratification
task and no approval line ... No pull request exists for either packet", of
MedxPractice "The same, on its own record", and of the three things that could
establish ratification "None of those three exists here." PR #344 then STOPPED
rather than declare an origin on that record: ad_hoc requires approved_by and
approved_on, staged requires a staging topic, and neither existed. Brett's
admission supplies exactly the approval that was absent. Both declarations
quote the read-back and cite the STOP, so a future reader can reconstruct the
whole chain from the metadata alone.

AN ADMISSION, NOT A RATIFICATION, and the declarations say so in those words.
The act supplies the origin/approval pair the proposal-origin contract requires
and nothing more. Both packets remain Status: draft, carry no ratification
citation, and owe none - the promoted lifecycle rule requires one only for
Status: ratified. Whether their content is ratified is a separate act that has
not happened. Verified: the proposal.md files are untouched, both still read
Status: draft, and the only files this commit changes are the two
.openspec.yaml.

DERIVED, NOT ASSUMED, on all three fields that had a choice.
- created: BOTH files already carried created: 2026-08-23, and both were
  verified against the packets' true first commits in git rather than trusted -
  86f4372 for MedxChart, a324868 for MedxPractice, both dated 2026-08-23,
  matching the six-commit list the corpus-membership read-back recorded. Correct
  as they stood, so neither value was rewritten.
- id: the date component is the CREATED date, not the approval date. Derived
  from the corpus rather than picked: existing ad_hoc ids track created:, and
  the case where the two differ settles it - an archived packet with
  created: 2026-08-10 carries id-date 2026-08-10 against approved_on
  2026-08-11. So the ids read 2026-08-23 while approved_on reads 2026-08-25.
- kind: ad_hoc, with NO staging origin claimed, because none exists - searched
  across ideation/staging/ and its INDEX for both packets in #344.

NOTE FOR THE RECORD: these are MODIFIED files, not new ones. Both packets
already carried .openspec.yaml with schema: and created: and were missing only
the origin: block - unlike worker-credential in #344, which had no metadata
file at all. So each diff is an append.

EXIT PATH: the #323/#343/#344 mechanical class - metadata alignment carrying an
authority the ruling now supplies, no OpenSpec packet. Nothing read demanded
more: the field shape mirrors #344's, no spec requirement changes, and
.openspec.yaml is outside the governed corpus so record-immutability cannot
fire on it.

Headline 7 error -> 5 error. Five lines out - the old headline, two finding
lines, two ranked-plan lines - and one in, the new headline. Every other line
byte-identical, and NO new finding appeared, so both declarations satisfy the
contract cleanly rather than trading one finding for another. The
proposal-origin family now exits 0 at --fail-on error: the error class is fully
discharged, and the five remaining errors belong to location-conformance and
status-validity. doc-health 889 passed / 7 skipped and openspec --all --strict
76 items, both unchanged from main.

Co-Authored-By: Claude Fable 5 <[email protected]>
brettheap pushed a commit that referenced this pull request Aug 25, 2026
Brett ruled it on 2026-08-25, verbatim: "sweep the 23 derivable proposal-origin
warnings".

THE FRESH SPLIT IS 27/3, NOT 23/7, and the difference is my own earlier
undercount rather than corpus movement. #344's outlook counted packets matching
`^Ratified:` only. This corpus sanctions TWO ratification spellings, and four
packets use `Ratified by:` - add-shared-identity-seeds,
2026-07-30-add-omnigent-semantic-wiring,
2026-07-30-add-ontology-term-lifecycle-enforcement and
2026-07-30-publish-semantic-kernel. 23 + 4 = 27. Re-derived at the branch point
rather than trusted, exactly as asked, which is how the undercount surfaced.

DERIVED, NEVER INVENTED, per packet.
- kind: `staged` for THREE packets only, verified in BOTH directions -
  ideation/staging/INDEX.md names the change as the topic's EXIT, the topic
  folder still exists, and its primary fragment carries the matching Staging ID
  header. Those are add-worker-enrollment-broker (worker-enrollment-broker),
  2026-07-14-add-github-app-identity-tiers (github-administration-plane) and
  2026-07-23-add-hermes-domain-overlay-contract
  (layer-content-materialization). The other 24 are `ad_hoc`: none records a
  Staging ID header and no topic declares them as an exit. Four packets that
  merely APPEAR in INDEX.md were deliberately NOT declared staged -
  add-dispatch-credential-contract and add-doxchat-model-intake are named in
  collision notes, add-deployment-handoff-boundary in a coordination line
  recorded BY the change, add-domain-ontology-layer and
  add-workbench-integrated-editor-chat in prose - because the
  worker-credential lesson from #344 is that a topic merely mentioned is not an
  origin.
- approved_by/approved_on: each packet's own Ratified:/Ratified by: citation,
  quoted verbatim in the declaration, with the approval DATE taken from the
  citation itself rather than the folder. Five of them differ from their folder
  date on purpose: add-deployment-handoff-boundary approved 2026-07-29 in a
  2026-07-30 folder, add-domain-ontology-layer 2026-07-28 in 2026-07-30,
  add-workbench-integrated-editor-chat 2026-07-29 in 2026-08-02,
  adopt-neutral-utility-pack 2026-08-03 in 2026-08-04, adopt-neutral-tooling-home
  and add-consent-instrument 2026-08-03 in 2026-08-05/06.
- created: seven packets already carried one; all seven were VERIFIED against
  their true first commit and none rewritten - each is at or before its first
  commit, which is what authoring-before-landing looks like. The other twenty
  take created from the packet's true first commit in git, never a folder name
  or a file timestamp.
- id: adhoc ids carry the created date per the convention settled in #345;
  staged ids carry no date, which the corpus's 45 existing staged declarations
  establish.

STOPPED - three packets, all Status: draft with no ratification citation:
add-model-provider-broker, add-nightly-dashboard-refresh and
add-omnigent-domain-terminology. add-model-provider-broker carries a `Ruling:`
header, and it was read and rejected as approval provenance: it rules on the
ARCHITECTURE ("the broker MINTS a short-lived token"), not on admitting the
packet. Discharging these three needs an admission act like the one #345
recorded for the medx packets.

Regenerated once after a real defect: the first pass wrapped folded YAML
scalars with textwrap defaults, which broke identifiers across lines so
`proposal-origin` parsed back as "proposal- origin". Folded scalars join lines
with spaces, so the damage was in the VALUE, not just the file. Rewrapped with
break_on_hyphens off and verified against the parsed values - zero split
identifiers across all 27.

.openspec.yaml is outside the governed corpus - re-verified at this branch point
before writing, corpus.py still never references it - so record-immutability
cannot fire on the twenty archived edits, and every edit to an existing file is
an append.

Headline 73 warning -> 46 warning, exactly the 27 swept. 55 lines out - one
headline, 27 finding lines, 27 ranked-plan lines - and one in. Every other line
byte-identical, no non-proposal-origin line moved, and NO NEW FINDING anywhere:
proposal-origin warnings 30 -> 3 is the only count that moved, errors held at 5,
so no declaration traded a warning for an error. All four self-checking gates
exit 0. doc-health 889 passed / 7 skipped and openspec --all --strict 76 items,
both unchanged from main. 27 files touched, all of them .openspec.yaml.

Co-Authored-By: Claude Fable 5 <[email protected]>
brettheap pushed a commit that referenced this pull request Aug 25, 2026
Brett ruled it on 2026-08-25, verbatim: "admit the three remaining packets" -
the stop class PR #348 reported by name. Same act and same scope as #345: an
ADMISSION into the proposal queue, NOT a ratification of content.

WHY AN ACT WAS NEEDED, measured before it was asked for. #348 swept the 27
derivable warnings and stopped on exactly these three because each is
Status: draft carrying no ratification citation in either sanctioned spelling,
so ad_hoc could not be declared without fabricating approval provenance and
staged was unavailable for want of a staging topic. Each declaration quotes that
stop finding, so a future reader can reconstruct the chain from the metadata
alone.

AN ADMISSION, NOT A RATIFICATION. All three remain Status: draft, carry no
ratification citation, and owe none - the promoted rule requires one only for
Status: ratified. Verified: git diff over every proposal.md, tasks.md, design.md
and spec delta is empty, and the only files this commit adds are three
.openspec.yaml.

add-nightly-dashboard-refresh GOT THE ADMISSION, NOT A DERIVATION - checked
first, because a derivable origin beats an admission wherever the record
supports one, and this change ships a delivery lane whose parts are largely
built. The record does not support one: proposal and design both read
Status: draft, target_release is implementation_pending, and its tasks say in
terms at the still-unticked human gate 4.8 "GATE OPEN (awaiting ratification)".
The rulings its tasks cite are design rulings about lane identity and grant
subject, not an admission of the packet. Recorded in that packet's own reason.

TWO NEAR-MISS APPROVAL ACTS READ AND REJECTED, with the reasoning recorded in
the metadata so nobody re-derives the wrong way.
- add-model-provider-broker carries "Ruling: Brett, 2026-08-08 - the broker
  MINTS a short-lived token and doxBench calls the provider directly; brokered
  dispatch 'would be too slow'". That rules on the ARCHITECTURE, not on
  admitting the packet. A header naming Brett and a date is not automatically an
  approval act; what it RULES ON is what decides.
- add-omnigent-domain-terminology opens its Why on Brett stating the need ("i
  like that we have a neutral spine cross domain. but we also need..."). That is
  the forcing fact the proposal answers, not an act admitting it. Treating a
  quoted requirement as its own approval would let any packet approve itself by
  quoting the person who asked for the work.

kind: ad_hoc for all three, re-verified in BOTH directions at this branch point
because the staging queue moves: no Staging ID header on any of them, and
INDEX.md declares no topic exit naming any of them. created dates DERIVED from
true first commits in git - 02a6bad 2026-08-08, de63893 2026-08-22,
c71d93b 2026-08-09 - never a folder or file date; none carried a
.openspec.yaml, so all three files are created rather than appended. id dates
track created per the settled convention.

Parsed-value verification per the #348 lesson: every written identifier read
back through the YAML parser, zero split identifiers, and every load-bearing
phrase intact.

Headline 46 warning -> 43, and the proposal-origin family now reads ZERO
findings - the class opened by the FAMILY_IDS fix in #343 is fully discharged
across #344, #345, #348 and this commit. Seven lines out - one headline, three
finding lines, three ranked-plan lines - and two in: the new headline and the
family's own "No findings." line, which renders only because #343 gave
proposal-origin a report section in the first place. Every other line
byte-identical, no non-proposal-origin line moved, no new finding anywhere,
errors held at 5. All four self-checking gates exit 0. doc-health 889 passed /
7 skipped and openspec --all --strict 77 items, both unchanged from main.

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