Skip to content

chore: Review and improve the editorial workflow#1391

Open
justinegeffen wants to merge 8 commits intomasterfrom
justine-editorial-improvements
Open

chore: Review and improve the editorial workflow#1391
justinegeffen wants to merge 8 commits intomasterfrom
justine-editorial-improvements

Conversation

@justinegeffen
Copy link
Copy Markdown
Contributor

@justinegeffen justinegeffen commented May 5, 2026

This PR includes improvements to the existing editorial workflow. The review can be run locally to test before merging. Use /editorial-review in Claude code.

@netlify
Copy link
Copy Markdown

netlify Bot commented May 5, 2026

Deploy Preview for seqera-docs ready!

Name Link
🔨 Latest commit 0f92062
🔍 Latest deploy log https://app.netlify.com/projects/seqera-docs/deploys/69fa47fc4650ec0008229db0
😎 Deploy Preview https://deploy-preview-1391--seqera-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@justinegeffen justinegeffen added 1. Editor review Needs a language review claude-code-assisted Vibe-coded but with human oversight and guidance. Must be validated by another human and co-pilot. labels May 5, 2026
justinegeffen and others added 4 commits May 5, 2026 21:15
Custom subagents declared in .claude/agents/ don't get tool access at
runtime in Claude Code 2.1.123 — they confabulate findings without ever
reading the file. Reported upstream as anthropics/claude-code#56398.

Routes Step 3 of the editorial-review skill through general-purpose with
the agent's body inlined as the system prompt, and adds two backstops:

- READ-PROOF requirement: agents must paste 3 verbatim line excerpts
  from their Read output before any findings.
- Verification gate (new Step 5): orchestrator drops any block whose
  ORIGINAL doesn't match the file at LINE, plus all blocks from agents
  that fail the READ-PROOF check.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
The previous collation rule silenced any lower-priority agent's fix
when a higher-priority agent flagged anything on the same line, even
when the two suggestions targeted different spans (e.g., voice-tone
fixing "Users can" while terminology fixed "Platform" elsewhere on
the same line). Because GitHub inline suggestions are full-line
replacements, the user could only apply one — silently losing the
other fix.

The orchestrator now attempts a textual merge first: if the agents
touched non-overlapping spans, combine both edits into a single
SUGGESTION. Only fall back to the priority rule when the spans
overlap and a real conflict exists.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Local /editorial-review previously dumped contract blocks to chat as
plain text — the user had to navigate to each line and apply by hand.
That's not "inline" in any meaningful sense.

Adds a new step at the end of local mode: after printing the verified
blocks, ask "Apply these N fixes via Edit? (yes / no / pick)". On yes,
iterate the blocks calling Edit for each — Claude Code's tool-permission
flow shows a per-edit diff to approve or reject. "pick" lets the user
select a subset by block number.

This delivers the inline-suggestion-style approve/reject UX locally
that CI gets via post-inline-suggestions.sh.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…rmission mode

The previous local-apply flow relied on Claude Code's per-Edit
tool-permission prompt to gate each fix. That doesn't work when
Claude Code is in acceptEdits mode: Edit calls auto-apply with no
prompt, silently bypassing the approve/reject step the user expects.

Move the gate into chat instead. For each block: print a compact
diff, ask "Apply this fix? (y / n / q)", and only call Edit on y.
Works regardless of Claude Code's permission mode.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1. Editor review Needs a language review claude-code-assisted Vibe-coded but with human oversight and guidance. Must be validated by another human and co-pilot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant