Skip to content

Resolve the contested § 8.2 remainder figure with one derivation under the written definition - #445

Merged
brettheap merged 2 commits into
mainfrom
record/rederive-mbc-archive-remainder
Aug 28, 2026
Merged

brettheap merged 2 commits into
mainfrom
record/rederive-mbc-archive-remainder

Conversation

@brettheap

Copy link
Copy Markdown
Contributor

Summary

Steward follow-up (approved by Brett 2026-08-27): the archived record
openspec/changes/archive/2026-08-27-add-modified-block-currency-check/tasks.md
§ 8.2 carried a CONTESTED note with two disagreeing remainder-byte readings
of the same promotion:

  • Archive session: doc-health 88197 == 88197 raw; document-lifecycle
    48653 == 48653 raw
  • Reviewer N2: doc-health 88343 vs 88342 raw (equal only after
    trailing-newline normalization); document-lifecycle 48731 vs 48730 raw

This PR resolves it with one definitive re-derivation, per the
contested-finding rule's requirement that a contested reading close on a
cited resolution.

Derivation

Read openspec/specs/doc-health/spec.md and
openspec/specs/document-lifecycle/spec.md at 4def2274 (BEFORE) and
8997e00b (AFTER, the archive squash). Sliced each into
"remainder" = whole document minus the touched requirement block(s), each
running from its ### Requirement: line to the next one or EOF — exactly
the definition § 8.2 states.

Authoritative figures:

capability remainder before remainder after raw equal normalized
doc-health 88343 88343 yes 88341 == 88341
document-lifecycle 48731 48731 yes 48729 == 48729

Equality holds cleanly under the letter of the definition — no asymmetry,
no normalization needed. This confirms the substantive claim both prior
readings agreed on (the promotion is lossless), but neither recorded
numeral pair is this exact pair.

N2's reading, fully explained: a text.split('\n### ') +
drop-touched + '\n'.join(kept) idiom — a plausible, simple slicing
implementation — reproduces N2's exact figures, 88343/88342 and
48731/48730, verbatim. That idiom is lossless everywhere except when the
dropped/touched chunk is the file's LAST heading, which is true only of
the newly-appended requirement in each file (since it sits at EOF) — costing
exactly one join-newline on the after side alone. No EOF blank line is
actually consumed; the discrepancy N2 measured is a rejoin artifact of that
one specific slicing idiom, not evidence against byte-for-byte promotion.

The archive session's own quoted figures (88197/48653) could not be
reproduced
by any construction tried this session: a clean literal slice,
the split/rejoin idiom above, a variant keeping touched headings in the
remainder, a variant excluding the preamble, and per-block rstrip variants
under either a \n or \n\n separator. That pair is self-consistent
(equal before/after, like the true figure) so if it is a miscount it is a
fixed offset rather than a real content discrepancy, but the exact mechanism
that produced it remains unexplained.

§ 8.2's CONTESTED note is updated to RESOLVED, dated, citing this record
commit, ≤ 12 lines.

Test plan

  • python3 -m pytest tests/doc-health -q -k "proposal_origin or lifecycle or corpus" → 67 passed
  • OPENSPEC_TELEMETRY=0 openspec validate --all --strict → 74 passed, 0 failed (branch base b5fb03f3; one fewer than the 75 named in the assignment, from upstream drift on main since, unrelated to this change)

🤖 Generated with Claude Code

Steward follow-up approved by Brett 2026-08-27: § 8.2's CONTESTED note
carried two disagreeing remainder-byte readings of the same promotion
(the archive session: 88197/88197 and 48653/48653; reviewer N2:
88343 vs 88342 and 48731 vs 48730). Re-derived byte-for-byte from
`4def2274` and `8997e00b` under the definition as written (each
requirement running from its `### Requirement:` line to the next one
or EOF).

Authoritative figures: doc-health remainder 88343 == 88343 raw (88341
normalized); document-lifecycle remainder 48731 == 48731 raw (48729
normalized) -- equality holds cleanly, no asymmetry, confirming the
substantive claim both prior readings agreed on. Neither recorded pair
is this exact pair.

N2's reading is fully reproduced and explained: a
`text.split('\n### ')` + drop-touched + `'\n'.join(kept)` idiom yields
88343/88342 and 48731/48730 verbatim -- lossless everywhere except when
the dropped chunk is the file's LAST heading, which is true only of the
newly-appended requirement, costing exactly one join newline on the
`after` side alone. No EOF blank line is actually consumed; the loss is
a rejoin artifact.

