Skip to content

Let new specs register their index row as a per-PR fragment - #10550

Merged
EffortlessSteven merged 4 commits into
mainfrom
claude/specs-index-fragments
Oct 26, 2026
Merged

EffortlessSteven merged 4 commits into
mainfrom
claude/specs-index-fragments

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

Summary

Swarm / Source Boundary

  • ordinary feature, analyzer, editor, docs, spec, fixture, badge, dependency, or repo-ops development for ripr-swarm

Source-of-truth Links

Governing issue or accepted claim: #10455 (spec index tail conflicts)
Acceptance delta (one sentence): Two PRs that each add a spec no longer conflict on docs/specs/README.md.

Scope

Production delta: xtask/src/main.rs (specs_index_text shared by the numbering validator and check-doc-index; require_index_mentions_files_in). Docs: docs/SPEC_FORMAT.md, docs/specs/README.md. Test: spec_numbering_accepts_index_rows_from_fragments (row missing → violation, fragment supplies it → clean, fragment naming a nonexistent spec → still a violation).

Non-goals: moving existing rows, generating the README, the OUTPUT_SCHEMA.md hotspot from #10455.

Policy Impact

  • none

Proof

cargo test -p xtask spec_numbering   # 3 passed
cargo xtask check-spec-numbering     # pass
cargo xtask check-doc-index          # pass
cargo xtask precommit                # pass

Claim boundary: index validation only; no spec content or product behavior changes.


Generated by Claude Code


Devin Review

…README

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011f51xjzAhck2zj1mK7Bw3q
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 42 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 188 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 2ef49c46-c423-4271-af88-6a9c55381838
Commits

Reviewing files that changed from the base of the PR and between ffc00d9 and ceb9c1a.

Files selected for processing: 6
  • changelog.d/10455-spec-index-fragments.md
  • docs/SPEC_FORMAT.md
  • docs/spec-index.d/README.md
  • docs/specs/README.md
  • xtask/src/main.rs
  • xtask/src/tests.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 3 potential issues.

Devin Review

Comment thread xtask/src/main.rs Resolved
Comment thread docs/specs/README.md Resolved
Comment thread xtask/src/main.rs Resolved
…heir own directory

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011f51xjzAhck2zj1mK7Bw3q

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Independent bounded successor review: REPAIR_REQUIRED at 45b3390 / tree b0b5641882108969d84c70b21d5e71b4f2b39f74; observed PR base ffc00d9. Existing source owner retained; no competing implementation.

Observed: unchanged-source native xtask build exited 0 using the existing reviewer cache. The original synthetic fixture bytes were reused and byte-checked. Eleven tracked inputs produced 35 native gate outcomes. The correct ../specs fragment-only positive now passes markdown-links, check-spec-numbering and check-doc-index; legacy registration still passes. Both filename/ID controls and the original exact-duplicate/README-duplicate controls now fail numbering as intended. Missing/phantom controls remain rejected. The earlier 87b5738 failures remain historical evidence, not current outcomes.

One remaining source/oracle defect is detailed inline: row cardinality is counted by raw canonical-link prefix, so equivalent-link duplicate rows and a fenced-only example both pass all three gates.

Navigation: README now links to the existing explanatory fragment-directory README, repairing the missing entry-point. That landing page does not list/link individual fragments; directory browsing can expose siblings. This is inspected Markdown evidence, not a verified browser journey or combined rendered index.

Immutable, byte-verified successor evidence: https://github.com/EffortlessMetrics/ripr-swarm/blob/be15b1adc0d9bf0eeed8fa0c6f1a1077ad84d6c8/evidence/pr-10550-native-authoring-45b3390/README.md . It preserves the full reviewed parent tree, adds only inert evidence, and includes exact patches/fixtures, native receipts, source/build/executable identities and manifest. Synthetic 9901/9902 remain unreserved and are not production registrations.

Owner action: repair fragment row validation and add the two discriminating negatives in this same candidate, then refresh affected review/native evidence. Owner-reported precommit/unit results were read but not independently rerun. No shared qualification, hosted-check, native-Windows, current-main integration or landed whole-tree clearance is claimed; the PR was still open at the final pre-review read. No lifecycle, merge, source, ref or held-operation changes were performed.

