Skip to content

Admit the two medx boundary packets: origin metadata only, not a ratification - #345

Merged
brettheap merged 1 commit into
mainfrom
fix/admit-medx-boundary-packets
Aug 25, 2026
Merged

brettheap merged 1 commit into
mainfrom
fix/admit-medx-boundary-packets

Conversation

@brettheap

Copy link
Copy Markdown
Contributor

The admission act

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. It supplies the approval the record lacked, so the two remaining proposal-origin errors discharge on it.

⚠️ This is an ADMISSION, not a ratification

Stated plainly, and stated inside both declarations so it travels with the metadata:

  • The act supplies only the origin/approval pair the proposal-origin contract requires.
  • Both packets remain Status: draft, carry no ratification citation, and owe none — the promoted lifecycle rule requires one only for Status: ratified.
  • Whether either packet's content is ratified is a separate act that has not happened.

Verified, not just asserted: git diff over both proposal.md files is empty, both still read Status: draft, and the only files this PR changes are the two .openspec.yaml.

Why an act was needed — measured twice before it was asked for

govern-openspec-corpus-membership's archived read-back, on MedxChart:

"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."

on MedxPractice:

"The same, on its own record. Same .openspec.yaml shape, same all-implementation tasks.md, same single-line commits, no pull request, and a README row that describes the boundary and says nothing about ratification."

and of the three things that could have established ratification: "None of those three exists here."

PR #344 then STOPPED rather than declare an origin on that record — ad_hoc requires approved_by/approved_on, staged requires a staging topic, and neither existed. Both declarations quote that chain so a future reader can reconstruct the whole thing from the metadata alone.

The two declarations

create-medxchart-overlay-boundary/.openspec.yaml

