Skip to content

fix(research,codex-plan-review,implement): integer steps, name-key refs - #131

Merged
ultimatile merged 2 commits into
mainfrom
fix/research-step-numbering
Jul 24, 2026
Merged

fix(research,codex-plan-review,implement): integer steps, name-key refs#131
ultimatile merged 2 commits into
mainfrom
fix/research-step-numbering

Conversation

@ultimatile

@ultimatile ultimatile commented Jul 24, 2026

Copy link
Copy Markdown
Owner

Summary

research's SKILL.md had ## Step 3.4 and ## Step 3.5 but no 3.13.3. Those decimals read as sub-steps of Step 3, but both headings are ## (h2) top-level steps — structural peers of Step 3 and Step 4 — whose decimal numbers merely place them between Step 3 and Step 4. This renumbers the top-level steps to a contiguous integer sequence and keys research's inbound cross-skill references on step names instead of numbers, so a future renumber cannot break them.

Closes #130

Changes

  • skills/research/SKILL.md — renumber top-level steps 3.4→4, 3.5→5, 4→6, 5→7; Post sub-sections 5.0/5.17.0/7.1; update the internal self-references. Step 2 / 2.A / 2.B / Step 3 keep their numbers, and the phrase "codex-plan-review per its Step 4 re-run rule" is preserved (that Step 4 names codex-plan-review's own step).
  • skills/codex-plan-review/SKILL.md — "research Step 3.5" → "research's Plan review gate".
  • skills/implement/SKILL.md — both "research Step 2.B" → "research's Derivational hypotheses step" (matching Step 2.B's heading text).
  • .claude-plugin/marketplace.json — version 2026.7.252026.7.26.

Test plan

No test suite (Markdown skill repo). Verified by:

  • rg '^## Step [0-9]+\.[0-9]' skills/research/SKILL.md returns nothing (no decimal top-level step heading remains).
  • research's h2 step headings are now 0,1,2,3,4,5,6,7; 2.A/2.B remain h3 under Step 2; 7.0/7.1 remain h3 under Step 7.
  • rg '`research`\s+Step [0-9]' skills returns nothing (no number-keyed inbound reference to research remains).
  • Every internal Step N reference inside research's SKILL.md resolves to an existing heading.
  • The mdformat pre-commit hook (--number --compact-tables) passes.

Notes

Two follow-ups are deliberately out of scope:

  • Harmonizing the two sub-step conventions in research (h3 letters 2.A/2.B vs h3 decimals 7.0/7.1).
  • Migrating the remaining number-keyed cross-skill references (quality-listdone-check/todo-check, codex-contract-test-reviewbug-to-contract) to names.

@coderabbitai ignore

research's Step 3.4/3.5 were h2 top-level steps numbered as decimals,
implying nonexistent sub-steps of Step 3. Renumber the top-level steps
to a contiguous integer sequence (3.4->4, 3.5->5, 4->6, 5->7) and update
research's internal self-references.

Convert research's inbound cross-skill references from number-based to
name-based so future renumbers cannot break them: codex-plan-review's
"Step 3.5" -> "Plan review gate"; implement's two "Step 2.B" ->
"derivational-hypothesis verification".

Closes #130
@ultimatile
ultimatile requested a review from Copilot July 24, 2026 17:38
@coderabbitai

coderabbitai Bot commented Jul 24, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The research workflow now uses contiguous top-level step numbers, explicit clean or flagged outcomes, a plan review gate, user approval, and GitHub posting stages. Related skills use named research references, and the marketplace metadata version is incremented.

Changes

Research workflow alignment

Layer / File(s) Summary
Renumber research workflow
skills/research/SKILL.md
Reachability, plan review, approval, and GitHub posting instructions are renumbered and connected through the updated workflow.
Align cross-skill references
skills/codex-plan-review/SKILL.md, skills/implement/SKILL.md
Cross-skill references now identify research gates by name rather than obsolete step numbers.
Update marketplace version
.claude-plugin/marketplace.json
The marketplace metadata version changes from 2026.7.25 to 2026.7.26.

Estimated code review effort: 2 (Simple) | ~10 minutes

Sequence Diagram(s)

sequenceDiagram
  participant ResearchWorkflow
  participant User
  participant GitHub
  ResearchWorkflow->>ResearchWorkflow: Run reachability check
  ResearchWorkflow->>ResearchWorkflow: Emit clean or flagged result
  ResearchWorkflow->>User: Offer plan review and approval
  User->>ResearchWorkflow: Approve plan contract
  ResearchWorkflow->>GitHub: Validate body and route plan
Loading

Possibly related PRs

Suggested reviewers: copilot

Poem

A bunny hops through steps anew,
With gates aligned and references true.
Plans reach GitHub, checked and bright,
Named gates guide the path just right.
The marketplace wears a newer hue.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Out of Scope Changes check ⚠️ Warning The marketplace version bump is unrelated to issue #130 and appears outside the linked scope. Split the version bump into a separate change or link it to an issue, and keep this PR focused on the research/reference updates.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed The changes match issue #130 by renumbering research steps and converting inbound research references to stable names.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately reflects the main changes: renumbered research steps and switched inbound references to stable names.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/research-step-numbering

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

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.

Pull request overview

Renumbers research’s top-level (H2) steps from misleading decimal numbering to a contiguous integer sequence, and updates cross-skill references to research to be name-keyed (so future renumbers don’t break inbound links). Also bumps the marketplace version to publish the behavior change.

Changes:

  • Renumber skills/research/SKILL.md top-level steps (3.4/3.5 → 4/5, shifting later steps accordingly) and update internal step references.
  • Update inbound cross-skill references to research in codex-plan-review and implement to use step names rather than step numbers.
  • Bump .claude-plugin/marketplace.json version from 2026.7.25 to 2026.7.26.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
skills/research/SKILL.md Renumbers top-level steps to contiguous integers and updates internal references to match.
skills/implement/SKILL.md Replaces number-keyed references to research steps with name-keyed references (but one name currently doesn’t match research’s heading).
skills/codex-plan-review/SKILL.md Updates the inbound reference to research to use the “Plan review gate” step name instead of a step number.
.claude-plugin/marketplace.json Version bump to publish the skill behavior/reference changes.
Comments suppressed due to low confidence (1)

skills/implement/SKILL.md:105

  • This reference points to “derivational-hypothesis verification”, but research has no step/heading by that name; its Step 2.B is titled “Derivational hypotheses …”. Using the actual heading name keeps the reference stable and discoverable.
3. **Required action when halted:** Surface to the user with: the proposed example, the deductive properties it is being relied on to satisfy (e.g., "this Hamiltonian must be U(1)-symmetric, must be Hermitian, must be non-diagonal in the chosen basis, must exercise the multi-sector path"), and the request to extend the plan's `Derivations` section before proceeding. The derivation itself is performed in `research`'s derivational-hypothesis verification, not in implementation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread skills/implement/SKILL.md Outdated

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@skills/research/SKILL.md`:
- Around line 205-209: Update the Step 4 output and subsequent workflow in the
research skill instructions so a flagged reachability result blocks progression:
require rescope or defer resolution and user-facing handling before continuing.
Make the Step 5 plan review gate explicitly conditional on Step 4 being clean,
preventing flagged plans from reaching approval or Step 7.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 9c84890f-1fdc-4d0e-8e0b-4b3407a3bce5

📥 Commits

Reviewing files that changed from the base of the PR and between 5fa1f2e and d3cfd7e.

📒 Files selected for processing (4)
  • .claude-plugin/marketplace.json
  • skills/codex-plan-review/SKILL.md
  • skills/implement/SKILL.md
  • skills/research/SKILL.md

Comment thread skills/research/SKILL.md
Copilot review flagged that "research's derivational-hypothesis
verification" paraphrased Step 2.B's heading and was not discoverable.
Use the heading's actual name so the name-keyed reference resolves by
search: "research's Derivational hypotheses step".

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.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

Comments suppressed due to low confidence (2)

skills/implement/SKILL.md:28

  • The name-key cross-skill reference uses “Derivational hypotheses step”, but research’s Step 2.B heading is “Derivational hypotheses (deductive verification in main context)”. Using the exact heading phrase (“Derivational hypotheses”) makes the reference easier to resolve by search and better matches the stated goal of name-keyed linking.
- **Derivations** (specific examples and their deductive properties, already verified in `research`'s Derivational hypotheses step). The list of examples whose properties have been derived defines the **derivationally cleared example set** — examples not on this list are unverified by the plan, regardless of how obvious their properties may seem.

skills/implement/SKILL.md:105

  • This cross-skill reference should match research’s Step 2.B heading text. The heading uses “Derivational hypotheses …”, so using that exact phrase improves discoverability and keeps the reference clearly name-keyed.
3. **Required action when halted:** Surface to the user with: the proposed example, the deductive properties it is being relied on to satisfy (e.g., "this Hamiltonian must be U(1)-symmetric, must be Hermitian, must be non-diagonal in the chosen basis, must exercise the multi-sector path"), and the request to extend the plan's `Derivations` section before proceeding. The derivation itself is performed in `research`'s Derivational hypotheses step, not in implementation.

@ultimatile
ultimatile merged commit 1fe87ef into main Jul 24, 2026
2 checks passed
@ultimatile
ultimatile deleted the fix/research-step-numbering branch July 24, 2026 19:36
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.

research: renumber decimal top-level steps (3.4/3.5) to integers, name-key inbound cross-skill refs

2 participants