Comment thread xtask/src/main.rs Resolved

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Decision

  • Needs reviewer attention before upstream: findings remain.

Confirmed findings

  • The fragment-normalization substring replacement rewrites every ](../specs/ occurrence, rather than only the validated single-row link.

Verification questions

  • Confirm the combined-index route can accept a fragment whose target filename does not exist if another text occurrence supplies the required README-style link.
  • Confirm the shared index is assembled with string replacement and substring matching, so canonical row syntax is a structural assumption even though the documented positive form is enforced.

Refuted

  • The new fragment-reading code introduces unsafe pointer lifetime, aliasing, or ownership hazards.; refuted because: The changed native seam uses owned PathBuf/String values, read_text_lossy results, and ordinary String operations. It introduces no raw pointers, references stored beyond their scope, manual allocation ownership, or unsafe blocks.
  • The changed code contains an active-view or resizable-buffer hazard.; refuted because: No JavaScript, WebAssembly, ArrayBuffer, TypedArray, Rust Vec reallocation, unsafe pointer, or externally resizable backing store is introduced. The implementation uses owned String buffers and filesystem reads; path collection and validation consume those values synchronously.
  • This change may introduce an unsafe JS/worker memory handoff across asynchronous or ownership-transfer boundaries.; refuted because: The diff only synchronously reads Markdown files into Rust strings and validates their contents. It does not execute JavaScript, spawn or communicate with workers, cross an async task boundary, expose native memory, or detach resources.
  • The change should be broadened into unrelated crypto, compression, or runtime helper review.; refuted because: The diff changes spec-index discovery and documentation validation only; no crypto, compression, unsafe/runtime allocation, or native helper surface is changed, so those sibling classes are not implicated by this patch.
  • The fragment implementation could introduce an OOB/UAF/type-confusion exploit primitive.; refuted because: The changed code contains no unsafe block, raw pointer, slice conversion, lifetime-bearing alias, or type reinterpretation; it operates on owned strings and checked Path values.

Parked follow-ups

  • Tests cover fragment acceptance, phantom IDs, mismatched filenames, duplicate rows, and README duplication, but do not directly stress extreme file sizes or malformed Unicode filenames.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.
  • The failed ripr sensor and late cargo-test receipt leave executable validation incomplete in the supplied evidence packet.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011f51xjzAhck2zj1mK7Bw3q

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Independent exact-head continuation at ceb9c1a / tree b03af09e39ac56806f2455af3cf8a3743b203ff5, parent 45b3390. Scoped source/native row-parser review is clear; final disposition remains REVIEW_INCOMPLETE for existing qualification and parent-owned integration/protection/merge judgment. No new actionable source finding in the requested repair scope.

Observed: unchanged-source native xtask build exits 0, reusing the reviewer cache while preserving both historical failure producers. Five tracked input sets are byte-identical to their 45b3390 counterparts. The baseline, legacy README registration and valid fragment-only registration each pass markdown-links / check-spec-numbering / check-doc-index (0/0/0). The equivalent-link duplicate and fenced-only controls now produce 0/1/1: numbering rejects their structure and both index gates withhold coverage. These are 15 native invocations, not a unit-suite/precommit or qualification replay. The old incorrect 0/0/0 outcomes remain historical evidence.

The new shared spec_index_fragment_row helper checks one non-blank canonical row with one link, and specs_index_text supplies coverage only from that accepted row. This repairs discussion4373792140. It also supersedes the earlier ub-review normalization concern in the inspected source: arbitrary fragment text is no longer normalized into coverage, and an accepted row has one link occurrence. This is bounded canonical-row enforcement, not a general Markdown-parser claim. New unit negatives were inspected; independent tracked-input execution supplies the observation. Docs/navigation and the unchanged Markdown checker retain prior evidence; no new browser journey was claimed.

Immutable byte-verified evidence, preserving the full reviewed parent tree: https://github.com/EffortlessMetrics/ripr-swarm/blob/7416b335e1f7e08c813624a0afb073a395db7102/evidence/pr-10550-native-authoring-ceb9c1a/README.md . It contains exact inert fixtures/patches, command/input/tree receipts, producer identity, qualification snapshot and manifest. Synthetic 9901/9902 remain unreserved and are not production registrations.

Existing qualification was inspected read-only. Merge-ready run40268883170 is admitted for this head; Rust job121397464028 remains in progress at strict workspace Clippy. Windows advisory and ub-review are in progress; the observed wheel job list is complete and its non-skipped jobs succeeded. No duplicate campaign was dispatched; skips and running jobs are not passes.

Identity boundary: PR metadata reports base ffc00d9. The separately read GitHub merge object d4f0f9c has tree c88713bd4fd28eb621d85e761a0c5505d298767a and actual parents 453b602 + ceb9c1a. Neither metadata nor that object proves the Rust job's actual checkout; its terminal execution evidence remains to inspect. The PR is still open Ready, not a landed whole tree.

No new source repair requested by this scoped review. Parent retains completion and inspection of the existing qualification/current reviews, protections and merge decision. No source/ref/lifecycle/merge changes, held-operation retries or alternate permission routes were performed.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verification questions

  • Confirm the central acceptance claim—two PRs adding separate specs no longer conflict on the README tail—is not tested by an integration test that creates two independent fragment-only specs and verifies the README remains untouched.
  • Confirm a broad sibling audit of every Markdown-link parser is not evidenced; the review established only that canonical fragment rows use ../specs links and are normalized for index lookup.
  • Confirm the current tests prove a valid fragment, missing registration, phantom ID, naming, cardinality, duplicate README, and fenced/equivalent-link negatives, but not an end-to-end Markdown-link check of the authored fragment workflow.
  • Confirm the fragment-only route is wired into both advertised validators, but sibling consumers of the spec README are not demonstrated to accept fragment registration.

Refuted

  • The changed source could introduce a worker-handoff or active-view memory-safety defect.; refuted because: The diff is limited to Rust filesystem parsing, owned String/PathBuf values, and Markdown validation; it adds no JavaScript runtime, worker messaging, asynchronous ownership transfer, GC interaction, detach operation, or unsafe pointer lifetime.
  • The fragment normalization substring replacement could rewrite unrelated link text and create phantom coverage.; refuted because: Rejected for the advertised row form: replacement occurs only after the fragment has passed exact single-row validation, and normalized coverage is still checked against actual spec IDs and files.
  • The fragment feature pulls in a parallel unsafe/native helper or memory-lifetime surface requiring sibling fixes.; refuted because: The changed implementation consists of owned path/text values and ordinary String operations; no unsafe block or externally managed lifetime is introduced.
  • The fragment parser returns borrowed row data that could outlive the owned fragment text and cause a use-after-free.; refuted because: The returned row borrows from the fragment String, which is owned by the Vec and remains alive for the duration of the iteration; the resulting borrowed row is copied into the output String before that iteration ends.
  • The fragment feature introduces a memory-safety exploit primitive such as OOB access, UAF, or type confusion.; refuted because: The changed code contains no unsafe blocks or raw pointers and uses owned strings, local immutable slices, and bounded standard-library operations. The unsafe-review sensor found no new gaps.
  • The new fragment-index path may expose a stale active view or unsafe backing-buffer aliasing.; refuted because: All added state is represented by owned PathBuf, String, and Vec values. spec_index_fragment_row returns a borrow only for the duration of use, and no unsafe block, raw pointer, FFI buffer, JavaScript/WASM view, or resizable backing store appears in the changed Rust code.

Evidence gaps

  • The new fragment paths are exercised by Rust unit tests, but the available review packet records cargo-test as scheduled late rather than completed.
  • Model proof intent was rejected by deterministic validation.

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Final exact-head technical disposition: REVIEW_READY for ceb9c1a and the bounded #10455 fragment-authoring contract. No remaining actionable source/test-oracle finding in the inspected scope. Existing run40268883170 attempt1 is terminal success, including producer, all four required shards, coverage verifier121409225682 and required Result121410062883. This COMMENT performs no lifecycle or merge action; parent retains current protections and merge decision.

Actual execution, not PR-metadata inference: producer121397464028, each shard and the verifier all log checkout d4f0f9c. That immutable commit resolves to tree c88713bd4fd28eb621d85e761a0c5505d298767a, with parents453b6022af29a230d43070681b4fae8931f1edde + ceb9c1a. PR metadata's ffc00d9 base is retained separately.

Completed evidence: shard1 5559/5559 passed; shard2 5504/5504; shard3 5451/5451; shard4 5404/5404. The verifier's own native output reports21918 selected workspace tests and21918 JUnit tests, with0 duplicate/missing/extra identities. Both fragment-acceptance and filename/cardinality unit tests explicitly PASS in shard logs. The producer's monolithic nextest step was correctly skipped by the receiving #10507 four-shard route; it is not relabelled as a pass. Doctests passed2 with1 ignored (plus a zero-test package). Policy, all-features compilation, strict Clippy, goldens, fixtures, capability checks, corpora, live PR evidence and schema sweep completed successfully. The complete55-check exact-head lookup reports25 success and30 skipped, without promoting skips or asserting protection requirements.

Configured nonzero corpus observations remain explicit: Perl1/87 false verdicts and TypeScript1/353, both within their configured passing gates. Rust/Python selected corpus false-verdict counts are0. A passing configured gate is not a zero-finding accuracy claim.

Native authoring proof is reused from the prior immutable exact-ceb five-input/15-command packet; no local build/test or new campaign/dispatch was run. Original87/45 failure witnesses remain historical. Current source/review questions are reconciled in the receipt; no universal sibling-parser, browser-journey or executed two-PR concurrency claim is added.

Current integration was inspected through main bc53a67. The read-only composition tree b35bbc0f988bf4d45908eff0de3b54c96c7a4997 merges cleanly;122 later-main paths do not overlap candidate changes. Fragment-owner/legacy-validator regions, CI wiring and shared inputs match the executed subject. That later whole tree was not rebuilt or requalified here; parent retains final live applicability judgment.

Immutable terminal receipt, preserving the full actual executed tree: https://github.com/EffortlessMetrics/ripr-swarm/blob/4f516552e80bae0d6c48bc1306a25505f9e7104b/evidence/pr-10550-qualification-40268883170/README.md . Parent/tree/manifest were read back and matched exactly.

Separate limitation: supported consumer-local materialization of shard1 artifact12628864340 failed with helper exit1, library file transfer failed: download failed, after archive resolution/preparation succeeded. No local ZIP was installed, no permission denial was reported, and transfer stopped without an alternate route or blind retry. CI logs, verifier output and artifact metadata were inspected; independent consumer-local ZIP/JUnit inspection is not claimed. This transport limitation is not relabelled as a candidate or CI failure.

No source/ref/lifecycle/merge, protection or security change, no new qualification campaign, and no held-operation or historical-denial retry occurred.

Copy link
Copy Markdown
Member Author

Review of record, head ceb9c1a.

Angles: correctness of the fragment row parser and index credit; tests and oracle grip; spec and docs; navigation and link checking.

Findings and resolutions: (1) fragment links failed markdown-links and were not recognized by numbering, fixed with ../specs/ links normalized for the index; (2) new specs not discoverable, fixed with README link to docs/spec-index.d/README.md; (3) misnamed and mixed fragments, fixed with filename-and-ID validation; (4) equivalent-spelling duplicate and fenced rows passed, fixed by crediting only one validated canonical row, with both negatives added. All threads resolved with replies. The ub-review note about substring normalization is superseded by (4): only a validated single row is credited.

Evidence: required run 40268883170 on this exact head is terminal success (four shards, coverage verifier, Ripr Rust Small Result); the independent exact-head review (5647761957) is REVIEW_READY with no remaining finding; cargo xtask precommit passed locally on this head. Merge state is clean.

Merging with expected head ceb9c1a.


Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants