Skip to content

docs(schema): show the root-bound witness explain_command in the context packet (#6762) - #6953

Merged
EffortlessSteven merged 2 commits into
mainfrom
claude/project-thread-lnacui
Oct 7, 2026
Merged

EffortlessSteven merged 2 commits into
mainfrom
claude/project-thread-lnacui

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Summary

Before: the Context Packet example in docs/OUTPUT_SCHEMA.md showed "explain_command": "ripr explain --root . probe:...".

After: the example shows the root-bound form the CLI prints since #3948, ripr explain --root /work/repo --diff /work/repo/change.diff probe:..., and one sentence explains why. I observed this on main b74e6b108: ripr context --root <repo> --diff <repo>/crates/ripr/examples/sample/example.diff --at <probe> printed "explain_command":"ripr explain --root <repo> --diff <repo>/crates/ripr/examples/sample/example.diff <probe>".

This closes the second item of #6762. The first item, quoted-path projection, merged in #6941. The LSP witness examples further down the schema were already updated by #6931.

Swarm / Source Boundary

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

Source-of-truth Links

Closes #6762. Related to #3948.

Candidate Relationships

Branch claude/project-thread-lnacui, restarted from main after #6941 merged.

Scope

docs/OUTPUT_SCHEMA.md only: one example value and one sentence.

Scope Classification

  • Docs only

Support-tier Impact

None.

Policy Impact

None.

Proof

# commands run
cargo xtask check-output-contracts   # exit 0
cargo xtask check-doc-artifacts      # exit 0
cargo xtask check-local-context      # exit 0
cargo xtask check-static-language    # exit 0
cargo xtask precommit                # exit 0

Claim Boundary

This is a documentation-only change and does not alter producer behaviour.

Rollback

Revert this PR.

Spec-Test-Code Traceability

No spec or test change.

Static Language Check

Pass.

CI Economics

Docs only.

Engineering Check

The example uses the /work/repo placeholder that the LSP witness examples in the same file already use.

Gates

cargo xtask precommit: pass.

🤖 Generated with Claude Code

https://claude.ai/code/session_01XFhjvUrvNZmeqaxCah9aXF


Generated by Claude Code

…ext packet (#6762)

The context packet example still printed `ripr explain --root .`. Since
#3948 the CLI context packet prints the resolved root and diff, for
example `ripr explain --root <repo> --diff <repo>/<diff> <probe>`, which
was observed on main b74e6b1.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XFhjvUrvNZmeqaxCah9aXF
@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!

Copy link
Copy Markdown
Member Author

Review of record: head ea1143786

Angle: contract against the producer. The documented value must match what the CLI actually prints.

Disposition: nothing blocking. Marking Ready.


Generated by Claude Code

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 7, 2026 02:18
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

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

@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 1 potential issue.

Devin Review

Comment thread docs/OUTPUT_SCHEMA.md Resolved
@coderabbitai

coderabbitai Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: a317fc6f-541c-42a4-8ae4-bff5fc4cb613
📥 Commits

Reviewing files that changed from the base of the PR and between ea11437 and 2e1d2fd.

📒 Files selected for processing (1)
  • docs/OUTPUT_SCHEMA.md
🔗 Linked repositories identified

CodeRabbit considers these linked repositories for cross-repo context during reviews:

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.


Summary by CodeRabbit

  • Documentation
    • Updated the ripr context --json example to show resolved repository and diff paths.
    • Clarified that diff and --from artifact paths are resolved, stdin is still specified with --diff -, and --base or --worktree scope is repeated as supplied.

Walkthrough

The output schema documentation updates the witness.explain_command example with the resolved repository root and diff path. It also specifies how diff paths, --from artifact paths, stdin, and --base or --worktree scope are represented.

Changes

Explain Command Documentation

Layer / File(s) Summary
Example and resolved-path behavior
docs/OUTPUT_SCHEMA.md
The example shows the resolved root and diff path. The documentation states that diff and --from artifact paths are resolved, stdin remains --diff -, and --base or --worktree scope is repeated as supplied.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Other · Severity of issue fixed: Low

Merge Risk: ⚪ Minimal · up to 2e1d2

The documentation matches the evidenced Context Packet command behavior and is ready to merge after normal checks.

Architecture Summary

Architecture risk: 🔵 Low · up to 2e1d2

The change affects 1 system.

Changed systems: docs

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — docs (service) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in docs/OUTPUT_SCHEMA.md: The example’s witness.explain_command now includes the resolved root and diff path instead of the relative root alone.
  • observed — Modified behavior in docs/OUTPUT_SCHEMA.md: Documentation now describes resolved repository paths and specifies which input scope is repeated: diff and --from artifact paths are resolved, stdin stays --diff -, and --base or --worktree is repeated as given.
🚥 Pre-merge checks | ✅ 4 | ❓ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Linked Issues check ❓ Inconclusive #6762 has two coding objectives. The PR summary supports the documentation objective: it updates the explain_command example to use the resolved root and diff path, and the PR reports that this form… Need untruncated current-head code or test evidence to determine whether quoted checkout paths are projected correctly.
✅ Passed checks (4 passed)
Check name Status Explanation
Out of Scope Changes check ✅ Passed The reported changes are confined to docs/OUTPUT_SCHEMA.md. The example update and its explanation directly support #6762's requirement to verify that the documented explain_command matches produc…
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Title check ✅ Passed The title clearly identifies the documentation change: showing the root-bound witness explain_command in the context packet.
Description check ✅ Passed The description explains the change, scope, source boundary, proof results, claim boundary, rollback, and related issue. Some template details are omitted, including a separate acceptance delta, CI Ec…
Full details: Linked Issues check

Explanation

#6762 has two coding objectives. The PR summary supports the documentation objective: it updates the explain_command example to use the resolved root and diff path, and the PR reports that this form matches CLI output. The quoted-path projection objective is attributed to #6941, but the available current-head source read was truncated before project_renderer_cwd; a related PR reference does not establish that the behavior is present at this head.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

A rabbit checks the path at dawn
The root is clear, the diff is drawn
Stdin keeps its little dash
Base and worktree keep their shape
The schema shines beneath my paws

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

…nput (#6762)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XFhjvUrvNZmeqaxCah9aXF
@EffortlessSteven
EffortlessSteven marked this pull request as draft October 7, 2026 02:23
@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 7, 2026 02:23
@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!

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

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

Reporter summary

Docs-only change to one example value and one explanatory sentence in docs/OUTPUT_SCHEMA.md. The devin-ai finding (already addressed in commit 2e1d2fd mentioned by the author) correctly flagged that the prose overstated resolved-path behavior across input modes; the author's follow-up confirms 2e1d2fd corrects it to match navigation_args: only the root is always resolved, diff files and --from artifacts print resolved paths, stdin stays --diff -, and --base/--worktree repeat as given. No code, test, or build behavior changed. Residual rule is whether 2e1d2fd actually landed on the PR head before merge — worth confirming the reviewer sees the corrected prose, not just the prose-first version.

Copy link
Copy Markdown
Member Author

Review of record, head 2e1d2fd0f

Angles checked:

  • Contract accuracy: the example and the prose match what app/navigation.rs navigation_args builds. The root is always resolved. A diff file or --from artifact is printed as a resolved path. Stdin stays --diff -. --base and --worktree are repeated as given.
  • Placeholder hygiene: the example uses the same /work/repo placeholder as the LSP examples already in the file. check-local-context passed.
  • Docs gates: check-output-contracts, check-doc-artifacts, check-static-language and precommit all exited 0.

Findings:

  • Devin flagged that the prose overstated how diffs are bound. Fixed in 2e1d2fd0f; the thread is resolved.
  • CodeRabbit reported no actionable findings.
  • The github-actions reporter's leftover question was whether the fix is on the head. It is: 2e1d2fd0f is the PR head.

CI on this head: Ripr Rust Small Result succeeded, Rust gates succeeded and windows-advisory-subset succeeded. Nothing failed.

Nothing blocking. Squash-merging under the standing merge policy.


Generated by Claude Code

@EffortlessSteven
EffortlessSteven merged commit 1b1690b into main Oct 7, 2026
25 checks passed
@EffortlessSteven
EffortlessSteven deleted the claude/project-thread-lnacui branch October 7, 2026 03:13
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.

test(goldens): fixture cwd projection misses a quoted checkout path; verify witness explain_command docs

2 participants