Skip to content

release-realization: render the code_surface example as one code span (non-normative) - #1095

Merged
brettheap merged 2 commits into
mainfrom
fix/1090-release-realization-code-span
Sep 18, 2026
Merged

brettheap merged 2 commits into
mainfrom
fix/1090-release-realization-code-span

Conversation

@brettheap

@brettheap brettheap commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

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 the
archive of gate-code-surface-declarations, PR #1076), the inline example
under "Code-surface declaration grammar is gated" opened a single-backtick
code span on code_surface: openxFactory and closed it early on the
embedded single-backtick pair around scripts/..., so Markdown paired the
four 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
\n between the two source lines is unchanged; CommonMark already folds
an 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):

than a rule invented at the gate: the house writes [-`code_surface:-]{+``code_surface:+} openxFactory —
`scripts/…` (NEW) [-…`,-]{+…``,+} and a reader that judged the whole string would refuse

Rendered HTML, before and after, via gh api -X POST /markdown on the
surrounding paragraph:

Before:

...the house writes <code>code_surface: openxFactory — </code>scripts/…<code> (NEW) …</code>, and a reader...

After:

...the house writes <code>code_surface: openxFactory — `scripts/…` (NEW) …</code>, and a reader...

scripts/... now renders inside the same <code> element as the rest of
the 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": no
    test 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, 2
    failed, 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: 436
    passed, 3 failed, unchanged before and after this change (pre-existing
    archive-date-vs-commit disposition gap on 2026-09-16-gate-code-surface-declarations,
    unrelated to this file); tests/code_surface alone: 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's DeltaRequirement/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:

  • Correct the Markdown rendering of the release-realization code-surface example so the entire literal example appears as one code span.

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]>
Copilot AI lite review requested due to automatic review settings September 17, 2026 16: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.

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.

@sourcery-ai

sourcery-ai Bot commented Sep 17, 2026

Copy link
Copy Markdown
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Updates 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

Change Details Files
Correct the Markdown delimiter length so the inline code-surface example renders as one code span while preserving its content and line break.
  • Replace the outer single backticks with double backticks at both boundaries of the example.
  • Keep the embedded single-backtick path and all wording unchanged, allowing CommonMark to render the full example—including literal backticks—as one code element.
openspec/specs/release-realization/spec.md
Verify that the rendering-only documentation change does not alter normative content or introduce regressions.
  • Confirm the word diff changes only backtick counts and no requirement or scenario text.
  • Run validation, targeted tests, and promotion-fidelity checks; observed failures remain pre-existing and unrelated.
openspec/specs/release-realization/spec.md

Possibly linked issues


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.

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

Copilot AI review requested due to automatic review settings September 18, 2026 09:47

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

Sourcery assessment

Approved.

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.

🟢 Approval recommended

The rendering-only change was fully reviewed with no unresolved issues.

Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@sonarqubecloud

Copy link
Copy Markdown

@brettheap

Copy link
Copy Markdown
Contributor Author

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

@brettheap
brettheap merged commit 9c81754 into main Sep 18, 2026
15 checks passed
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-5 (openXfactory-5)

LANDED — lane openXfactory-5, session 651195c7-1854-491e-894a-e6542ef5e9f4@Eagle, 2026-09-18T10:16:43Z, PR #1095 into opensoft/openxFactory main → merge 9c81754; release-realization: render the code_surface example as one code span (non-normative)

brettheap added a commit that referenced this pull request Sep 18, 2026
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]>
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