The archive session's own quoted figures (88197/48653) could not be
reproduced by any construction tried (clean slice, split/rejoin,
heading-retained, preamble-excluded, per-block rstrip under either
separator) and stay unexplained, though self-consistent like the true
figure.

Gates: python3 -m pytest tests/doc-health -q -k "proposal_origin or
lifecycle or corpus" -> 67 passed; OPENSPEC_TELEMETRY=0 openspec
validate --all --strict -> 74 passed, 0 failed (base b5fb03f; one
fewer than the 75 quoted in the assignment, from upstream drift since,
not from this change).

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

@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

Resolves a previously CONTESTED remainder-byte figure in the archived change record by replacing the disputed note with a single, cited re-derivation under the written § 8.2 remainder definition.

Changes:

  • Replace the prior CONTESTED note with a RESOLVED 2026-08-27 derivation (including the authoritative remainder-byte figures and an explanation of the prior reviewer discrepancy).

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

Comment on lines +694 to +698
**RESOLVED 2026-08-27** by `record/rederive-mbc-archive-remainder`: re-
derived byte-for-byte from `4def2274`/`8997e00b`. **doc-health 88343 ==
88343 raw (88341 normalized); document-lifecycle 48731 == 48731 raw
(48729 normalized)** — equality holds, as both readings agreed; neither
pair matches this exactly. **N2 EXPLAINED**: `split('\n### ')` + drop +
Review of PR #445 caught the RESOLVED note failing its own stated
purpose (reproducibility):

1. The recipe named `'\n'.join` as the rejoin step that reproduces N2's
   contested 88343/88342 and 48731/48730 pair. Verified with slice2.py-
   style variants: `split('\n### ')` + drop + `'\n'.join` on the raw
   fragments actually yields 88211/88210 and 48667/48666 -- a different
   number, from silently losing the "### " reconstruction. The token
   that reproduces the contested pair, verified against both files, is
   `'\n### '.join` -- one separator restoring the newline and the
   heading marker together, applied directly to the raw split
   fragments. Fixed.

2. The note cited the resolving act by branch name
   (`record/rederive-mbc-archive-remainder`), which is deleted on
   merge -- exactly the failure mode docs/archive-record-discrepancies.md:29-34
   already records. Cited "PR #445" instead: the landed squash SHA is
   unknowable pre-merge, the PR number is stable.

3. "neither pair matches this exactly" left its antecedent unnamed.
   Now reads "neither pair matches the derivation above exactly".

Re-verified against both files before committing:
  split('\n### ') + drop + '\n'.join      -> 88211/88210, 48667/48666
  split('\n### ') + drop + '\n### '.join  -> 88343/88342, 48731/48730 (matches N2)

Gate: python3 -m pytest tests/doc-health -q -k "proposal_origin or
lifecycle or corpus" -> 67 passed.

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

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

Suppressed comments (1)

openspec/changes/archive/2026-08-27-add-modified-block-currency-check/tasks.md:704

  • This section now says the archive session's 88197/48653 remainder pair "could not be reproduced" (lines 703–704), but the paragraph immediately above still records 88197/48653 as the proven remainder figures. That leaves the record internally inconsistent; update the earlier numeric figures to match the resolved derivation (88343/48731) so the "unreproducible" note refers only to the old contested numbers.
      alone; no EOF blank line is truly consumed. The session's own
      88197/48653 pair could not be reproduced by any construction tried and
      stays unexplained, though self-consistent like the true figure. N2 is