origin:
  kind: ad_hoc
  id: openxFactory:adhoc:2026-08-23-create-medxchart-overlay-boundary
  reason: >-
    ADMITTED BY RULING 2026-08-25, verbatim: "admit the two medx boundary
    packets". That ruling IS the origin act, and it was needed because this
    packet's own record establishes none — which was measured, twice, before it
    was asked for. [quotes the corpus-membership read-back and PR #344's STOP]
    NO STAGING ORIGIN IS CLAIMED: none exists.
    THE FORCING FACT, from this packet's own § Why: "`openChart` is an
    independent public clinical-chart repository, but the xFactory aggregation
    currently presents it as the Medx clinical program's submodule. A dedicated
    `MedxChart` repository is needed to own the Medx-specific composition
    boundary while keeping the upstream `openChart` revision independently
    movable and explicitly pinned."
  approved_by: >-
    Brett — in-session on 2026-08-25, verbatim: "admit the two medx boundary
    packets". THIS IS AN ADMISSION INTO THE PROPOSAL QUEUE, NOT A RATIFICATION
    OF CONTENT. […] the packet remains `Status: draft` […]
  approved_on: 2026-08-25

create-medxpractice-overlay-boundary/.openspec.yaml

origin:
  kind: ad_hoc
  id: openxFactory:adhoc:2026-08-23-create-medxpractice-overlay-boundary
  reason: >-
    ADMITTED BY RULING 2026-08-25, verbatim: "admit the two medx boundary
    packets". […] measured twice before it was asked for. [quotes the read-back's
    "The same, on its own record" verdict and PR #344's STOP]
    NO STAGING ORIGIN IS CLAIMED: none exists.
    THE FORCING FACT, from this packet's own § Why: "The public `openPractice`
    checkout currently exists as an untracked workspace copy rather than a
    governed composition boundary. Medx needs a private branded
    practice-operations overlay that can pin a known public upstream revision
    while keeping the upstream repository independently usable and replaceable."
  approved_by: >-
    Brett — in-session on 2026-08-25, verbatim: "admit the two medx boundary
    packets". THIS IS AN ADMISSION INTO THE PROPOSAL QUEUE, NOT A RATIFICATION
    OF CONTENT. […]
  approved_on: 2026-08-25

Per-field sources — derived, not assumed

field value source
kind ad_hoc the ruling is an approval act, not a staging transition; no staging topic exists for either packet (searched ideation/staging/ + INDEX.md in #344)
id date 2026-08-23 the corpus convention tracks created:, not approval — settled by the case where they differ: an archived packet with created: 2026-08-10 carries id-date 2026-08-10 against approved_on: 2026-08-11
reason the ruling + the read-back + #344's STOP + each packet's own § Why quoted verbatim from each source
approved_by / approved_on Brett / 2026-08-25 this ruling
created 2026-08-23 (already present, left unchanged) see first-commit verification below

First-commit verification

Both files already carried created: 2026-08-23. Rather than trust that, it was verified in git:

create-medxchart-overlay-boundary     86f4372d  2026-08-23  Govern MedxChart composition boundary
create-medxpractice-overlay-boundary  a3248684  2026-08-23  Govern MedxPractice composition boundary

Both match the six-commit list the corpus-membership read-back recorded (86f4372, a324868 as the firsts). Correct as they stood, so neither value was rewritten.

Note for the record: these are MODIFIED files, not new ones

Both packets already carried .openspec.yaml with schema: and created:, missing only the origin: block — unlike worker-credential in #344, which had no metadata file at all. So each diff is an append, and created: needed verifying rather than authoring.

Exit path determination

The #323/#343/#344 mechanical class — plain fix PR, no OpenSpec packet. Nothing read demanded more: the field shape mirrors what #344 wrote, no spec requirement changes, and .openspec.yaml is outside the governed corpus (corpus.py never references it) so record-immutability cannot fire on it.

Verification

gate main a90d6310 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, 7 error, 73 warning, 4 info 5 critical, 5 error, 73 warning, 4 info

Every changed report line accounted:

removed: 5 | added: 1
--- REMOVED ---
   Findings: 5 critical, 7 error, 73 warning, 4 info. …
   - [error] REPO:openspec/changes/create-medxchart-overlay-boundary — proposal carries no origin declaration
   - [error] REPO:openspec/changes/create-medxpractice-overlay-boundary — proposal carries no origin declaration
   - severity=error family=proposal-origin … path=openspec/changes/create-medxchart-overlay-boundary …
   - severity=error family=proposal-origin … path=openspec/changes/create-medxpractice-overlay-boundary …
--- ADDED ---
   Findings: 5 critical, 5 error, 73 warning, 4 info. …

No new finding appeared — so both declarations satisfy the contract cleanly rather than trading one finding for another (no malformed-origin, no missing ad_hoc field, no manifest disagreement).

The proposal-origin error class is now fully discharged:

PROMOTION_FIDELITY_GATE_EXIT=0
DUPLICATE_PACKET_GATE_EXIT=0
FAMILY_ENUMERATION_GATE_EXIT=0
PROPOSAL_ORIGIN_GATE_EXIT=0     ← the family itself now exits 0 at --fail-on error

The five remaining errors belong to other families — two location-conformance (staged material citing a proposal) and three status-validity (two missing status headers, one free-form status).

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

Branch point and collisions

Branched from a90d6310 (the #344 merge). Collision-checked before building and again before pushing — main carries no origin: block for either packet, and no PR claims this admission.

🤖 Generated with Claude Code

…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]>
Copilot AI lite review requested due to automatic review settings August 25, 2026 14:03

@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 f90f3a0 into main Aug 25, 2026
2 of 3 checks passed
@brettheap
brettheap deleted the fix/admit-medx-boundary-packets branch August 25, 2026 14:04

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 records an explicit ad-hoc origin declaration for the two Medx boundary change packets so the proposal-origin doc-health contract can validate an approved_by/approved_on provenance pair—while keeping both packets’ lifecycle status unchanged (they remain Status: draft, with no ratification claim).

Changes:

  • Append an origin: block (kind ad_hoc) to create-medxchart-overlay-boundary/.openspec.yaml.
  • Append an origin: block (kind ad_hoc) to create-medxpractice-overlay-boundary/.openspec.yaml.

Reviewed changes

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

File Description
openspec/changes/create-medxpractice-overlay-boundary/.openspec.yaml Adds an ad_hoc origin declaration with durable id, reason, and approval provenance to satisfy proposal-origin requirements.
openspec/changes/create-medxchart-overlay-boundary/.openspec.yaml Adds an ad_hoc origin declaration with durable id, reason, and approval provenance to satisfy proposal-origin requirements.

💡 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
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]>
brettheap added a commit that referenced this pull request Sep 9, 2026
…1/5.2 ticked on the D-2 evidence) (#832)

Path A PR-5, the last of the 2026-09-06 plan memo's sequence, on Brett Heap's word "merge pr-5 when green" (2026-09-09). Authority: his ruling of 2026-09-05T23:38Z "rule path A, 4.5 is a deferred successor" (#656) and ruling D-2 (the live exercise).

- tasks.md: § 4.4 / § 5.1 / § 5.2 ticked on the D-2 evidence (three `- [ ]` heads removed, every ratified sentence kept byte-identical); § 4.5 untouched as a DEFERRED SUCCESSOR (#714 → 3d1b8cc).
- Archived WITH promotion via `scripts/proposal-support.py . archive --date 2026-09-09` under the pinned @fission-ai/[email protected] (never a bare `openspec archive`); origin retained (declaration unchanged since da1b0e9); six frozen files R100.
- Promoted: `openspec/specs/ideation-intent-plane/spec.md` NEW (7 requirements / 11 scenarios, every block byte-identical to the archived delta) and `openspec/specs/document-lifecycle/spec.md` 18 → 19 requirements ("Gates happen on main"); the new capability's `## Purpose` written by this act (no SHALL; replaces the CLI's TBD stub). openspec/specs 60 → 61; floor regeneration OWED (GRACED covered-pending 1, `created_by_candidate`), `contracts/review-lane-floor-snapshot.yaml` deliberately not edited here.
- README OpenSpec Records row → archived; sweep-ledger row re-seeded with the tool (`--seed-ledger --moved-by '#832'`, one line moved); no thirteenth archive-date disposition.
- Evidence (merged + green): #718 d179cc0, #727 07624d5, #735 6d3237e, xFactory #304 b2db7e47, #313 ddd19650, #345 90435875, #781 450bb60, #808 2ef7d8c, #814 c991c0f, #816 8924230, xFactory #362 119280a8, #830 202c170, xFactory #369 c2313277; D-2 live exercise: act B refusal 36d07ec, act A apply e970dfe, first autonomous merge #176 → 7681e40 (codexfactory[bot] APPROVED 2026-09-09T06:37:22Z).
- Copilot round 1: one factual finding taken (a missing "where" in Purpose); two wording findings answered and resolved.

Refs #656 (stays OPEN). Rule 6 LANDING window observed.

Lane: openxfactory-4-opendox-extraction
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_012LiNG5Ume1boEfxSNeCmpu
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