mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8774] [MERGED] fix(ci): keep the head's Claude Code configuration out of Dottore repairs #8796
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#8796
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8774
Author: @SpicyMarinara
Created: 11/3/2026
Status: ✅ Merged
Merged: 11/3/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/hardening-dottore-autofix-settings📝 Commits (1)
5ef120ffix(ci): keep the head's Claude Code configuration out of Dottore repairs📊 Changes
3 files changed (+101 additions, -4 deletions)
View changed files
📝
.github/dottore-review/README.md(+3 -3)📝
.github/workflows/dottore-review.yml(+5 -1)➕
scripts/regressions/dottore-repair-isolation.regression.mjs(+93 -0)📄 Description
Linked issue
Closes #8769
Why this change
The Dottore repair job runs Claude Code in the pull request's own checkout, with the small model's API key in that step's environment. In print mode Claude Code skips the workspace trust prompt, so it loaded any Claude Code project settings, hooks and MCP configuration the head contained.
--allowedToolsonly pre-approved the file tools; it did not remove the other tools. So the documented boundary (only file tools, no shell, no GitHub write token) depended on what the head contained. This hardening makes that boundary independent of the head. No linked issue exists yet: one should be opened, or the description should say why there is none, before the PR is submitted.What changed
autofix.validatestep now runs on a tree without the head's .claude and .mcp.json; neither Engine nor Marinara-Agents tracks those files.--setting-sources user,--strict-mcp-config,--settings '{"disableAllHooks":true}'and--tools "Read,Edit,Write,Grep,Glob". The pinned 2.1.295 supports all four.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
autofix.validatestill passes.--setting-sources,--strict-mcp-config,--settingsand--toolsstill exist and behave the same. The regression checks only the arguments, not the CLI's behaviour.Agent-run checks (for reference; each regression was shown to fail without its fix):
git fetch --dry-run; git rev-parse origin/staging; git status: origin/staging is stillaed5e3578dand the branch is 1 commit ahead. The working tree is clean.gh api repos/Pasta-Devs/Marinara-Agents/contents/.github/workflows/dottore-review.yml?ref=staging (read-only) + git show 5b19d45dc1:.github/workflows/dottore-re: Confirmed. Agents pins Engine@5b19d45dc1 and passes DOTTORE_SMALL_API_KEY. That commit's repair step has only --allowedTools, so the reviewer's issue 1 holds.node ./scripts/pnpm-runner.mjs build:shared: succeedednode ./scripts/run-regressions.mjs --filter dottore: 8/8 passedWorkflow replaced with origin/staging's copy; node ./scripts/run-regressions.mjs --filter dottore-repair-isolation; fixed workflow restored and re-run: FAILED without the fix (visible ['.claude', '.mcp.json']) and PASSED (1/1) with it. git status is clean afterwards.node_modules/.bin/prettier --check scripts/regressions/dottore-repair-isolation.regression.mjs .github/workflows/dottore-review.yml: cleangit diff --check origin/staging: cleanruby -ryaml load of dottore-review.yml: parsesEarlier round: probe of the pinned @anthropic-ai/claude-code 2.1.295 against a local stub API, with old and new flags: With the new flags no hook ran, no MCP server started, and the tools offered were exactly Edit, Glob, Grep, Read and Write. The reviewer confirmed this independently.TypeScript type-check / pnpm check / pnpm localization:check / eslint: Not run: no package source, TypeScript or client copy changed, and no ESLint config covers scripts/regressions or .github.Independent adversarial review: changes, 2 issue(s), all addressed in a fix-up pass.
Known limits and risks:
The CLI checks ran against the pinned 2.1.295 on macOS arm64 and by inspecting strings in the linux-x64 build, not on the Actions runner itself. Marinara-Agents runs this workflow pinned to an older Engine commit, so its repairs get this boundary only after its pin is bumped (listed as a follow-up). Further hardening of the repair step is tracked separately. CLAUDE_CODE_SUBPROCESS_ENV_SCRUB was left unset on purpose: in 2.1.295 it changes the permission mode and turns on a subprocess sandbox, and neither effect has been checked for this job. Outside this PR: the relayed request to lower the Otome Hearth outfit show-off affection from +20 to +5 belongs to the otome-forge package in Marinara-Agents, not to this Engine worktree. It was not handled in this step and still needs its own change there.
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.