Comment on lines +698 to +699
derivation above exactly. **N2 EXPLAINED**: `split('\n### ')` + drop +
`'\n### '.join` reproduces 88343/88342 and 48731/48730 verbatim —
@brettheap
brettheap merged commit 6aff27a into main Aug 28, 2026
4 checks passed
@brettheap
brettheap deleted the record/rederive-mbc-archive-remainder branch August 28, 2026 09:10
brettheap added a commit that referenced this pull request Sep 12, 2026
…nges with an ideation-dashboard delta (bookkeeping, RULED) (#982)

Lane: openxfactory-4-opendox-extraction
Refs #656 (stays OPEN).

split-opendox-two-layer-product § 5.9: the thirty archived changes whose
tree carries specs/ideation-dashboard/ are ANNOTATED with the carry-forward,
never edited into agreement — the wallet arc's treatment and the
highest-volume bookkeeping in the realization. Under document-lifecycle's
"An archived record is edited only as a bookkeeping correction under a
recorded ruling", on Brett Heap's rulings by interactive multi-choice
(#656 comments 5640246046 and 5640938010, recorded BEFORE the edit), each
packet's tasks.md gains one dated "Bookkeeping correction (2026-09-11,
split-opendox-two-layer-product § 5.9) — carry-forward" section stating
that its specs/ideation-dashboard/spec.md delta stays the record; that the
capability's artifacts were SHED from openxFactory by § 5.2 (#940 →
cc4ae9d) and are consumed at a pin from the openDox/openXdox legs per
docs/opendox-carve-manifest.yaml; and that the five contract schemas,
deprecated at contract-v3.7 (#970 → 45bd9ee, tag ec3c172), leave the
bundle at contract-v4.0 (§ 5.7, PR #983 → ce5c054, tag 9e6c0ae). The rule's neutral-minimum line
"Edited (bookkeeping): 2026-09-11 by split-opendox-two-layer-product —
carry-forward annotation" sits inside the existing lifecycle-header block
of the two packets that carry one (add-model-capability-vocabulary,
add-project-repo-schema) and, as ruled, as the first line of the appended
section in the twenty-eight that carry none. Nothing any packet asserts
changed (git diff -U0 shows only the appended hunks and, in two files, one
header line). doc-health does not scan tasks.md, so no record-immutability
finding fires; the thirty dispositions in opensoft/xFactory #445 stand as
the governance record regardless, with that correction stated.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 12, 2026
…re landed

opensoft/openxFactory #982 -> db1f0cf
(2026-09-12 00:27Z, Rule 6 window posted and closed; 30 of 30 archived
changes annotated per RULED 5640246046 / 5640938010) landed the dated
bookkeeping section on every archived packet carrying an ideation-dashboard
delta. Companion opensoft/xFactory #445 ->
c81b957bfbc91e84e7e67bda00c8023d2d249950 (the 30 dispositions) landed by
the lane's admin merge as the governance record, on Brett Heap's ruling
that it stands even though doc-health does not scan tasks.md and so fires
no record-immutability finding today (#656 record 5642167113).

4.3 and 4.4 are unchanged: PR #984 has not landed.

Merges origin/main again (now 081c36f, carrying #982's own tasks.md
changes on the 30 archived packets plus unrelated lane-2 landings); no
conflict. Nothing else in split-opendox's own tasks.md changes.

Lane: openxfactory-4-opendox-extraction
Refs #656

Co-Authored-By: Claude Sonnet 5 <[email protected]>
brettheap added a commit that referenced this pull request Sep 12, 2026
….3/4.4/5.7/5.9 status (2026-09-11) (#991)

Lane: openxfactory-4-opendox-extraction
Refs #656 (stays OPEN).

split-opendox-two-layer-product tasks.md amendment recording the 2026-09-11/12
landings (CLAIM 5641679012): six boxes tick — 4.2 (openXdox root eca0b597's
contracts/opendox-pin.yaml carries every § 4.2 field), 4.3 and 4.4 (code halves
openDox-code #11 → a99eba03 and openXdox-code #14 → 3840c167; the openxFactory
half + pin lockstep #984 → a1ef886), 4.5 (three features at openXdox-code #10/#11/#12;
requirement row ratified, archived, corrected and erratum'd at openXdox-spec
#9–#12; RECOUNT 5638391057), 5.7 (the MAJOR cut #983 → ce5c054, tag contract-v4.0
9e6c0ae verified), 5.9 (#982 → db1f0cf + xF #445 → c81b957b). 4.1 stays open on
evidence: 13 § D3 modules present but only 12 of the 23 doc_health imports moved
(10 are § 3.4/3.5/3.6 residue, 1 is DQ-1). Before 31 ticked / 40 open; after 37 / 34
of 71. Only tasks.md changes; proposal-support verify ok; strict validate valid;
pytest-suite 34701125454 SUCCESS at 935d403; 2 threads / 0 unresolved.

Co-Authored-By: Claude Fable 5.1 <[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