Skip to content

refactor(cli): one owner for each rule, helper and adapter part after the merge wave - #1398

Merged
blafourcade merged 4 commits into
nextfrom
refactor/coherence-after-the-wave
Nov 26, 2026
Merged

blafourcade merged 4 commits into
nextfrom
refactor/coherence-after-the-wave

Conversation

@blafourcade

Copy link
Copy Markdown
Contributor

Summary

This is a coherence pass over everything merged since #1253. Three independent reviews (docs against code, duplicates across PRs, useless comments) found 60 points. All are fixed, with no behaviour change except the items listed below.

  • One owner for each duplicated rule, helper and adapter part.
    • Rule scope reading lives in markdown.ts.
    • The refusal is written once in parts/refuse.js.txt, and each host defines only its deny shape.
    • One shared flat MCP file artifact serves claude, cursor, copilot and the other flat contracts.
    • PLUGIN_MCP_RELATIVE lives in canon-paths.ts.
  • Behaviour fixes found on the way, each test-first:
    • A rule scoped by globs (not paths) lost its scope on no-frontmatter hosts. The red line was expected [] to strictly equal [ '**/*.ts' ].
    • host.continueTurn is now a no-op outside Stop on every adapter, so it behaves the same everywhere.
    • Cursor exports a refuse that refuses nothing, because no Cursor preToolUse payload has been captured. A host-neutral call no longer throws there.
  • Docs and memory match the code:
    • translate --provider writes the agents' models into the built tree only.
    • The OpenCode and Kilo limits are complete in docs/COMPATIBILITY.md.
    • The Kimi install steps state only what is confirmed.
  • Comments: probe logs, essays and restated code are removed from the touched files.
  • Goldens moved for comment text in generated templates only: framework-build, translate-install, and the opencode and kilo hooks-routes fixtures.

Tests: the full cli suite passes (10891) and so does the scripts suite (2767).

🤖 Generated with Claude Code

blafourcade and others added 4 commits November 26, 2026 12:03
…apter part

Docs now match the code for Kimi, Antigravity marketplace, translate
--provider and the hook tables. Matcher reading, rule scope, JSON parsing,
hook script placement, rules and flat MCP build artifacts, refuse, continue
turn and first-root parts each have one owner. Useless and probe-log
comments are removed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ter-the-wave

# Conflicts:
#	docs/COMPATIBILITY.md
@blafourcade
blafourcade marked this pull request as ready for review November 26, 2026 11:44
@blafourcade
blafourcade requested a review from a team as a code owner November 26, 2026 11:44
@blafourcade
blafourcade merged commit 31034ca into next Nov 26, 2026
4 checks passed
@blafourcade
blafourcade deleted the refactor/coherence-after-the-wave branch November 26, 2026 11:44
host: HOST,
event,
files: filesOf(event, writtenFiles(tool, input, cwd)),
files: filesOf(event, writtenFiles(tool, input, cwd, raw.tool_response)),
host: HOST,
event,
files: filesOf(event, writtenFiles(tool, input, cwd)),
files: filesOf(event, writtenFiles(tool, input, cwd, raw.tool_response)),
host: HOST,
event,
files: filesOf(event, writtenFiles(tool, input, cwd)),
files: filesOf(event, writtenFiles(tool, input, cwd, raw.tool_response)),
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.

2 participants