Skip to content

Carve manifest: declare the four ASK-7 docstring lines on the cli.py and serve.py rows (Q-L1; the declared-edit window) - #995

Merged
brettheap merged 2 commits into
mainfrom
chore/ask7-declared-edit-window
Sep 12, 2026
Merged

brettheap merged 2 commits into
mainfrom
chore/ask7-declared-edit-window

Conversation

@brettheap

@brettheap brettheap commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

Lane: openxfactory-4-opendox-extraction (formerly openxfactory-opendox)

Refs #656 (stays OPEN).

What this opens

RULED ASK-7 → 1 (#656 comment 5635150678), verbatim: "the four stale
docstring/comment lines (openDox-code cli.py :867; serve.py :166 / :755 /
:1368) are LEFT; the in-tree comments beside the binding carry the
correction; they are fixed at the next declared-edit window."
Those four
lines still describe profile_openxfactory as an in-tree module; § 4.3
(openDox-code #11, merged into today's main a99eba03) made it a lazy
proxy over the host's opendox.domain_profile.register(...). This PR opens
that declared-edit window on the Q-L1 mechanism (#656 comment
5628560136): a row annotation in docs/opendox-carve-manifest.yaml
declaring the four lines, no referent digest moves, carve_commit and
opendox-carve-0 unchanged.

CLAIM: #656 comment 5642614423.

The four lines, and the carve-commit mapping (PROVED)

Per the Q-L1 mechanism note: declared lines are CARVE-COMMIT (b075fd91)
line numbers of the source file
, and the arrival check maps a destination
edit back to them. Mapped here with the arrival verifier's own method
(verify-carve-arrival.py::_check_declared_lines): difflib.SequenceMatcher
(autojunk=False) over carve_lines.text_records() for both the blob at
carve_commit and openDox-code a99eba03's arrived file — the same method
§ 4.3's author used (openDox-code #11 body, "Q-L1 — the declared-lines check,
run before the edit").

destination (openDox-code a99eba03) text (still stale) equal opcode (carve[i1:i2] / arrived[j1:j2], 0-based half-open) offset carve line
src/opendox/cli.py:867 The IN-TREE PROFILE (\profile_openxfactory.SUBCOMMAND_EXTENSIONS`) is` carve[779:978] / arrived[812:1011] 54 834
src/opendox/serve.py:166 `profile_openxfactory.py` and dispatched BY NAME against the live handler — carve[138:169] / arrived[149:180] 16 155
src/opendox/serve.py:755 (`profile_openxfactory.ROUTE_EXTENSIONS` — the gate console, the carve[629:828] / arrived[659:858] 95 725
src/opendox/serve.py:1368 THE IN-TREE PROFILE (\profile_openxfactory.ROUTE_EXTENSIONS`) is registered` carve[1286:1352] / arrived[1316:1382] 51 1338

For each row, carve_line = i1 + offset + 1 where offset = (destination_line - 1) - j1.
Both sides' text at that carve line is byte-identical to the destination
line (an equal diff block, confirming these are unchanged/stale text, not
edits already made) — verified independently with a standalone script
against both the carve blob's own declared sha256 (matches each row) and
openDox-code a99eba03.

Both cli.py and serve.py rows were already moved_with_declared_edit and
already carried edits:; this adds ONE new entry to each:

      - class: path constants
        lines: [834]           # cli.py row
      - class: path constants
        lines: [155, 725, 1338] # serve.py row

Filed path constants on the same reading RULED 2026-09-10 (#656 comment
5628560136) gave the STALE CITATION rows (lines 305/315/374/412 of the
manifest): neither an import rewrites statement nor an adapter calls
corpus-shaped literal — edit_classes: is closed at exactly these three
(RULING OQ-1, asserted equal to code in validate-carve-manifest.py) — and a
prose correction has nowhere else to be declared.

Companion count fix — disclosed deviation from "manifest only"

tests/carve_manifest/test_carve_manifest.py:: test_the_real_manifest_carries_the_ruled_q_l7_amendment re-derives the
manifest's total declared-line count from the file and pins it exactly:
assert (lines, carrying) == (862, 150). Four new declared lines move that
to (866, 150) (carrying — rows holding edits: — does not move: both
rows already carried the key). Precedent for updating this test alongside
the manifest in the same commit:
cc4ae9d3 (PR #940, the BUILD-slice
Q-L1 annotations) moved this exact assertion from (794, 147) to
(862, 150) in the same commit as its own manifest edit
(git log -S "== (862, 150)" and git log -S "== (794, 147)" both name
cc4ae9d3 as the introducing commit). This PR follows the same, already-
established pattern rather than leaving the required pytest-suite check
red on a stale pin. No other test or file touched.

Verification

  • python3 scripts/validate-carve-manifest.py → OK ... 456 row(s) ... verified at 995532de0ddd — 169 moved_verbatim, 149 moved_with_declared_edit, 138 not_moved — same row counts as main.
  • python3 scripts/verify-carve-arrival.py --destination opendox_code --phase B
    → OK at BOTH the current pin (da8aae969b4057bd46d2550c265e5bb363142458,
    via the openDox assembly root's own code gitlink) and openDox-code
    main (a99eba03e31a0aee1cc15a061fdf718cc88a2c44) — unchanged from
    baseline (pre-existing, unrelated ad-hoc --allow-created admissions for
    consumer_reach.py/test_consumer_reach.py etc., predating this PR and
    ASK-7 entirely). The four newly-declared lines are equal-block (stale,
    unchanged) text either way, so declaring them changes no verdict — they
    only pre-arm the paired openDox-code PR's edit as DECLARED rather than an
    undeclared movement.
  • pytest tests/carve_manifest tests/carve_arrival tests/carve_conformance -q
    → 269 passed.
  • git diff --name-only origin/main...HEAD → exactly the two files above (no
    openspec/changes/ path — plain gate).

Lands before

opensoft/openDox-code — the four lines re-described for the lazy proxy,
inside these four declared lines only, same line count. That PR cites this
one's arrival-verifier DECLARED result.

🤖 Generated with Claude Code

Summary by Sourcery

Open the declared-edit window for four stale profile references in the carve manifest while preserving the existing carve structure and validation behavior.

Enhancements:

  • Declare the four ASK-7 docstring/comment lines in the carve manifest for the paired openDox-code edit window without changing referent digests or carve metadata.
  • Pin the newly declared lines to their specific source rows and classification in manifest tests.

Tests:

  • Update manifest line-count expectations and verify the four ASK-7 declarations explicitly.

Chores:

  • Update shared line-count documentation in carve tooling from 862 to 866 declared lines.

…and serve.py rows (Q-L1; the declared-edit window)

RULED ASK-7 → 1 (#656 comment 5635150678) left four stale docstring/comment
lines standing at openDox-code — cli.py :867; serve.py :166 / :755 / :1368 —
each still describing profile_openxfactory as an in-tree module rather than
the § 4.3 lazy proxy over the host's opendox.domain_profile.register(...).
The ruling fixes them "at the next declared-edit window"; this opens that
window on the Q-L1 mechanism (#656 comment 5628560136): a row annotation in
docs/opendox-carve-manifest.yaml, no referent digest moves, carve_commit and
opendox-carve-0 unchanged.

Mapped destination lines (openDox-code a99eba03) to carve-commit (b075fd9)
line numbers using the arrival verifier's own method
(verify-carve-arrival.py::_check_declared_lines: difflib.SequenceMatcher
over carve_lines.text_records(), autojunk=False), the same method § 4.3's
author used:

  cli.py   :867  -> carve :834
  serve.py :166  -> carve :155
  serve.py :755  -> carve :725
  serve.py :1368 -> carve :1338

Both rows were already moved_with_declared_edit and already carried
edits:; this adds one new entry to each (class: path constants, on the
STALE CITATION rows' reading from #656 comment 5628560136 — neither an
import rewrites statement nor an adapter calls corpus-shaped literal,
RULING OQ-1).

Companion count fix (precedent: cc4ae9d / PR #940 updated the same
assertion in the same commit as its own Q-L1 annotations):
tests/carve_manifest/test_carve_manifest.py::
test_the_real_manifest_carries_the_ruled_q_l7_amendment re-derives the
manifest's total declared-line count and pins it exactly; four new
declared lines move that pin from 862 to 866 (rows carrying edits: stays
150, both rows already carried the key). Left untouched otherwise.

validate-carve-manifest.py: OK, same row counts as main (456: 169/149/138).
verify-carve-arrival.py --destination opendox_code --phase B: OK at both
the current pin (da8aae96) and openDox-code main (a99eba03) — the four
lines are unchanged/stale text (an `equal` diff block against carve_commit
either way), so declaring them changes no verifier verdict, only pre-arms
the next PR's edit as DECLARED.
tests/carve_manifest tests/carve_arrival tests/carve_conformance: 269
passed.

The docstring/comment fix itself lands at openDox-code in a paired PR,
inside these four declared lines only.

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

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Copilot AI lite review requested due to automatic review settings September 12, 2026 02:16
@sourcery-ai

sourcery-ai Bot commented Sep 12, 2026

Copy link
Copy Markdown

Reviewer's Guide

The PR pre-arms the paired openDox-code docstring correction by declaring four precisely mapped stale lines in the carve manifest, preserving all referent metadata and row classifications, and updates the corresponding aggregate-count test from (862, 150) to (866, 150).

Flow diagram for the ASK-7 declared-edit window

flowchart LR
    A["Stale docstring/comment lines in openDox-code"] --> B["Map destination lines to carve lines"]
    B --> C["Add declared edits to cli.py and serve.py manifest rows"]
    C --> D["Paired openDox-code PR applies four-line correction"]
    C --> E["Preserve digests, carve_commit, and row classifications"]
    C --> F["Update aggregate count from 862 to 866"]
Loading

File-Level Changes

Change Details Files
Declared the four ASK-7 stale docstring/comment lines for the next openDox-code edit window without changing carve referents or classifications.
  • Added one path constants edit entry for cli.py:834, corresponding to destination cli.py:867.
  • Added three path constants edit entries for serve.py:155, :725, and :1338, corresponding to destination lines :166, :755, and :1368.
  • Documented the verifier-based carve-line mappings and rationale in the row annotations.
  • Kept row counts, dispositions, carve_commit, tags, and SHA-256 digests unchanged.
docs/opendox-carve-manifest.yaml
Updated the manifest invariant test to account for the four newly declared lines.
  • Changed the expected declared-line total from 862 to 866.
  • Kept the expected number of rows carrying edits: at 150.
tests/carve_manifest/test_carve_manifest.py

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

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.

🟡 Changes recommended

Per-line and class-specific assertions are still needed to validate the four declarations.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

This pull request declares four stale profile-reference lines for the next edit window and updates the manifest count.

Changes:

  • Adds four path constants declarations to the CLI and serve manifest rows.
  • Updates the expected declared-line count from 862 to 866.
File summaries
File Reviewed changes and findings
tests/carve_manifest/test_carve_manifest.py Updates the aggregate count assertion. Moderate (2 votes): add per-line assertions for cli.py:834 and serve.py:155, 725, 1338.
docs/opendox-carve-manifest.yaml Declares the four destination edits. Moderate (1 vote): pin each expected row, line, class, and text. Nit (2 votes): update or derive remaining stale count references.
Review details

Suppressed comments (1)

docs/opendox-carve-manifest.yaml:1261

  • The aggregate (866, 150) assertion only proves that four entries were added; it does not prove they are attached to the cli.py/serve.py rows at carve lines 834/155/725/1338 or use the intended class. A valid-but-wrong line or class would keep this suite green and only be discovered when the paired destination edit arrives. Extend the existing real-manifest census (test_the_real_manifests_declared_lines_are_the_floors_lines) with these four (source_path, line, class, text) expectations so this declared-edit window is pinned directly.
      - class: path constants
        lines: [834]
        note: "STALE DOCSTRING — RULED ASK-7 → 1 (`#656` comment `5635150678`, Brett Heap, verbatim \"the four stale docstring/comment lines (openDox-code cli.py :867; serve.py :166 / :755 / :1368) are LEFT; the in-tree comments beside the binding carry the correction; they are fixed at the next declared-edit window. No manifest rows for prose in PR-2.\"): this row annotation OPENS that declared-edit window (CLAIMED `#656` comment `5642614423`, lane `openxfactory-4-opendox-extraction`). No referent digest moves, `carve_commit` does not move, `opendox-carve-0` stays the label. `build_parser()`'s docstring at openDox-code `a99eba03` (`src/opendox/cli.py:867`) still reads \"The IN-TREE PROFILE (`profile_openxfactory.SUBCOMMAND_EXTENSIONS`) is\", stale since § 4.3 (openDox-code #11) made `profile_openxfactory` a lazy proxy over the host's `opendox.domain_profile.register(...)` rather than an in-tree module. Mapped to the carve commit by the arrival verifier's own method (`verify-carve-arrival.py::_check_declared_lines`): `difflib.SequenceMatcher(a=carve_lines.text_records(carve_blob), b=carve_lines.text_records(arrived_blob), autojunk=False).get_opcodes()` between the blob at `carve_commit` (sha256 matches this row's, above) and openDox-code `a99eba03`'s `src/opendox/cli.py` — destination `:867` (0-based 866) falls inside the `equal` opcode carve[779:978]/arrived[812:1011] (0-based half-open) at offset 54, so carve line = 779 + 54 + 1 = 834; both sides read byte-identical text at that offset, confirming the mapping. Filed `path constants` on the reading RULED 2026-09-10 (`#656` comment `5628560136`) gave the STALE CITATION rows: neither an `import rewrites` statement nor an `adapter calls` corpus-shaped literal (RULING OQ-1), and a prose correction with nowhere else to be declared. The fix — replacing the docstring's \"IN-TREE\" framing with a host-registered/proxied one, same line, same line count — lands at openDox-code in the paired PR, inside this declared line only."
  • Files reviewed: 2/2 changed files
  • Comments generated: 2
  • Review effort level: Lite

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

Comment thread docs/opendox-carve-manifest.yaml Resolved
…nion count docstrings (Copilot, PR #995)

Two Copilot threads on #995, both taken:

`tests/carve_manifest/test_carve_manifest.py:1934` — the aggregate
`(lines, carrying) == (866, 150)` assertion in
`test_the_real_manifest_carries_the_ruled_q_l7_amendment` would still pass
if the four new ASK-7 lines had landed on the wrong rows, under the wrong
class, or as a different four line numbers summing to the same total.
Added two pinned assertions, on the same `(class, lines)` idiom the
function's own replica-row check already uses two paragraphs above: the
`cli.py` row's `edits` entry for `[834]` is exactly
`("path constants", [834])`, and the `serve.py` row's for
`[155, 725, 1338]` is exactly `("path constants", [155, 725, 1338])`.

`docs/opendox-carve-manifest.yaml:297` — the manifest's declared-line
total moving 862 -> 866 leaves three prose mentions of "862" stale:
`scripts/carve_lines.py:3`, `scripts/verify-carve-arrival.py:98` and
`scripts/validate-carve-manifest.py:115`, each a standalone module-docstring
sentence ("the manifest declares N edit lines BY NUMBER") with no attached
arithmetic. Bumped all three to 866 — the companion-count-fix idiom this
lane already established (precedent: `cc4ae9d3` / PR #940 made the
identical 794->862 edit to these same three lines, in the same commit as
its own Q-L1 row annotations).

Not fixed, and replied to instead with the evidence: `docs/opendox-cutover-
runbook.md:147/:183/:259` also still say 794/793, but `git blame` shows
those lines were last touched by `b08b62804` (2026-09-10, RULED Q-L7 (a)),
BEFORE `d963df48`/`cc4ae9d3` first moved the manifest's total past 794 to
862 the next day — i.e. that staleness pre-dates this PR and is unrelated
to the ASK-7 window's 862->866 move; #940 itself (the PR that caused the
first gap) left the runbook alone and register-noted a different staleness
there rather than editing its prose inline. Fixing the runbook's own
historical narrative (it never grew the paragraph documenting the Q-L1
STALE CITATION amendment that produced 862 in the first place) needs a new
section, not a find-replace, and is out of scope for a four-line
declared-edit window.

Also re-verified the manifest:297 thread's own claim directly: ran
`scripts/verify-carve-arrival.py --destination opendox_code --phase B`
against the leg branch `docs/ask7-lazy-proxy-docstrings` @ 5d50eef2 (with
ad-hoc `--allow-created` for six pre-existing, unrelated files that
destination's admissions block has never been seeded for —
consumer_reach.py, defaults.py, domain_profile.py, profile_proxy.py,
test_consumer_reach.py, test_profile_registration.py, all landed at
openDox-code by earlier PRs #9/#10/#11, none touched here). Result: OK,
61 declared-edit rows diffed within their declared lines, 1 unapplied
(`doxbench_scope_types.py`, unrelated, pre-existing, not an ASK-7 row).
Per-row check confirms both ASK-7 rows individually:
`scripts/ideation_dashboard/cli.py` (declared lines include 834) and
`scripts/ideation_dashboard/serve.py` (declared lines include 155, 725,
1338) both report DIFFED-DECLARED-ONLY — the destination bytes differ from
the carve blob ONLY on declared lines, zero `arrival-undeclared-edit`
refusals.

tests/carve_manifest tests/carve_arrival tests/carve_conformance: 269
passed (unchanged from the PR's own reported baseline — the two new
assertions land inside an existing test function, not a new one).
validate-carve-manifest.py: OK, same row counts as main (456: 169/149/138).

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

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Copilot AI review requested due to automatic review settings September 12, 2026 03: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.

🔵 Needs a closer look

Update the stale line-count reference and reconcile the PR’s scope claims with the five-file diff.

Review details

Suppressed comments (3)

Previously missed (1) — in code that hasn't changed since the last review.

tests/carve_manifest/test_carve_manifest.py:1928

  • This count update leaves the same file's test_the_line_count_is_exactly_the_expression_the_validator_carried docstring at line 2022 saying the manifest has 862 line numbers. The real manifest is now pinned to 866 above, so the test documentation is stale; update that reference to 866 or explicitly mark it as historical.

scripts/validate-carve-manifest.py:115

  • The PR description says git diff --name-only origin/main...HEAD reports exactly two files and that no other test or file was touched, but this patch also changes scripts/verify-carve-arrival.py, scripts/carve_lines.py, and this file. Please correct the verification/file-scope claim so the stated evidence matches the five-file patch.
real bytes and still bounds all 866 declared lines against them; check 4 still

scripts/verify-carve-arrival.py:98

  • The PR description says git diff --name-only origin/main...HEAD contains exactly two files and that no other test or file was touched, but this commit also changes scripts/verify-carve-arrival.py, scripts/validate-carve-manifest.py, and scripts/carve_lines.py (in addition to the manifest and test). Please reconcile the scope/verification claims in the PR description with the actual five-file diff.
manifest declares 866 edit lines BY NUMBER, this file decides whether a diff
  • Files reviewed: 5/5 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@sonarqubecloud

Copy link
Copy Markdown

@brettheap
brettheap marked this pull request as ready for review September 12, 2026 03:36

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

Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 2 days and 13 hours by commenting @sourcery-ai review. Upgrade to get a review now.

@brettheap
brettheap merged commit 9e43f3d into main Sep 12, 2026
13 checks passed
brettheap added a commit that referenced this pull request Sep 12, 2026
main moved twice since this branch forked: PR #984 (lockstep) rewrote
docs/opendox-carve-admissions.yaml with the § 4.3/§ 4.4 pin bump's own
admissions (6 new opendox_code entries, 1 opendox_spec, 14 openxdox_code,
2 openxdox_spec), and PR #995 (ASK-7) added a `path constants` edit each
to the cli.py and serve.py rows in docs/opendox-carve-manifest.yaml.
Neither touches the two rows or the admission this branch declares, so
every conflict here is two governed ledgers gaining entries in the same
place, not a real disagreement:

- docs/opendox-carve-admissions.yaml: kept main's six opendox_code
  entries and this branch's three S2 entries in the SAME destination
  block, re-sorted alphabetically by `path` (the file's own stated
  invariant) rather than picked one side.
- docs/opendox-carve-manifest.yaml: the row-level edits (cli.py/serve.py
  from main, dispose.js/wheel.js from this branch) auto-merged clean;
  hand-merged the header comment's running tally into one narrative that
  states the true combined totals — declared lines 862 -> 866 (ASK-7)
  -> 869 (S2), rows carrying `edits:` 150 -> 150 -> 152 — checked against
  the actual parsed document rather than added by hand.
- tests/carve_manifest/test_carve_manifest.py: combined both PRs'
  per-row pinned assertions (cli.py/serve.py from main, dispose.js/
  wheel.js from this branch already lived outside the conflict markers)
  and rewrote the aggregate assertion to the same measured (869, 152).
- tests/carve_arrival/test_verify_carve_arrival.py: kept main's
  presence/invariant-based rewrite of
  test_the_committed_admissions_file_keeps_the_ruled_seed_and_stays_well_formed
  (PR #984 already generalized the frozen-equality check this branch's
  own `..._seeds_exactly_the_five_ruled_files` rename would have
  reintroduced, precisely because a frozen equality cannot survive a pin
  bump) and extended it with an opendox_code presence/`since` block for
  the three S2 files, on the same footing as the existing openxdox_code
  block.

Verified post-merge: `scripts/validate-carve-manifest.py` OK (167
moved_verbatim, 151 moved_with_declared_edit, 138 not_moved, 456 rows);
`scripts/verify-carve-arrival.py --destination opendox_code --dest-root
<S2 leg @ 330cf8161f06ae67be716deafe9b2ec3c64d1492> --source-repo .
--phase B` OK with ZERO --allow-created (9 declared admissions used: the
6 lockstep entries plus this branch's 3, 0 unused, 0 ad hoc) where the
pre-merge run needed 6 ad-hoc --allow-created flags for a pre-existing,
unrelated gap; the isolated dispose.js/wheel.js declared-line check
still reads DECLARED, undeclared: none; `pytest tests/carve_arrival
tests/carve_manifest tests/carve_conformance -q` 269 passed.

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
origin/main moved five commits ahead of this branch's fork point,
three of which touch files this PR also declares edits on:

- #995 (9e43f3d, ASK-7 window): four declared lines on the cli.py and
  serve.py rows of docs/opendox-carve-manifest.yaml, plus the four
  scripts/tests files that quote the running "862" declared-line total
  (carve_lines.py, validate-carve-manifest.py, verify-carve-arrival.py,
  tests/carve_manifest/test_carve_manifest.py).
- #984 (a1ef886): carve tooling/admissions hardening unrelated to the
  five rows this PR touches.
- #997, #996, #999: no overlap with this PR's files.

Conflict resolution, keeping both sides:

- docs/opendox-carve-manifest.yaml: the header comment block now
  carries the ASK-7 window's paragraph (landed first, 2026-09-11) ahead
  of the § 3.4 SLICE-S3 paragraph (2026-09-12), in landing order. The
  S3 paragraph's own arithmetic is untouched (it was already stated as
  a DELTA — "+40 over two rows" — precisely so a later-landing sibling
  act would not need to rewrite it); only its framing of the ASK-7
  window changed from "is in flight" to "already moved the running
  total to 866", since this merge is the event that makes ASK-7's
  landing a fact rather than a future one. The four ASK-7 row edits
  (cli.py:834, serve.py:155/725/1338) and the two S3 row edits
  (app.js's 37 lines, test_bullseye_widget.py's 3 lines) are all kept.
- scripts/carve_lines.py, scripts/validate-carve-manifest.py,
  scripts/verify-carve-arrival.py: each had a single docstring line
  citing the running declared-line total — "866" from main (ASK-7),
  "902" from this branch (which assumed the pre-ASK-7 base of 862).
  Corrected to 906 in all three: 866 (post-ASK-7) + 40 (this act's
  own delta) = 906, matching the pinned test assertion.
- tests/carve_manifest/test_carve_manifest.py: merged both narrative
  additions to test_the_real_manifest_carries_the_ruled_q_l7_amendment
  in landing order (ASK-7 then S3), corrected the final aggregate
  assertion from this branch's stale (902, 151) to (906, 151), kept
  main's per-row pinned ASK-7 checks (cli_row/serve_row) verbatim, and
  fixed their comment's citation of the aggregate from (866, 150) to
  (906, 151) to match the corrected assert two lines above. Also fixed
  a second, non-conflicting docstring in
  test_the_line_count_is_exactly_the_expression_the_validator_carried
  that still read "902".

A pre-existing defect, unrelated to the conflict, found while
resolving: the test_bullseye_widget.py row's two edits (already on
this branch's HEAD before any merge, commit 6843a25) had a blank line
splicing them apart, which left the `adapter calls` edit's `note:` key
duplicated with the `path constants` edit's original note — YAML
silently keeps the last of a duplicate key, so the S3 note was
silently discarded and the wrong note landed on the wrong edit.
Confirmed with a duplicate-key-aware loader before and after. Fixed by
restoring each edit's own note; a full-document duplicate-key scan
afterward finds none remaining anywhere in the manifest.

Verified after resolution:
- python3 scripts/validate-carve-manifest.py: OK, 456 rows, 168
  moved_verbatim / 150 moved_with_declared_edit / 138 not_moved.
- python3 scripts/verify-carve-arrival.py --destination opendox_code
  --phase B against openDox-code PR #14's head (09b42f5b): DECLARED
  src/opendox/web/app.js, DECLARED tests/test_bullseye_widget.py, 0
  refusals (three newly-created files admitted ad hoc for this local
  check only: src/opendox/view_extension.py,
  src/opendox/web/views/view_extension.js, tests/test_view_registry.py
  — the governed admissions-file entries for those belong to the
  pin-bump PR that follows #14's own landing, not this row-annotation
  PR). The one "unapplied" declared-edit row the summary counts is
  scripts/ideation_dashboard/doxbench_scope_types.py, an unrelated
  pre-existing row (successor #838, open at the carve) — not S3.
- pytest tests/carve_arrival tests/carve_manifest tests/carve_conformance -q:
  269 passed (121 + 110 + 38).

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
…nd wheel.js rows (Q-L1; § 3.4 S2, RULED Q5) (#1002)

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

§ 3.4 S2 (RULED Q5, 5642758731): the carve-manifest rows for dispose.js and
wheel.js gain the lines S2 edits at openDox-code so the intent chips can become
an optional contributed binding inside declared lines (Q-L1, 5628560136), and
the admissions file declares the files S2 creates. Verified with the arrival
verifier against the leg branch: DECLARED, undeclared none. The leg PR lands
after this.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Merged with main after #984/#995: admissions combined (main's six lockstep
entries + S2's three, sorted); manifest header tally 869 declared lines /
152 rows with edits; the arrival test kept main's tolerant presence check
extended for the three S2 files. Arrival at opendox_code @ 330cf816: 9
declared admissions used, zero --allow-created, undeclared none;
dispose.js line 26 and wheel.js lines 75–76 DECLARED. Carve suites 269
passed; pytest-suite 34701772583 SUCCESS at b50f6c7.
brettheap pushed a commit that referenced this pull request Sep 15, 2026
… range the prose named five of

Copilot round 7 at `22e3f984` (review 5196554889): three suppressed findings,
no inline thread. Two are the same claim written twice; the third is a line
count, and its proposed correction is itself wrong, so the fix says what the
opcode says instead.

1. The `generator.py` row's second `adapter calls` note said "`LIFECYCLE_STATUSES
   = TAXONOMY` and the four comment lines above it (:76-:81) are DELETED" — a
   range of SIX carve lines against a prose enumeration of five. Copilot reads
   the gap as a miscount and asks for "five comment lines at :76-:80". Measured
   at the carve blob `b075fd91`, that is not what is there: :76 is BLANK, :77-:80
   are the four comment lines, :81 is the assignment, and `difflib` answers one
   `delete` opcode over carve[76..81]. The note now names all three parts with
   their own ranges and says the opcode is six lines, which is why the entry
   declares six.

2/3. The runbook § 2 paragraph and the summing test's comment both called this
   "the first act on this document that is not a slice". The runbook's OWN dated
   history, eleven lines below the paragraph, lists the ASK-7 declared-edit
   window (`#656` comment `5635150678`, PR #995) — a row annotation that is not
   a § 3.4 slice and landed 2026-09-12, before this one. The superlative is
   dropped in both places and the real difference is stated instead: ASK-7's
   four lines were RULED to be left and "fixed at the next declared-edit
   window", so they were owed to someone from the day of the ruling; these were
   scheduled by no ruling at all, because openXdox-code #14 and #16 landed
   before Q-L1's pairing became general.

Re-proved at this head against fresh read-only clones of both destinations at
their own `main` (`c1ad341a`, `8efb3cf5`), with no scratch remedy and no
`--allow-created`: `validate-carve-manifest.py` OK, 456 rows;
`verify-carve-arrival.py` OK at `openxdox_code` (96 rows, 2 of 2 declared
replicas) and at `opendox_code` (119 rows, 1 of 1); `pytest -q
tests/carve_manifest tests/carve_arrival tests/opendox_pin tests/openxdox_pin`
= 371 passed; pair unchanged at (1632, 159).

Refs #656 (stays OPEN). CLAIM #656 comment 5656688910.

Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[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