Repository navigation
release-realization: render the code_surface example as one code span (non-normative) - #1095
Conversation
Lane: openxfactory-5 (openXfactory-5) The inline example illustrating the code_surface gloss grammar opened a single-backtick code span, then closed it early on the embedded backtick pair around `scripts/...`, leaving that path to render as plain prose instead of code. Upgrade the outer delimiter to a double backtick so the whole example, embedded backticks included, renders as one code span. Non-normative: no requirement or scenario text changed, only backtick count at the two outer boundaries of the existing example string. Refs #1090 Co-Authored-By: Claude Fable 5.1 <[email protected]> Co-Authored-By: Claude Sonnet 5 <[email protected]>
There was a problem hiding this comment.
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 8 hours and 5 minutes by commenting @sourcery-ai review. Upgrade to get a review now.
Reviewer's guide (collapsed on small PRs)Reviewer's GuideUpdates the non-normative inline example in the release-realization specification to use double outer backticks, preventing embedded backticks from prematurely closing the code span; the change preserves all prose and is supported by unchanged validation and test results. File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
🟢 Approval recommended
No unresolved issues were identified.
Pull request overview
This pull request fixes Markdown rendering for the code_surface example without changing its content.
Changes:
- Uses double backticks for the outer code span.
- Preserves all substantive text.
File summaries
| File | Description |
|---|---|
openspec/specs/release-realization/spec.md |
Fixes inline code-span rendering. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
|
Lane: openxfactory-5 (openXfactory-5) LANDING — lane openXfactory-5, session 651195c7-1854-491e-894a-e6542ef5e9f4@Eagle, 2026-09-18T10:16:30Z, PR #1095 into opensoft/openxFactory main |
THE PULL-REQUEST-CAUSED TEST FAILURE, AND ITS CAUSE. The head's pytest run
failed `tests/doc-health/test_modified_block_currency_self_gate.py::
test_every_carriage_ledger_finding_over_the_real_tree_is_named` with ONE
unnamed subject, `(add-estate-repository-inventory, release-realization,
'Code-surface declaration grammar is gated')`. The cause is not in the test
and not in the checker: `9c817545` ("release-realization: render the
code_surface example as one code span (non-normative)", PR #1095) landed on
main AFTER this block was written and re-fenced ONE sentence of canon from a
single-backtick span, which nests a backtick inside itself, to a
double-backtick span. This packet's `## MODIFIED` block still carried the
pre-#1095 rendering, so the arm read one of the 52 body units and scenario
bullets canon states as NOT CARRIED and opened a carriage-ledger row.
THE FIX IS THE FIRST REMEDY THE ARM ITSELF NAMES — "restate the requirement as
canon currently states it" — and NOT the `Removed from canon by` marker, which
declares a DELIBERATE deletion and would be a false statement here: #1095 is
non-normative by its own commit subject, this packet takes no position on it,
and the sentence's words are unchanged. Only the fence width moves, so the
block goes on restating the requirement exactly as canon states it but for the
ONE paragraph the marker at line 45 already declares. The family's carriage
ledger returns to 15 findings over the real tree, the population the test
names, and this packet opens none.
THE README RESTATEMENTS, FIXED AGAINST THE PACKET RATHER THAN RE-REASONED.
The "Active changes" bullet said TWENTY-SIX scenarios with seven in the first
ADDED requirement; the delta file carries TWENTY-SEVEN (10 + 8 + 9), which is
what `proposal.md` has said since the review expansion added the eighth
inventory scenario. The bullet now states the arithmetic so a reader can check
it against the file.
The bullet's measurement summary was stale in the two ways the review named.
The FIFTH NAMING SITE is a GOVERNED DomainxFactory's own `.gitmodules`, added
at the review of PR #1101 when `gitlink` was widened to reach any governed
estate repository — not "a RATIFIED change whose realization creates a
repository", which is `change`, the fifth of the five ADMISSION KINDS and a
different enumeration. The candidate inventory carries THIRTY-THREE rows, not
twenty-seven, the six added rows being `openChart`, `openPractice`,
`MedxAvatar`, `LedgerxAvatar`, `MedxEHR-spec` and `MedxEHR-code`. The bullet
now reads as `design.md` D0.1-D0.2 and `tasks.md` § 2.1-2.2 already read, cites
them, and keeps the two measurement dates apart: the first four sites on
`origin/main` `ad089e8a`, the fifth on 2026-09-18.
NO NORMATIVE TEXT MOVES AND THE PACKET STAYS `Status: draft`. No ratifying word
has been given.
GATES, at this tree: `openspec validate add-estate-repository-inventory
--strict` valid; `openspec validate --all --strict` 110 passed, 1 failed, the
failure `add-chain-attestation` and inherited (origin/main reports the same one
at 109 passed, 1 failed); `validate-sequenced-after.py . --ledger-diff`
consistent with the corpus, 220 rows; `validate-code-surface.py .` passed;
`proposal-support.py . verify add-estate-repository-inventory` ok; `pytest
tests/doc-health/test_modified_block_currency_self_gate.py tests/sequenced_after`
3 failed, 302 passed, all three inherited from main's undispositioned
`archive-date-vs-commit: 2026-09-16-add-composed-view-authoring`.
Refs #1087
Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Fable 5.1 <[email protected]>



Lane: openxfactory-5 (openXfactory-5)
What
Rendering fix only; no requirement or scenario text changed. In
openspec/specs/release-realization/spec.md(promoted byte-for-byte by thearchive of
gate-code-surface-declarations, PR #1076), the inline exampleunder "Code-surface declaration grammar is gated" opened a single-backtick
code span on
code_surface: openxFactoryand closed it early on theembedded single-backtick pair around
scripts/..., so Markdown paired thefour backticks as (1st, 2nd) and (3rd, 4th) instead of one span: the path
rendered as plain prose between two separate code fragments.
Fix: upgrade the outer delimiter from one backtick to two at both
boundaries, so the parser skips the embedded single-backtick pair and
treats the whole example, backticks included, as one code span. The
\nbetween the two source lines is unchanged; CommonMark already foldsan internal line break inside a code span to a space, so no line-join was
needed once the delimiter length was fixed.
Word-diff proof (only backtick counts move; zero words added, removed, or
reordered):
Rendered HTML, before and after, via
gh api -X POST /markdownon thesurrounding paragraph:
Before:
After:
scripts/...now renders inside the same<code>element as the rest ofthe example, which is what the surrounding sentence already says the house
writes: one string, literal backticks included.
Precedent
Non-normative addendum under the 2026-09-01 precedent for post-word
corrections: this text was ratified and promoted by
gate-code-surface-declarations(archived at 5dd0a8d via PR #1076); this PR changes no requirement or
scenario wording, only the Markdown delimiter count around an existing
inline example, so it lands as a rendering-only correction on ratified
canon rather than a reopened requirement.
Gates
grep -rn "release-realization" tests/ | grep -i "sha\|byte\|digest": notest pins this spec's bytes (one unrelated narrative mention in
tests/sequenced_after/test_sweep.py, not a pin).OPENSPEC_TELEMETRY=0 openspec validate --all --strict: 109 passed, 2failed, unchanged before and after this change (
add-chain-attestation,add-composed-view-authoring; both pre-existing and unrelated).python3 -m pytest tests/sequenced_after tests/code_surface -q: 436passed, 3 failed, unchanged before and after this change (pre-existing
archive-date-vs-commitdisposition gap on2026-09-16-gate-code-surface-declarations,unrelated to this file);
tests/code_surfacealone: 153 passed, 0 failed,both before and after.
python3 scripts/doc-health.py --single-repo . --family promotion-fidelity:No findings, before and after. That family compares archived-delta
requirement and scenario TITLES against canon (see
scripts/doc_health/promotion_fidelity.py'sDeltaRequirement/parse_promoted);it does not read a requirement's body prose, so this body-text rendering
fix is outside what it measures, and canon is not reported as differing
from the archived delta.
Refs #1090
Lane: openxfactory-5 (openXfactory-5)
🤖 Generated with Claude Code
Summary by Sourcery
Bug Fixes: