Skip to content

chore(process): harden agent handoff, ledger revalidation, and wins classifier - #1840

Merged
BigSimmo merged 15 commits into
mainfrom
codex/implement-process-safety-for-multi-agent-workflows
Aug 12, 2026
Merged

chore(process): harden agent handoff, ledger revalidation, and wins classifier#1840
BigSimmo merged 15 commits into
mainfrom
codex/implement-process-safety-for-multi-agent-workflows

Conversation

@BigSimmo

@BigSimmo BigSimmo commented Aug 12, 2026

Copy link
Copy Markdown
Owner

Motivation

  • Prevent concurrent-agent races that can silently overwrite branch tips and the outstanding-issues ledger by making pre-mutation revalidation and handoff checks explicit.

  • Ensure /issues-style answers and recommendations are revalidated against origin/main (avoid re-proposing closed rows from stale worktrees).

  • Provide a conservative, agent-safe “wins” classifier for surfaced quick tasks while preserving A1/operator precedence.

  • Reduce default broad-gate stacking at handoff and require a decisive proof line before declaring verification as passed.

Description

  • Add a ledger revalidation and reporting tool scripts/issues-report.mjs that prefers origin/main:docs/outstanding-issues.md, emits behind/ahead metadata, and exposes an optional --agent-safe-wins classifier and --json output.

  • Wire issues:report into package.json and add unit tests in tests/issues-report.test.ts.

  • Update the issues skill (.claude/.agents) to require using npm run issues:report for authoritative reads, to run the revalidation immediately before any mutation, and to refuse Update-branch-style flows for this file.

  • Harden handoff/handover/gates guidance to: use the verification-router (or gates) to pick one smallest sufficient gate, require the decisive proving output line (not just exit 0), record branch/HEAD before/after commit, and refuse masked push outputs; update .claude/skills/handoff/SKILL.md, .agents/skills/handover/SKILL.md, .claude/skills/gates/SKILL.md, and .claude/agents/verification-router.md.

  • Change workflow routing (scripts/productivity-core.mjs) to prefer a single fail-closed risk-routed PR gate (npm run verify:pr-local) for handoff paths and add explicit handoff-proof guidance in proof.

  • Add classifyAgentSafeWins filtering (conservative rules: ≤4h estimate, not Operator, and no provider/RAG/clinical/owner-decision tokens) and surface the wins in issues-report.

  • Add tests and assertions in tests/productivity-workflow.test.ts to check the new routing and proof guidance.

  • Use the existing ledger writer to archive and close the four listed outstanding-issues rows (**<sub><sub>![P1 Badge](https://img.shields.io/badge/P1-orange?style=flat)</sub></sub> Parse the JSON status RPC result before checking ok** #155, refactor: decompose ClinicalDashboard monolith (AuthPanel + answer-content, move-only) #202, test(eval): force-embedding flag + 10 vector-exercising golden cases #249, refactor: extract document-admin — completes ClinicalDashboard decomposition (move-only) #251) so the repository’s outstanding-issues state now reflects the implemented policies.

  • Touched files (key): scripts/issues-report.mjs, scripts/productivity-core.mjs, scripts/outstanding-issues.mjs (writer usage), package.json, .claude/skills/issues/SKILL.md, .claude/skills/handoff/SKILL.md, .claude/agents/verification-router.md, .claude/skills/gates/SKILL.md, .agents/skills/handover/SKILL.md, tests/issues-report.test.ts, tests/productivity-workflow.test.ts, and docs/outstanding-issues.md (archival rows and queue updates).

Testing

  • Ran the focused unit suites: npm exec vitest -- run tests/issues-report.test.ts tests/productivity-workflow.test.ts and the two test files passed (2 files, 27 tests total passed).

  • Verified ledger and writer contracts with npm run check:outstanding-issues, which reported the guard pass (unique ids, next-id > max, no merge driver).

  • Verified gate routing consistency with npm run check:gate-manifest, which reported all verify:cheap gates enforced in CI.

  • Ran npm run docs:check-scripts to ensure doc references resolve, and npm run format to format docs before commit; both passed.

  • Ran repository static checks used in handoff guidance: git diff --check and npm run docs:check-inventory / script inventory checks; no blocking issues remained.

  • Provider/live gates (Supabase/OpenAI/CI runs that touch remote providers) were intentionally not executed in cloud-only mode per constraints. No provider-backed operations, remote pushes, or PR creation were performed here.

If you want, I can open a PR with this branch or split the changes into smaller PRs (reporter/classifier vs handoff/gates) — tell me which split you prefer.


Codex Task

Summary by CodeRabbit

  • New Features

    • Added issue reporting with human-readable and JSON output.
    • Reports now include recommended work, priority blockers, agent-safe wins, and source validation details.
    • Added filtering for agent-safe issue opportunities.
  • Improvements

    • Improved handoff and verification reporting with clearer evidence, branch, commit, and push confirmation.
    • Streamlined verification by selecting the smallest applicable checks and avoiding redundant gates.
    • Updated issue documentation to reflect completed work and the current execution queue.
  • Documentation

    • Updated the scripts index and workflow guidance to reflect the new reporting command and procedures.

@coderabbitai

coderabbitai Bot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Review limit reached

You’ve reached a temporary PR review limit under our Fair Usage Limits Policy.

Your recent review volume is higher than typical usage, so adaptive limits are currently applied.

Next review available in: 29 minutes

Your organization has reached its usage spending cap. Adjust your spending cap in the billing tab.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: fd8b21fd-f643-4097-8885-7be17c7d4903

📥 Commits

Reviewing files that changed from the base of the PR and between a0c16df and 414a664.

📒 Files selected for processing (4)
  • .claude/skills/handoff/SKILL.md
  • docs/branch-review-ledger.md
  • docs/outstanding-issues.md
  • docs/scripts-index.md
📝 Walkthrough

Walkthrough

The PR strengthens verification and handoff evidence, adds authoritative issue reporting from origin/main, supports agent-safe issue views, and archives completed issue-ledger entries. It also adds the issues:report script and related tests.

Changes

Workflow hardening

Layer / File(s) Summary
Verification routing and handoff proof
.agents/skills/handover/SKILL.md, .claude/agents/verification-router.md, .claude/skills/gates/SKILL.md, .claude/skills/handoff/SKILL.md, scripts/productivity-core.mjs, tests/productivity-workflow.test.ts
Verification uses the smallest sufficient gate. UI changes run npm run ensure first. Handoff records decisive output and validates branch, commit, paths, index state, and remote HEAD.
Authoritative issue reporting
scripts/issues-report.mjs, package.json, tests/issues-report.test.ts, .claude/skills/issues/SKILL.md, AGENTS.md
The new report CLI reads cached origin/main ledger data, supports JSON and agent-safe output, classifies eligible queue items, and validates issue mutations.
Issue ledger and script index updates
docs/outstanding-issues.md, docs/scripts-index.md, docs/branch-review-ledger.md
Completed recommendations are removed from open queues, added to the resolved archive, review records are updated, and script counts are refreshed.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Sequence Diagram(s)

sequenceDiagram
  participant Agent
  participant IssuesSkill
  participant IssuesReport
  participant OriginMain
  Agent->>IssuesSkill: Request /issues or /issues agent-safe
  IssuesSkill->>IssuesReport: Run issues:report -- --json
  IssuesReport->>OriginMain: Load cached ledger
  OriginMain-->>IssuesReport: Return ledger and divergence metadata
  IssuesReport-->>IssuesSkill: Return counts, blockers, queue, and safe wins
  IssuesSkill-->>Agent: Present issue report
Loading
🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description covers motivation, scope, testing, and skipped provider operations, but omits the required Risk and rollout section for workflow and build changes. Add Risk, Rollback, and Provider or production effects entries, and map verification results to the repository template sections.
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main changes: stronger handoff controls, ledger revalidation, and agent-safe wins classification.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/implement-process-safety-for-multi-agent-workflows

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

@supabase

supabase Bot commented Aug 12, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project sjrfecxgysukkwxsowpy because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

Comment thread scripts/issues-report.mjs
@github-actions

github-actions Bot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

CI triage

CI failed on this PR. Automated classification of the 4 failed job(s):

  • Static PR checksneeds investigation: inspect the failing step and uploaded diagnostics; rerun only after classifying the cause.
  • Buildneeds investigation: inspect the failing step and uploaded diagnostics; rerun only after classifying the cause.
  • Container images / build-and-verifyneeds investigation: inspect the failing step and uploaded diagnostics; rerun only after classifying the cause.
  • PR requiredneeds investigation: inspect the failing step and uploaded diagnostics; rerun only after classifying the cause.

Compared with main CI run #9928 (cancelled).

Classification is evidence routing, not permission to ignore a failure. Exact quarantined Playwright identities remain governed by the flake ledger.

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d4a6ed940a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/issues-report.mjs Outdated
@BigSimmo

Copy link
Copy Markdown
Owner Author

@codex resolve actionable Codex review findings for this pull request and current head using the repository instructions. This is the pull request's single automatic repair pass: do not perform a fresh review, create new standalone findings, or request another review. Work only the existing unresolved Codex threads on the current head. The only repository destination is BigSimmo/Database, and the only branch destination is the pull request head branch codex/implement-process-safety-for-multi-agent-workflows at starting commit d4a6ed9; never publish fixes to a detached or synthetic work branch and never create a stacked pull request. Use the authenticated GitHub connector to commit each approved fix to BigSimmo/Database:codex/implement-process-safety-for-multi-agent-workflows, then verify that the pull request head contains the published commit before reporting success. Always fix P0 and P1 findings. For P2 and lower findings, fix only clear, scoped, low-risk issues; otherwise disposition them with a concise reason. For a fixed thread, reply with as the first line and as the second line. For a no-code disposition, use followed by . These result markers authorize the workflow to close that exact thread only after it verifies a fixed commit is the pull request head; a local-only commit is not a fix. If publication or verification fails, do not use either result marker, do not claim success, and leave the thread open with the blocker. If human input or new authorization is required, do the same. Finish only after every actionable thread is fixed or dispositioned and closed, or explicitly left open for a human decision. Do not update the branch from main, address unrelated reviews, broaden scope, or create more than one scoped fix commit. Do not use external APIs, paid services, credentials, dependency changes, or broad refactors unless explicitly authorized. Add targeted tests where behavior changes and run the narrowest relevant validation.

@chatgpt-codex-connector

Copy link
Copy Markdown

Summary

  • Expanded the agent-safe wins classifier to reject broader human-review wording, CI-uploaded or hosted-CI work, and real-device verification requirements. scripts/issues-report.mjsL55-L67
  • Added regression coverage for the exact approval-gated variants identified in issues #118, #242, and #253. tests/issues-report.test.tsL51-L70
  • Created scoped commit d762bcc313ab37163e81bfeef7597f7be80c4e8b on codex/implement-process-safety-for-multi-agent-workflows.
  • Publication is blocked: the configured GitHub remote has no usable credentials, and gh is not authenticated. Therefore, the commit could not be pushed, the PR head remains d4a6ed940a80225588b41ff7e7b9680bd91e24d8, and I did not post resolution markers or claim the review thread was resolved. No stacked pull request was created.

Testing

  • npm exec vitest -- run tests/issues-report.test.ts — 1 test file and 3 tests passed.
  • npm run format
  • git diff --check
  • git commit -m "fix(process): exclude approval-gated wins"
  • git push origin HEAD:codex/implement-process-safety-for-multi-agent-workflows — failed because Git could not obtain GitHub credentials.
  • ⚠️ gh auth status — GitHub CLI is installed but not authenticated.
  • ⚠️ git ls-remote origin refs/heads/codex/implement-process-safety-for-multi-agent-workflows — confirms the remote PR branch still points to the original head d4a6ed940a80225588b41ff7e7b9680bd91e24d8.

View task →

Copilot AI 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.

Pull request overview

Hardens agent handoff and issue-ledger workflows against stale state, concurrent edits, and misleading verification evidence.

Changes:

  • Adds revalidated issue reporting and agent-safe task classification.
  • Consolidates handoff verification around risk-routed gates and decisive proof.
  • Archives completed process-ledger items and adds focused tests.

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
scripts/issues-report.mjs Adds ledger reporting and wins classification.
scripts/productivity-core.mjs Revises verification and handoff routing.
package.json Registers issues:report.
tests/issues-report.test.ts Tests reporting and classification.
tests/productivity-workflow.test.ts Tests handoff routing and proof.
.claude/skills/issues/SKILL.md Requires revalidated ledger reads.
.claude/skills/handoff/SKILL.md Adds concurrency and push safeguards.
.claude/skills/gates/SKILL.md Clarifies minimal-gate evidence requirements.
.claude/agents/verification-router.md Refines verification selection guidance.
.agents/skills/handover/SKILL.md Aligns handover evidence guidance.
docs/outstanding-issues.md Archives completed process items.
docs/scripts-index.md Updates generated script counts.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread scripts/issues-report.mjs Outdated
Comment thread scripts/productivity-core.mjs
Comment thread .claude/skills/issues/SKILL.md Outdated
@BigSimmo

Copy link
Copy Markdown
Owner Author

@copilot Fix the code for all comments in this review thread.

When a review comment includes a suggested change, apply the suggestion exactly.

Do not make changes beyond what is described in the linked review thread.

…with issues:report

Co-authored-by: BigSimmo <87357024+BigSimmo@users.noreply.github.com>

Copilot AI commented Aug 12, 2026

Copy link
Copy Markdown
Contributor
...

Fixed in commit 06144a7. Three findings addressed:

  1. scripts/issues-report.mjs denylist — expanded the pattern to also block design-owner, do not close automatically, the decision is a human, not for agents, requires human, awaiting owner/human/operator, and operator decision. Added a regression test covering the #240-style (design-owner review) and #253-style (do not close automatically) phrases.

  2. scripts/productivity-core.mjs UI routebaseLocalChecks now detects risks.ui and returns npm run ensure (to start the verified app) followed by verify:pr-local with a note to add --extended when shared UI foundations changed. Non-UI paths are unchanged. Added a test verifying ensure precedes verify:pr-local for component changes.

  3. AGENTS.md conflict with SKILL.md — updated lines 875-877 to require npm run issues:report -- --json for authoritative reads instead of direct file access, aligning the root instruction with the skill's revalidation contract.

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

Actionable comments posted: 3

🤖 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 @.claude/skills/handoff/SKILL.md:
- Around line 24-26: Update the handoff procedure around the branch/HEAD checks
to also record the cached index path/state before staging and compare it
immediately before committing. Stop on any index difference, and remove or
revise the unconditional git restore --staged behavior so unrelated staged,
unstaged, and untracked work is preserved.

In `@scripts/issues-report.mjs`:
- Around line 100-102: Update the origin/main fallback in
scripts/issues-report.mjs (lines 100-102) to label the source as cached and set
revalidated to false unless an explicitly confirmed remote refresh succeeded.
Update .claude/skills/issues/SKILL.md (lines 12-16) to state that the command
reads cached origin/main data unless an approved refresh occurred. Update
AGENTS.md (lines 875-877) to remove the claim that this command alone provides
an authoritative revalidated remote read, while preserving the requirement for
explicit user confirmation before provider-backed workflows.

In `@scripts/productivity-core.mjs`:
- Around line 109-115: Update the UI-change plan generation near the existing
npm run ensure and npm run verify:pr-local checks to emit the selected affected
journey between them, using the planner’s existing journey-selection logic.
Extend the related assertions in productivity-workflow.test.ts to verify the
journey appears in that order before the PR-local gate.
🪄 Autofix

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: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 41cac0ff-5ee9-4ced-9504-69eabd01a7c8

📥 Commits

Reviewing files that changed from the base of the PR and between a73dccf and 06144a7.

📒 Files selected for processing (13)
  • .agents/skills/handover/SKILL.md
  • .claude/agents/verification-router.md
  • .claude/skills/gates/SKILL.md
  • .claude/skills/handoff/SKILL.md
  • .claude/skills/issues/SKILL.md
  • AGENTS.md
  • docs/outstanding-issues.md
  • docs/scripts-index.md
  • package.json
  • scripts/issues-report.mjs
  • scripts/productivity-core.mjs
  • tests/issues-report.test.ts
  • tests/productivity-workflow.test.ts

Comment thread .claude/skills/handoff/SKILL.md Outdated
Comment thread scripts/issues-report.mjs Outdated
Comment thread scripts/productivity-core.mjs
BigSimmo pushed a commit that referenced this pull request Aug 12, 2026
Checked all 12 open PRs and mapped them to ledger rows. Twenty-four open rows
are actively being fixed right now — #1835 (7 rows), #1840 (4), #1842 (6),
#1841 (4), #1836 (2), #1837 (1), #1839 (1) — and none of those rows said so.

This is the #292 failure mode with the safety off: a queued row that reads as
unclaimed while a PR is open against it is how the same conversion shipped
twice on 2026-08-09. Each row now names its PR and says not to start until
that PR merges.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017paT42ZVMf8jaLtkjFxdy5
@BigSimmo
BigSimmo enabled auto-merge August 12, 2026 14:41

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

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (2)
.claude/skills/handoff/SKILL.md (2)

53-55: 🔒 Security & Privacy | 🟠 Major | ⚡ Quick win

Require confirmation before pushing.

Line 53 authorizes git push without an explicit confirmation gate. Add push and PR creation to the explicit-confirmation section, or require confirmation immediately before Step 5.

As per coding guidelines, “Never access OpenAI, Supabase, GitHub/GitLab, hosted CI, or other provider-backed workflows without explicit user confirmation.”

🤖 Prompt for 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.

In @.claude/skills/handoff/SKILL.md around lines 53 - 55, Update the handoff
instructions around Step 5 so pushing the feature branch requires explicit user
confirmation immediately beforehand; also include pull request creation in the
explicit-confirmation requirements. Preserve the existing push-status
verification instructions after confirmation.

Source: Coding guidelines


53-55: 🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

Require an exact remote branch-ref check.

If the check uses git ls-remote origin <branch>, Git can return both refs/heads/<branch> and refs/tags/<branch> with different SHAs. Use a quoted refs/heads/<branch> pattern, require one result, and compare its SHA with git rev-parse HEAD before reporting success.

🤖 Prompt for 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.

In @.claude/skills/handoff/SKILL.md around lines 53 - 55, Update the Push
instructions to verify the exact remote branch ref using a quoted
refs/heads/<branch> pattern with git ls-remote, require exactly one matching
result, and compare its SHA against git rev-parse HEAD before reporting success.
Preserve the existing prohibition on masking push status.
🧹 Nitpick comments (1)
tests/issues-report.test.ts (1)

153-156: 🗄️ Data Integrity & Integration | 🔵 Trivial | ⚡ Quick win

Add a regression test for an unavailable origin/main ledger.

tryGit() returns undefined when git show fails. Assert the worktree source and unavailable-ref warning after deleting the ref.

🤖 Prompt for 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.

In `@tests/issues-report.test.ts` around lines 153 - 156, Extend the ledger test
around loadRevalidatedLedger to delete the origin/main ref before loading, then
assert that source.worktree is selected and source.warning reports the
unavailable local remote-tracking ref. Preserve the existing cached-ledger
assertions for the current scenario and specifically cover the tryGit()
undefined path.

Source: Learnings

🤖 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 @.claude/skills/handoff/SKILL.md:
- Around line 21-30: Update the handoff procedure around the pre-staging
snapshot to record worktree content and untracked state for every intended path,
in addition to cached index entries. Immediately before staging, compare those
snapshots and stop or switch to an isolated worktree if any intended path was
modified, added, or removed; preserve all existing staged, unstaged, and
untracked user work.

---

Outside diff comments:
In @.claude/skills/handoff/SKILL.md:
- Around line 53-55: Update the handoff instructions around Step 5 so pushing
the feature branch requires explicit user confirmation immediately beforehand;
also include pull request creation in the explicit-confirmation requirements.
Preserve the existing push-status verification instructions after confirmation.
- Around line 53-55: Update the Push instructions to verify the exact remote
branch ref using a quoted refs/heads/<branch> pattern with git ls-remote,
require exactly one matching result, and compare its SHA against git rev-parse
HEAD before reporting success. Preserve the existing prohibition on masking push
status.

---

Nitpick comments:
In `@tests/issues-report.test.ts`:
- Around line 153-156: Extend the ledger test around loadRevalidatedLedger to
delete the origin/main ref before loading, then assert that source.worktree is
selected and source.warning reports the unavailable local remote-tracking ref.
Preserve the existing cached-ledger assertions for the current scenario and
specifically cover the tryGit() undefined path.
🪄 Autofix

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: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 5805e83d-96d6-4e92-8b9d-512ee6d2f330

📥 Commits

Reviewing files that changed from the base of the PR and between 06144a7 and a0c16df.

📒 Files selected for processing (9)
  • .claude/skills/handoff/SKILL.md
  • .claude/skills/issues/SKILL.md
  • AGENTS.md
  • docs/branch-review-ledger.md
  • docs/outstanding-issues.md
  • scripts/issues-report.mjs
  • scripts/productivity-core.mjs
  • tests/issues-report.test.ts
  • tests/productivity-workflow.test.ts
💤 Files with no reviewable changes (1)
  • docs/outstanding-issues.md
🚧 Files skipped from review as they are similar to previous changes (5)
  • tests/productivity-workflow.test.ts
  • AGENTS.md
  • scripts/productivity-core.mjs
  • .claude/skills/issues/SKILL.md
  • scripts/issues-report.mjs

Comment thread .claude/skills/handoff/SKILL.md
@BigSimmo
BigSimmo merged commit 57e8931 into main Aug 12, 2026
24 checks passed
@BigSimmo
BigSimmo deleted the codex/implement-process-safety-for-multi-agent-workflows branch August 12, 2026 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants