feat(agents): a defined agent works without the node user's own settings (M3, D1561) #331
All Vouch review confidence checks passed
Residual risk 0.30 = Change Risk (0.50) × (1 − Review Confidence (0.39)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.50 · 407 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 70% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.360
Shallow Review Depth
shallow_review_depth
0.344
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #331"
general
weight: 0.35
claude[bot]
What
M3's first L3 leak (
docs/plans/agents.md→ M3, D1561): a defined agent's runtime no longer loads the node machine user's own settings.AgentDefinition.userSettings(a team member's too, throughTeamMember): off when unset;agents.updatecanunsetit;AgentRecord.userSettingswhen set.TurnRequest.userSettings(agent.runtime@1.16, additive):jhin.agentssendscurrent.userSettings ?? falsefor every defined agent's turn. Runtimes as implicit agents (the owner's threads) send nothing and load everything as before.jhin.agent-claude:userSettings === false→settingSources: ["project", "local"](nouser), part of the launch key (D99). One spread inturn.ts, kept small and separate from W45's agent-claude work.Before (the L3 run): the crew's closing words and answers to asks came in Russian, from the owner's personal
~/.claude/CLAUDE.md.Evidence
The SDK's default when
settingSourcesis omitted is "all sources" (sdk.d.ts0.3.302: "When omitted, all sources are loaded (matches CLI defaults)"). A probe on this machine (claude-haiku-4-5,systemPrompt: claude_codepreset, cwd/tmp/m3-probe), asking which language its instructions name, whether a private CLAUDE.md/auto-memory is in context, and which skills it sees:Both ran signed in (the sign-in is not a setting source).
New tests:
leaves the node user's own settings out only when the turn says so (D1561)(agent-claude), and the defined agent's first turn request carriesuserSettings: false(agents).pnpm verify --affected: lint, typecheck, build and unit tests ran;Test Files 2 failed | 327 passed,Tests 3 failed | 3272 passed: three 5 s timeouts under load inplugins/preview/test/preview.test.ts(2) andplugins/source-control/test/setup.test.ts(1), files this change does not touch; rerun alone below. The E2E part was stopped locally (CI runs it).Rerun alone through the limiter:
The preview cases pass alone. The submodule case fails the same way on
origin/main(detached at624af51a):Error: Test timed out in 5000ms, so it is this machine, not this change.Other steps of
pnpm verify --affected:✓ check,✓ typecheck,✓ knip,✓ public-ids,✓ pack("ok: the packed CLI runs from node_modules; workspace manifests untouched";plugins/agent-fake/package.jsonnow providesagent.runtime1.16.0).🤖 Generated with Claude Code