Executive summary
The system holds an adequate overall standing of 55%, reflecting a large, valuable asset that is workable but carries significant structural risk. With nearly half a million lines of production code and a rebuild cost of approximately €760,000, the business has substantial value tied up here. While the team has achieved strong maturity in documentation and operational practices, the architecture is fragile. This imbalance means that while the system is currently stable, it is vulnerable to high costs and delays when changes are required, as the underlying structure does not support easy evolution.
The primary risk is architectural fragility. The architecture score of 51% indicates that changes ripple unpredictably through the codebase, increasing the likelihood of defects and slowing down delivery. This is the most critical area to address because it directly impacts the speed and cost of future development. Without intervention, the team will face increasing technical debt that erodes the value of the existing investment, making simple updates expensive and risky.
A secondary concern is the lack of modularity, which creates tight coupling between components. This forces teams to coordinate closely for even minor changes, reducing agility and increasing the chance of regression errors. The current structure relies on implicit dependencies rather than clear contracts, which hinders independent team progress and makes the system harder to scale or modify without breaking other parts.
On the positive side, the codebase is clean of boilerplate and has strong operational readiness, with good security and maturity scores. This suggests the team has disciplined processes for testing and deployment, which provides a solid foundation for improvement. The high maturity score also indicates that new engineers can onboard effectively, reducing the risk associated with staff turnover.
The highest-leverage action is to break circular dependencies by extracting shared logic into independent modules. This single step will immediately reduce coupling, improve testability, and lower the cost of future changes. Focusing here first will yield the fastest return on investment by stabilizing the architecture and enabling faster, safer delivery of new features. The picture is partial, as some areas like performance and domain modeling were not measured, but the architectural risks are clear and actionable.
Raise Architecture 51 → 70 (the Healthy floor) ⇒ headline 55 → ~59.
New since the last scan (100+)
- D8 · Coverage not measured — JavaScript/TypeScript suite
- D10 · No assertions: has no unguarded join(homedir(), ".claude") in runtime TypeScript src/__tests__/setup-contracts-regression.test.ts
- D10 · No assertions: has no $HOME/.claude without ${CLAUDE_CONFIG_DIR:-...} guard in scripts src/__tests__/setup-contracts-regression.test.ts
- D10 · No assertions: preflights jq before setup files use it for JSON mutation src/__tests__/setup-contracts-regression.test.ts
- D10 · No assertions: does not redirect jq output directly to live setup config/settings files src/__tests__/setup-contracts-regression.test.ts
- D10 · No assertions: has no join(__dirname, ...) outside getPackageDir() in installer src/__tests__/setup-contracts-regression.test.ts
- D10 · No assertions: getHooksSettingsConfig() produces no absolute node paths (default config) src/__tests__/setup-contracts-regression.test.ts
- D10 · No assertions: agents/*.md have no unguarded ~/.claude references src/__tests__/setup-contracts-regression.test.ts
- D10 · No assertions: docs/CLAUDE.md (the installed template) has no unguarded ~/.claude references src/__tests__/setup-contracts-regression.test.ts
- D10 · No assertions: all hook commands reference ${CLAUDE_PLUGIN_ROOT} src/__tests__/setup-contracts-regression.test.ts
- D10 · No assertions: source hook commands do not hardcode /bin/sh so native Windows can spawn them src/__tests__/setup-contracts-regression.test.ts
- D10 · No assertions: source hook commands use direct node run.cjs without sh/find-node bootstraps src/__tests__/setup-contracts-regression.test.ts
- D10 · No assertions: no hook command contains an absolute node binary path src/__tests__/setup-contracts-regression.test.ts
- D10 · No assertions: should have no duplicate extension mappings across servers src/__tests__/lsp-servers.test.ts
- D10 · No assertions: triggers the dynamic import when OMC_OPENCLAW === '1' src/hooks/__tests__/bridge-openclaw.test.ts
- D10 · No assertions: passes context fields through to wakeOpenClaw src/hooks/__tests__/bridge-openclaw.test.ts
- D10 · No assertions: no command contains an absolute path to a node binary src/installer/__tests__/hook-command-portability.test.ts
- D10 · No assertions: no command contains a hardcoded home directory path src/installer/__tests__/hook-command-portability.test.ts
- D10 · No assertions: has no duplicate tool names src/mcp/__tests__/standalone-listtools.test.ts
- D10 · No assertions: uses default interval of 3000ms when no opts provided src/team/__tests__/worker-commit-cadence.test.ts
- D10 · No assertions: generated overlay rejects all disallowed control bytes (NUL, BEL, BS, etc.) src/team/__tests__/worker-bootstrap.test.ts
- D10 · No assertions: allows unset OMC_RUNTIME_V2 because runtime v2 is default-on src/team/__tests__/merge-orchestrator.test.ts
- D10 · No assertions: no-op for nonexistent team src/team/__tests__/heartbeat.test.ts
- D10 · No assertions: does nothing if log does not exist src/team/__tests__/audit-log.test.ts
- D10 · No assertions: keeps every scenario decidable: expected actions or human questions, never silence tests/harbor-scenarios.test.ts
- D10 · No assertions: constrains states and forbidden actions to the declared vocabulary tests/harbor-scenarios.test.ts
- D10 · No assertions: requires evidence-carrying sheets: every human question names its ship and decision tests/harbor-scenarios.test.ts
- D10 · No assertions: keeps all Team state examples session-scoped tests/lint/team-resume-contract.test.ts
- D15 · Hotspot: src/team/runtime-v2.ts src/team/runtime-v2.ts
- D15 · Hotspot: templates/hooks/pre-tool-use.mjs templates/hooks/pre-tool-use.mjs
- D15 · Hotspot: src/team/scaling.ts src/team/scaling.ts
- D15 · Hotspot: scripts/run.cjs scripts/run.cjs
- D15 · Hotspot: src/team/worker-launch-ack.ts src/team/worker-launch-ack.ts
- D15 · Hotspot: src/features/lookout/command-parser.ts src/features/lookout/command-parser.ts
- D15 · Hotspot: scripts/verify-epic-3698-closure.mjs scripts/verify-epic-3698-closure.mjs
- D15 · Hotspot: scripts/session-start.mjs scripts/session-start.mjs
- D15 · Hotspot: src/hooks/persistent-mode/index.ts src/hooks/persistent-mode/index.ts
- D15 · Hotspot: src/team/tmux-session.ts src/team/tmux-session.ts
- D15 · Hotspot: scripts/persistent-mode.mjs scripts/persistent-mode.mjs
- D15 · Hotspot: src/features/lookout/index.ts src/features/lookout/index.ts
- D15 · Hotspot: REDACTED REDACTED
- D15 · Hotspot: src/team/api-interop.ts src/team/api-interop.ts
- D15 · Hotspot: src/lib/worktree-paths.ts src/lib/worktree-paths.ts
- D15 · Hotspot: src/installer/index.ts src/installer/index.ts
- D15 · Hotspot: REDACTED REDACTED
- D15 · Hotspot: src/hooks/pre-compact/restore.ts src/hooks/pre-compact/restore.ts
- D15 · Hotspot: templates/hooks/persistent-mode.mjs templates/hooks/persistent-mode.mjs
- D15 · Hotspot: src/hooks/bridge.ts src/hooks/bridge.ts
- D15 · Hotspot: scripts/keyword-detector.mjs scripts/keyword-detector.mjs
- D15 · Hotspot: scripts/lib/precompact-restore.mjs scripts/lib/precompact-restore.mjs
- D15 · Hotspot: templates/hooks/lib/precompact-restore.mjs templates/hooks/lib/precompact-restore.mjs
- D15 · Hotspot: templates/hooks/keyword-detector.mjs templates/hooks/keyword-detector.mjs
- D15 · Hotspot: REDACTED REDACTED
- D15 · Hotspot: REDACTED REDACTED
- D15 · Hotspot: src/tools/state-tools.ts src/tools/state-tools.ts
- D15 · Hotspot: src/team/monitor.ts src/team/monitor.ts
- D15 · Hotspot: src/team/runtime.ts src/team/runtime.ts
- D15 · Hotspot: src/graph/runtime/runner.ts src/graph/runtime/runner.ts
- D15 · Hotspot: src/team/team-ops.ts src/team/team-ops.ts
- D15 · Hotspot: src/hud/usage-api.ts src/hud/usage-api.ts
- D15 · Hotspot: scripts/post-tool-verifier.mjs scripts/post-tool-verifier.mjs
- D15 · Hotspot: scripts/generate-inventory-graph.mjs scripts/generate-inventory-graph.mjs
- D15 · Hotspot: src/team/runtime-cli.ts src/team/runtime-cli.ts
- D15 · Hotspot: src/hooks/ralph/prd.ts src/hooks/ralph/prd.ts
- D15 · Hotspot: src/hooks/mode-registry/index.ts src/hooks/mode-registry/index.ts
- D15 · Hotspot: src/hooks/session-end/index.ts src/hooks/session-end/index.ts
- D15 · Hotspot: src/hud/index.ts src/hud/index.ts
- D15 · Hotspot: src/hooks/auto-slash-command/live-data.ts src/hooks/auto-slash-command/live-data.ts
- D15 · Hotspot: REDACTED REDACTED
- D15 · Hotspot: scripts/lib/state-lock.mjs scripts/lib/state-lock.mjs
- D15 · Hotspot: src/config/loader.ts src/config/loader.ts
- D15 · Hotspot: src/team/worker-activation-gate.ts src/team/worker-activation-gate.ts
- D15 · Hotspot: src/team/cli-worker-contract.ts src/team/cli-worker-contract.ts
- D15 · Hotspot: src/utils/frontmatter.ts src/utils/frontmatter.ts
- D15 · Hotspot: src/hooks/subagent-tracker/session-replay.ts src/hooks/subagent-tracker/session-replay.ts
- D15 · Hotspot: src/lib/atomic-write.ts src/lib/atomic-write.ts
- D15 · Hotspot: REDACTED REDACTED
- D15 · Hotspot: REDACTED REDACTED
- D15 · Hotspot: scripts/release-boundary.mjs scripts/release-boundary.mjs
- D15 · Hotspot: scripts/collect-epic-3698-ci-evidence.mjs scripts/collect-epic-3698-ci-evidence.mjs
- D15 · Hotspot: src/graph/runtime/safe-fs.ts src/graph/runtime/safe-fs.ts
- D15 · Hotspot: REDACTED REDACTED
- D15 · Hotspot: src/team/state/tasks.ts src/team/state/tasks.ts
- D15 · Hotspot: src/features/lookout/test-artifact-parser.ts src/features/lookout/test-artifact-parser.ts
- D15 · Hotspot: src/team/merge-orchestrator.ts src/team/merge-orchestrator.ts
- D15 · Hotspot: scripts/verify-generated-artifact-authorization.mjs scripts/verify-generated-artifact-authorization.mjs
- D15 · Hotspot: src/hud/transcript.ts src/hud/transcript.ts
- D15 · Hotspot: src/installer/claude-md-transaction.ts src/installer/claude-md-transaction.ts
- D15 · Hotspot: src/team/types.ts src/team/types.ts
- D15 · Hotspot: scripts/workflow-drift-guard.mjs scripts/workflow-drift-guard.mjs
- D15 · Hotspot: templates/hooks/workflow-drift-guard.mjs templates/hooks/workflow-drift-guard.mjs
- D15 · Hotspot: src/graph/runtime/store.ts src/graph/runtime/store.ts
- D15 · Hotspot: src/graph/runtime/fence.ts src/graph/runtime/fence.ts
- D15 · Hotspot: src/hooks/subagent-tracker/index.ts src/hooks/subagent-tracker/index.ts
- D15 · Hotspot: src/cli/commands/doctor-conflicts.ts src/cli/commands/doctor-conflicts.ts
- D15 · Hotspot: src/cli/launch.ts src/cli/launch.ts
- D15 · Hotspot: src/graph/runtime/journal.ts src/graph/runtime/journal.ts
- D15 · Hotspot: src/utils/paths.ts src/utils/paths.ts
- D15 · Hotspot: src/tools/lsp/client.ts src/tools/lsp/client.ts
- D15 · Hotspot: src/hooks/session-end/worker.ts src/hooks/session-end/worker.ts
Rebuild cost & value ~ Modeled — €250,000–€1,300,000
| Cost to rebuild | €250,000–€1,300,000 |
|---|---|
| Domain complexity | Standard |
| Quality factor | 0.8× (at 55% quality) |
| Size & shape | Large · effort split not classified (source measured from disk; the effort-tier breakdown is a C#-only syntax walk) |
This codebase represents roughly ~5.2 person-years of build effort (about ~€760,000 to rebuild). Its weakest lens is Architecture at 51% — the part of that asset most exposed by the findings below.
Top priorities
Diagnosis — what's actually going on
Architecture — module dependency matrix
| depends on → | 1 src.autoresearch.contracts | 2 src.features.agent-addressability | 3 src.features.auto-update | 4 src.features.background-agent.types | 5 src.graph.runtime.run-dir | 6 src.graph.types | 7 src.hooks.autopilot.types | 8 src.hooks.ralph | 9 src.hooks.team-dispatch-hook | 10 src.hud.types | 11 src.lib | 12 src.notifications | 13 src.providers.types | 14 src.shared.artifact-descriptor | 15 src.shared.types | 16 src.team.model-contract | 17 src.tools.python-repl | 18 benchmarks.shared.types | 19 src | 20 src.agents | 21 src.autoresearch | 22 src.cli | 23 src.cli.commands | 24 src.features | 25 src.graph.runtime.types | 26 src.hooks | 27 src.hooks.jev | 28 src.hooks.learner | 29 src.hooks.session-end | 30 src.hud | 31 src.hud.elements | 32 src.mcp | 33 src.team.types | 34 src.tools | 35 benchmarks.harsh-critic.scoring.types | 36 src.graph.runtime | 37 src.hooks.autopilot | 38 src.team.tmux-session | 39 src.team.runtime-v2 | 40 src.team |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 src.autoresearch.contracts | ||||||||||||||||||||||||||||||||||||||||
| 2 src.features.agent-addressability | ||||||||||||||||||||||||||||||||||||||||
| 3 src.features.auto-update | ||||||||||||||||||||||||||||||||||||||||
| 4 src.features.background-agent.types | ||||||||||||||||||||||||||||||||||||||||
| 5 src.graph.runtime.run-dir | ||||||||||||||||||||||||||||||||||||||||
| 6 src.graph.types | ||||||||||||||||||||||||||||||||||||||||
| 7 src.hooks.autopilot.types | ||||||||||||||||||||||||||||||||||||||||
| 8 src.hooks.ralph | ||||||||||||||||||||||||||||||||||||||||
| 9 src.hooks.team-dispatch-hook | ||||||||||||||||||||||||||||||||||||||||
| 10 src.hud.types | ||||||||||||||||||||||||||||||||||||||||
| 11 src.lib | ||||||||||||||||||||||||||||||||||||||||
| 12 src.notifications | ||||||||||||||||||||||||||||||||||||||||
| 13 src.providers.types | ||||||||||||||||||||||||||||||||||||||||
| 14 src.shared.artifact-descriptor | ||||||||||||||||||||||||||||||||||||||||
| 15 src.shared.types | ||||||||||||||||||||||||||||||||||||||||
| 16 src.team.model-contract | ||||||||||||||||||||||||||||||||||||||||
| 17 src.tools.python-repl | ||||||||||||||||||||||||||||||||||||||||
| 18 benchmarks.shared.types | 2 | |||||||||||||||||||||||||||||||||||||||
| 19 src | 2 | |||||||||||||||||||||||||||||||||||||||
| 20 src.agents | 2 | |||||||||||||||||||||||||||||||||||||||
| 21 src.autoresearch | 5 | |||||||||||||||||||||||||||||||||||||||
| 22 src.cli | 1 | |||||||||||||||||||||||||||||||||||||||
| 23 src.cli.commands | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 24 src.features | 5 | 9 | 3 | |||||||||||||||||||||||||||||||||||||
| 25 src.graph.runtime.types | 3 | |||||||||||||||||||||||||||||||||||||||
| 26 src.hooks | 6 | 1 | ||||||||||||||||||||||||||||||||||||||
| 27 src.hooks.jev | 2 | |||||||||||||||||||||||||||||||||||||||
| 28 src.hooks.learner | 1 | |||||||||||||||||||||||||||||||||||||||
| 29 src.hooks.session-end | 3 | |||||||||||||||||||||||||||||||||||||||
| 30 src.hud | 1 | 14 | ||||||||||||||||||||||||||||||||||||||
| 31 src.hud.elements | 19 | |||||||||||||||||||||||||||||||||||||||
| 32 src.mcp | 1 | |||||||||||||||||||||||||||||||||||||||
| 33 src.team.types | 2 | |||||||||||||||||||||||||||||||||||||||
| 34 src.tools | 1 | |||||||||||||||||||||||||||||||||||||||
| 35 benchmarks.harsh-critic.scoring.types | 9 | |||||||||||||||||||||||||||||||||||||||
| 36 src.graph.runtime | 3 | 3 | 9 | |||||||||||||||||||||||||||||||||||||
| 37 src.hooks.autopilot | 14 | 1 | ||||||||||||||||||||||||||||||||||||||
| 38 src.team.tmux-session | 3 | 8 | ||||||||||||||||||||||||||||||||||||||
| 39 src.team.runtime-v2 | 1 | 1 | 3 | 4 | 2 | |||||||||||||||||||||||||||||||||||
| 40 src.team | 10 | 4 | 9 | 70 | 28 | 15 |
18→35 benchmarks.shared.types depends on benchmarks.harsh-critic.scoring.types cycle✕
- Type pairs
- 2 distinct (type in benchmarks.shared.types → type in benchmarks.harsh-critic.scoring.types) references.
- Which types
benchmarks.shared.types.ComparisonReport→benchmarks.harsh-critic.scoring.types.AgentTypebenchmarks.shared.types.FixtureResultBase→benchmarks.harsh-critic.scoring.types.AgentType
- Direction
- benchmarks.shared.types uses benchmarks.harsh-critic.scoring.types. Changing benchmarks.harsh-critic.scoring.types can break benchmarks.shared.types, not the reverse.
- Position
- Above the diagonal — a cycle. Neither module can be changed, tested or deployed independently until one of these dependencies goes.
19→15 src depends on src.shared.types✕
- Type pairs
- 2 distinct (type in src → type in src.shared.types) references.
- Which types
src.OmcOptions→src.shared.types.PluginConfigsrc.OmcSession→src.shared.types.PluginConfig
- Direction
- src uses src.shared.types. Changing src.shared.types can break src, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
20→15 src.agents depends on src.shared.types✕
- Type pairs
- 2 distinct (type in src.agents → type in src.shared.types) references.
- Which types
src.agents.definitions→src.shared.types.PluginConfigsrc.agents.types→src.shared.types.ModelType
- Direction
- src.agents uses src.shared.types. Changing src.shared.types can break src.agents, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
21→1 src.autoresearch depends on src.autoresearch.contracts✕
- Type pairs
- 5 distinct (type in src.autoresearch → type in src.autoresearch.contracts) references.
- Which types
src.autoresearch.contracts→src.autoresearch.contracts.AutoresearchEvaluatorResultsrc.autoresearch.contracts→src.autoresearch.contracts.AutoresearchMissionContractsrc.autoresearch.contracts→src.autoresearch.contracts.ParsedSandboxContractsrc.autoresearch.runtime→src.autoresearch.contracts.AutoresearchMissionContractsrc.autoresearch.setup-contract→src.autoresearch.contracts.AutoresearchKeepPolicy
- Direction
- src.autoresearch uses src.autoresearch.contracts. Changing src.autoresearch.contracts can break src.autoresearch, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
22→1 src.cli depends on src.autoresearch.contracts✕
- Type pairs
- 1 distinct (type in src.cli → type in src.autoresearch.contracts) reference.
- Which types
src.cli.autoresearch-intake→src.autoresearch.contracts.AutoresearchKeepPolicy
- Direction
- src.cli uses src.autoresearch.contracts. Changing src.autoresearch.contracts can break src.cli, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
23→13 src.cli.commands depends on src.providers.types✕
- Type pairs
- 1 distinct (type in src.cli.commands → type in src.providers.types) reference.
- Which types
src.cli.commands.teleport→src.providers.types.GitProvider
- Direction
- src.cli.commands uses src.providers.types. Changing src.providers.types can break src.cli.commands, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
23→15 src.cli.commands depends on src.shared.types✕
- Type pairs
- 1 distinct (type in src.cli.commands → type in src.shared.types) reference.
- Which types
src.cli.commands.doctor-team-routing→src.shared.types.TeamRoleProvider
- Direction
- src.cli.commands uses src.shared.types. Changing src.shared.types can break src.cli.commands, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
24→2 src.features depends on src.features.agent-addressability✕
- Type pairs
- 5 distinct (type in src.features → type in src.features.agent-addressability) references.
- Which types
src.features.index→src.features.agent-addressability.AddressableAgentsrc.features.index→src.features.agent-addressability.FormatAgentListOptionssrc.features.index→src.features.agent-addressability.ResolveResultsrc.features.jev-model-routing→src.features.agent-addressability.ResolveResultsrc.features.jev-slop-warning→src.features.agent-addressability.ResolveResult
- Direction
- src.features uses src.features.agent-addressability. Changing src.features.agent-addressability can break src.features, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
24→3 src.features depends on src.features.auto-update✕
- Type pairs
- 9 distinct (type in src.features → type in src.features.auto-update) references.
- Which types
src.features.auto-update→src.features.auto-update.GlobalClaudeCodeInstallsrc.features.auto-update→src.features.auto-update.OMCConfigsrc.features.auto-update→src.features.auto-update.ReleaseInfosrc.features.auto-update→src.features.auto-update.SilentUpdateConfigsrc.features.auto-update→src.features.auto-update.SilentUpdateStatesrc.features.auto-update→src.features.auto-update.UpdateCheckResultsrc.features.auto-update→src.features.auto-update.UpdateReconcileResultsrc.features.auto-update→src.features.auto-update.UpdateResultsrc.features.auto-update→src.features.auto-update.VersionMetadata
- Direction
- src.features uses src.features.auto-update. Changing src.features.auto-update can break src.features, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
24→15 src.features depends on src.shared.types✕
- Type pairs
- 3 distinct (type in src.features → type in src.shared.types) references.
- Which types
src.features.background-tasks→src.shared.types.PluginConfigsrc.features.continuation-enforcement→src.shared.types.HookDefinitionsrc.features.delegation-enforcer→src.shared.types.PluginConfig
- Direction
- src.features uses src.shared.types. Changing src.shared.types can break src.features, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
25→6 src.graph.runtime.types depends on src.graph.types✕
- Type pairs
- 3 distinct (type in src.graph.runtime.types → type in src.graph.types) references.
- Which types
src.graph.runtime.types.JournalRecord→src.graph.types.GraphCommittedTransitionsrc.graph.runtime.types.NodeExecutionContext→src.graph.types.GraphNodesrc.graph.runtime.types.ProjectionSnapshotEnvelope→src.graph.types.GraphSchedulerProjection
- Direction
- src.graph.runtime.types uses src.graph.types. Changing src.graph.types can break src.graph.runtime.types, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
26→9 src.hooks depends on src.hooks.team-dispatch-hook✕
- Type pairs
- 6 distinct (type in src.hooks → type in src.hooks.team-dispatch-hook) references.
- Which types
src.hooks.team-dispatch-hook→src.hooks.team-dispatch-hook.DispatchRequestsrc.hooks.team-dispatch-hook→src.hooks.team-dispatch-hook.DrainResultsrc.hooks.team-dispatch-hook→src.hooks.team-dispatch-hook.IssueCooldownStatesrc.hooks.team-dispatch-hook→src.hooks.team-dispatch-hook.TargetProviderResolutionsrc.hooks.team-dispatch-hook→src.hooks.team-dispatch-hook.TeamConfigsrc.hooks.team-dispatch-hook→src.hooks.team-dispatch-hook.TriggerCooldownState
- Direction
- src.hooks uses src.hooks.team-dispatch-hook. Changing src.hooks.team-dispatch-hook can break src.hooks, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
26→16 src.hooks depends on src.team.model-contract✕
- Type pairs
- 1 distinct (type in src.hooks → type in src.team.model-contract) reference.
- Which types
src.hooks.team-dispatch-hook→src.team.model-contract.CliAgentType
- Direction
- src.hooks uses src.team.model-contract. Changing src.team.model-contract can break src.hooks, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
27→2 src.hooks.jev depends on src.features.agent-addressability✕
- Type pairs
- 2 distinct (type in src.hooks.jev → type in src.features.agent-addressability) references.
- Which types
src.hooks.jev.points→src.features.agent-addressability.ResolveResultsrc.hooks.jev.resolver→src.features.agent-addressability.ResolveResult
- Direction
- src.hooks.jev uses src.features.agent-addressability. Changing src.features.agent-addressability can break src.hooks.jev, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
28→2 src.hooks.learner depends on src.features.agent-addressability✕
- Type pairs
- 1 distinct (type in src.hooks.learner → type in src.features.agent-addressability) reference.
- Which types
src.hooks.learner.jev-shadow→src.features.agent-addressability.ResolveResult
- Direction
- src.hooks.learner uses src.features.agent-addressability. Changing src.features.agent-addressability can break src.hooks.learner, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
29→3 src.hooks.session-end depends on src.features.auto-update✕
- Type pairs
- 3 distinct (type in src.hooks.session-end → type in src.features.auto-update) references.
- Which types
src.hooks.session-end.callbacks→src.features.auto-update.StopCallbackDiscordConfigsrc.hooks.session-end.callbacks→src.features.auto-update.StopCallbackFileConfigsrc.hooks.session-end.callbacks→src.features.auto-update.StopCallbackTelegramConfig
- Direction
- src.hooks.session-end uses src.features.auto-update. Changing src.features.auto-update can break src.hooks.session-end, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
30→4 src.hud depends on src.features.background-agent.types✕
- Type pairs
- 1 distinct (type in src.hud → type in src.features.background-agent.types) reference.
- Which types
src.hud.background-cleanup→src.features.background-agent.types.BackgroundTask
- Direction
- src.hud uses src.features.background-agent.types. Changing src.features.background-agent.types can break src.hud, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
30→10 src.hud depends on src.hud.types✕
- Type pairs
- 14 distinct (type in src.hud → type in src.hud.types) references.
- Which types
src.hud.background-tasks→src.hud.types.OmcHudStatesrc.hud.custom-rate-provider→src.hud.types.CustomProviderResultsrc.hud.custom-rate-provider→src.hud.types.RateLimitsProviderConfigsrc.hud.render→src.hud.types.HudConfigsrc.hud.render→src.hud.types.HudRenderContextsrc.hud.state→src.hud.types.HudConfigsrc.hud.state→src.hud.types.HudElementConfigsrc.hud.state→src.hud.types.OmcHudStatesrc.hud.stdin→src.hud.types.StatuslineStdinsrc.hud.transcript→src.hud.types.ActiveAgentsrc.hud.transcript→src.hud.types.PendingPermissionsrc.hud.transcript→src.hud.types.TranscriptDatasrc.hud.types→src.hud.types.HudLabelssrc.hud.usage-api→src.hud.types.UsageResult
- Direction
- src.hud uses src.hud.types. Changing src.hud.types can break src.hud, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
31→10 src.hud.elements depends on src.hud.types✕
- Type pairs
- 19 distinct (type in src.hud.elements → type in src.hud.types) references.
- Which types
src.hud.elements.agents→src.hud.types.ActiveAgentsrc.hud.elements.agents→src.hud.types.AgentsFormatsrc.hud.elements.autopilot→src.hud.types.HudThresholdssrc.hud.elements.background→src.hud.types.HudLabelssrc.hud.elements.call-counts→src.hud.types.CallCountsFormatsrc.hud.elements.call-counts→src.hud.types.HudLabelssrc.hud.elements.context→src.hud.types.HudLabelssrc.hud.elements.context→src.hud.types.HudThresholdssrc.hud.elements.cwd→src.hud.types.CwdFormatsrc.hud.elements.git→src.hud.types.HudLabelssrc.hud.elements.limits→src.hud.types.CustomBucketUsagesrc.hud.elements.limits→src.hud.types.CustomProviderResultsrc.hud.elements.model→src.hud.types.HudLabelssrc.hud.elements.model→src.hud.types.ModelFormatsrc.hud.elements.ralph→src.hud.types.HudLabelssrc.hud.elements.ralph→src.hud.types.HudThresholdssrc.hud.elements.thinking→src.hud.types.HudLabelssrc.hud.elements.thinking→src.hud.types.ThinkingFormatsrc.hud.elements.token-usage→src.hud.types.HudLabels
- Direction
- src.hud.elements uses src.hud.types. Changing src.hud.types can break src.hud.elements, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
32→14 src.mcp depends on src.shared.artifact-descriptor✕
- Type pairs
- 1 distinct (type in src.mcp → type in src.shared.artifact-descriptor) reference.
- Which types
src.mcp.prompt-persistence→src.shared.artifact-descriptor.ArtifactDescriptor
- Direction
- src.mcp uses src.shared.artifact-descriptor. Changing src.shared.artifact-descriptor can break src.mcp, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
33→15 src.team.types depends on src.shared.types✕
- Type pairs
- 2 distinct (type in src.team.types → type in src.shared.types) references.
- Which types
src.team.types.TeamConfig→src.shared.types.ExternalModelsDefaultssrc.team.types.TeamManifestV2→src.shared.types.ExternalModelsDefaults
- Direction
- src.team.types uses src.shared.types. Changing src.shared.types can break src.team.types, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
34→4 src.tools depends on src.features.background-agent.types✕
- Type pairs
- 1 distinct (type in src.tools → type in src.features.background-agent.types) reference.
- Which types
src.tools.resume-session→src.features.background-agent.types.ResumeContext
- Direction
- src.tools uses src.features.background-agent.types. Changing src.features.background-agent.types can break src.tools, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
35→18 benchmarks.harsh-critic.scoring.types depends on benchmarks.shared.types✕
- Type pairs
- 9 distinct (type in benchmarks.harsh-critic.scoring.types → type in benchmarks.shared.types) references.
- Which types
benchmarks.harsh-critic.scoring.types.BenchmarkReport→benchmarks.shared.types.BenchmarkScoresbenchmarks.harsh-critic.scoring.types.FixtureResult→benchmarks.shared.types.BenchmarkScoresbenchmarks.harsh-critic.scoring.types.FixtureResult→benchmarks.shared.types.Domainbenchmarks.harsh-critic.scoring.types.FixtureResult→benchmarks.shared.types.ParsedAgentOutputbenchmarks.harsh-critic.scoring.types.GroundTruth→benchmarks.shared.types.Domainbenchmarks.harsh-critic.scoring.types.GroundTruthFinding→benchmarks.shared.types.FindingCategorybenchmarks.harsh-critic.scoring.types.GroundTruthFinding→benchmarks.shared.types.Perspectivebenchmarks.harsh-critic.scoring.types.GroundTruthFinding→benchmarks.shared.types.Severitybenchmarks.harsh-critic.scoring.types.ParsedFinding→benchmarks.shared.types.Severity
- Direction
- benchmarks.harsh-critic.scoring.types uses benchmarks.shared.types. Changing benchmarks.shared.types can break benchmarks.harsh-critic.scoring.types, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
36→5 src.graph.runtime depends on src.graph.runtime.run-dir✕
- Type pairs
- 3 distinct (type in src.graph.runtime → type in src.graph.runtime.run-dir) references.
- Which types
src.graph.runtime.remote-approval→src.graph.runtime.run-dir.RunDirHandlesrc.graph.runtime.run-dir→src.graph.runtime.run-dir.RunDirHandlesrc.graph.runtime.safe-fs→src.graph.runtime.run-dir.RunDirHandle
- Direction
- src.graph.runtime uses src.graph.runtime.run-dir. Changing src.graph.runtime.run-dir can break src.graph.runtime, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
36→6 src.graph.runtime depends on src.graph.types✕
- Type pairs
- 3 distinct (type in src.graph.runtime → type in src.graph.types) references.
- Which types
src.graph.runtime.runner→src.graph.types.GraphCommittedTransitionsrc.graph.runtime.runner→src.graph.types.GraphSchedulerProjectionsrc.graph.runtime.runner→src.graph.types.SchedulerTransitionIdentities
- Direction
- src.graph.runtime uses src.graph.types. Changing src.graph.types can break src.graph.runtime, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
36→25 src.graph.runtime depends on src.graph.runtime.types✕
- Type pairs
- 9 distinct (type in src.graph.runtime → type in src.graph.runtime.types) references.
- Which types
src.graph.runtime.approval→src.graph.runtime.types.HumanApprovalPromptersrc.graph.runtime.progress→src.graph.runtime.types.ProgressReportersrc.graph.runtime.progress→src.graph.runtime.types.RuntimeProgressEventsrc.graph.runtime.remote-approval→src.graph.runtime.types.HumanApprovalPromptersrc.graph.runtime.runner→src.graph.runtime.types.JournalRecordsrc.graph.runtime.runner→src.graph.runtime.types.NodeExecutionOutputsrc.graph.runtime.runner→src.graph.runtime.types.RunOptionssrc.graph.runtime.runner→src.graph.runtime.types.RunResultsrc.graph.runtime.store→src.graph.runtime.types.ProjectionSnapshotEnvelope
- Direction
- src.graph.runtime uses src.graph.runtime.types. Changing src.graph.runtime.types can break src.graph.runtime, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
37→7 src.hooks.autopilot depends on src.hooks.autopilot.types✕
- Type pairs
- 14 distinct (type in src.hooks.autopilot → type in src.hooks.autopilot.types) references.
- Which types
src.hooks.autopilot.cancel→src.hooks.autopilot.types.AutopilotStatesrc.hooks.autopilot.enforcement→src.hooks.autopilot.types.AutopilotPhasesrc.hooks.autopilot.enforcement→src.hooks.autopilot.types.AutopilotSignalsrc.hooks.autopilot.enforcement→src.hooks.autopilot.types.AutopilotStatesrc.hooks.autopilot.named-workflow-resume-validator→src.hooks.autopilot.types.AutopilotStatesrc.hooks.autopilot.pipeline→src.hooks.autopilot.types.AutopilotConfigsrc.hooks.autopilot.pipeline→src.hooks.autopilot.types.AutopilotStatesrc.hooks.autopilot.state→src.hooks.autopilot.types.AutopilotConfigsrc.hooks.autopilot.state→src.hooks.autopilot.types.AutopilotPhasesrc.hooks.autopilot.state→src.hooks.autopilot.types.AutopilotStatesrc.hooks.autopilot.validation→src.hooks.autopilot.types.AutopilotStatesrc.hooks.autopilot.validation→src.hooks.autopilot.types.AutopilotSummarysrc.hooks.autopilot.validation→src.hooks.autopilot.types.ValidationVerdictsrc.hooks.autopilot.validation→src.hooks.autopilot.types.ValidationVerdictType
- Direction
- src.hooks.autopilot uses src.hooks.autopilot.types. Changing src.hooks.autopilot.types can break src.hooks.autopilot, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
37→33 src.hooks.autopilot depends on src.team.types✕
- Type pairs
- 1 distinct (type in src.hooks.autopilot → type in src.team.types) reference.
- Which types
src.hooks.autopilot.runtime-insight→src.team.types.TeamTask
- Direction
- src.hooks.autopilot uses src.team.types. Changing src.team.types can break src.hooks.autopilot, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
38→16 src.team.tmux-session depends on src.team.model-contract✕
- Type pairs
- 3 distinct (type in src.team.tmux-session → type in src.team.model-contract) references.
- Which types
src.team.tmux-session.StartupPaneContext→src.team.model-contract.CliAgentTypesrc.team.tmux-session.WaitForPaneReadyOptions→src.team.model-contract.CliAgentTypesrc.team.tmux-session.WorkerPaneConfig→src.team.model-contract.CliAgentType
- Direction
- src.team.tmux-session uses src.team.model-contract. Changing src.team.model-contract can break src.team.tmux-session, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
38→33 src.team.tmux-session depends on src.team.types✕
- Type pairs
- 8 distinct (type in src.team.tmux-session → type in src.team.types) references.
- Which types
src.team.tmux-session.TeamSession→src.team.types.TmuxServerIdentitysrc.team.tmux-session.TeamSessionCreationEvidence→src.team.types.TmuxServerIdentitysrc.team.tmux-session.WaitForPaneReadyOptions→src.team.types.TmuxServerIdentitysrc.team.tmux-session.WaitForShellReadyOptions→src.team.types.TmuxServerIdentitysrc.team.tmux-session.WorkerPaneConfig→src.team.types.TmuxServerIdentitysrc.team.tmux-session.WorkerPaneOwnership→src.team.types.TmuxServerIdentitysrc.team.tmux-session.WorkerPaneSplitEvidence→src.team.types.TmuxServerIdentitysrc.team.tmux-session.WorkerStartSubmitVerificationOptions→src.team.types.TmuxServerIdentity
- Direction
- src.team.tmux-session uses src.team.types. Changing src.team.types can break src.team.tmux-session, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
39→9 src.team.runtime-v2 depends on src.hooks.team-dispatch-hook✕
- Type pairs
- 1 distinct (type in src.team.runtime-v2 → type in src.hooks.team-dispatch-hook) reference.
- Which types
src.team.runtime-v2.TeamRuntimeV2→src.hooks.team-dispatch-hook.TeamConfig
- Direction
- src.team.runtime-v2 uses src.hooks.team-dispatch-hook. Changing src.hooks.team-dispatch-hook can break src.team.runtime-v2, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
39→15 src.team.runtime-v2 depends on src.shared.types✕
- Type pairs
- 1 distinct (type in src.team.runtime-v2 → type in src.shared.types) reference.
- Which types
src.team.runtime-v2.StartTeamV2Config→src.shared.types.PluginConfig
- Direction
- src.team.runtime-v2 uses src.shared.types. Changing src.shared.types can break src.team.runtime-v2, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
39→16 src.team.runtime-v2 depends on src.team.model-contract✕
- Type pairs
- 3 distinct (type in src.team.runtime-v2 → type in src.team.model-contract) references.
- Which types
src.team.runtime-v2.PendingRecoveryPane→src.team.model-contract.CliAgentTypesrc.team.runtime-v2.SpawnV2WorkerOptions→src.team.model-contract.CliAgentTypesrc.team.runtime-v2.UnresolvedStartupLaunch→src.team.model-contract.CliAgentType
- Direction
- src.team.runtime-v2 uses src.team.model-contract. Changing src.team.model-contract can break src.team.runtime-v2, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
39→33 src.team.runtime-v2 depends on src.team.types✕
- Type pairs
- 4 distinct (type in src.team.runtime-v2 → type in src.team.types) references.
- Which types
src.team.runtime-v2.PendingRecoveryPane→src.team.types.WorkerInfosrc.team.runtime-v2.RuntimeOwnerRecoveryClient→src.team.types.RecoverDeadWorkerV2Resultsrc.team.runtime-v2.SpawnV2WorkerOptions→src.team.types.TmuxServerIdentitysrc.team.runtime-v2.SpawnV2WorkerOptions→src.team.types.WorkerLaunchDescriptor
- Direction
- src.team.runtime-v2 uses src.team.types. Changing src.team.types can break src.team.runtime-v2, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
39→38 src.team.runtime-v2 depends on src.team.tmux-session✕
- Type pairs
- 2 distinct (type in src.team.runtime-v2 → type in src.team.tmux-session) references.
- Which types
src.team.runtime-v2.PendingRecoveryPane→src.team.tmux-session.StartupPaneContextsrc.team.runtime-v2.PendingRecoveryPane→src.team.tmux-session.WorkerPaneOwnership
- Direction
- src.team.runtime-v2 uses src.team.tmux-session. Changing src.team.tmux-session can break src.team.runtime-v2, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
40→9 src.team depends on src.hooks.team-dispatch-hook✕
- Type pairs
- 10 distinct (type in src.team → type in src.hooks.team-dispatch-hook) references.
- Which types
src.team.mailbox-notification-guard→src.hooks.team-dispatch-hook.TeamConfigsrc.team.monitor→src.hooks.team-dispatch-hook.TeamConfigsrc.team.runtime→src.hooks.team-dispatch-hook.TeamConfigsrc.team.runtime-v2→src.hooks.team-dispatch-hook.TeamConfigsrc.team.scaling→src.hooks.team-dispatch-hook.TeamConfigsrc.team.team-ops→src.hooks.team-dispatch-hook.TeamConfigsrc.team.team-owner-epoch→src.hooks.team-dispatch-hook.TeamConfigsrc.team.team-projection→src.hooks.team-dispatch-hook.TeamConfigsrc.team.team-state-reader→src.hooks.team-dispatch-hook.TeamConfigsrc.team.worker-canonicalization→src.hooks.team-dispatch-hook.TeamConfig
- Direction
- src.team uses src.hooks.team-dispatch-hook. Changing src.hooks.team-dispatch-hook can break src.team, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
40→15 src.team depends on src.shared.types✕
- Type pairs
- 4 distinct (type in src.team → type in src.shared.types) references.
- Which types
src.team.model-contract→src.shared.types.ExternalModelsDefaultssrc.team.stage-router→src.shared.types.PluginConfigsrc.team.stage-router→src.shared.types.RoleAssignmentsrc.team.stage-router→src.shared.types.TeamRoleTier
- Direction
- src.team uses src.shared.types. Changing src.shared.types can break src.team, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
40→16 src.team depends on src.team.model-contract✕
- Type pairs
- 9 distinct (type in src.team → type in src.team.model-contract) references.
- Which types
src.team.model-contract→src.team.model-contract.CliAgentContractsrc.team.model-contract→src.team.model-contract.CliAgentTypesrc.team.model-contract→src.team.model-contract.CliBinaryValidationsrc.team.model-contract→src.team.model-contract.WorkerLaunchConfigsrc.team.pane-readiness→src.team.model-contract.CliAgentTypesrc.team.runtime-v2→src.team.model-contract.CliAgentTypesrc.team.scaling→src.team.model-contract.CliAgentTypesrc.team.tmux-session→src.team.model-contract.CliAgentTypesrc.team.worker-bootstrap→src.team.model-contract.CliAgentType
- Direction
- src.team uses src.team.model-contract. Changing src.team.model-contract can break src.team, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
40→33 src.team depends on src.team.types✕
- Type pairs
- 70 distinct (type in src.team → type in src.team.types) references. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
- Which types
src.team.api-interop→src.team.types.TeamTaskDelegationPlansrc.team.capabilities→src.team.types.WorkerBackendsrc.team.events→src.team.types.TeamEventsrc.team.governance→src.team.types.TeamGovernancesrc.team.governance→src.team.types.TeamManifestV2src.team.governance→src.team.types.TeamTransportPolicysrc.team.heartbeat→src.team.types.HeartbeatDatasrc.team.inbox-outbox→src.team.types.OutboxMessagesrc.team.mcp-team-bridge→src.team.types.BridgeConfigsrc.team.mcp-team-bridge→src.team.types.HeartbeatDatasrc.team.mcp-team-bridge→src.team.types.TaskFilesrc.team.model-contract→src.team.types.WorkerLaunchDescriptorsrc.team.monitor→src.team.types.TeamInstanceBindingsrc.team.monitor→src.team.types.TeamInstanceDisposalAuthorizationsrc.team.monitor→src.team.types.TeamManifestV2src.team.monitor→src.team.types.TeamMonitorSnapshotStatesrc.team.monitor→src.team.types.TeamPhaseStatesrc.team.monitor→src.team.types.TmuxServerIdentitysrc.team.monitor→src.team.types.WorkerInfosrc.team.recovery-saga→src.team.types.RecoverDeadWorkerV2Errorsrc.team.recovery-saga→src.team.types.RecoverDeadWorkerV2Failuresrc.team.recovery-saga→src.team.types.RecoverDeadWorkerV2Resultsrc.team.runtime-cli→src.team.types.RecoverDeadWorkerV2Resultsrc.team.runtime-owner-client→src.team.types.RecoverDeadWorkerV2Failuresrc.team.runtime-owner-client→src.team.types.RecoverDeadWorkerV2Result
- Direction
- src.team uses src.team.types. Changing src.team.types can break src.team, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
40→38 src.team depends on src.team.tmux-session✕
- Type pairs
- 28 distinct (type in src.team → type in src.team.tmux-session) references. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
- Which types
src.team.idle-nudge→src.team.tmux-session.WorkerPaneOwnershipsrc.team.runtime-v2→src.team.tmux-session.WorkerPaneLivenesssrc.team.runtime-v2→src.team.tmux-session.WorkerPaneOwnershipsrc.team.tmux-session→src.team.tmux-session.CreateTeamSessionOptionssrc.team.tmux-session→src.team.tmux-session.DirectMailboxEffectDependenciessrc.team.tmux-session→src.team.tmux-session.DirectMailboxEffectResultsrc.team.tmux-session→src.team.tmux-session.MailboxTargetOwnershipDependenciessrc.team.tmux-session→src.team.tmux-session.PaneCaptureObservationsrc.team.tmux-session→src.team.tmux-session.StartupInboxResubmitOutcomesrc.team.tmux-session→src.team.tmux-session.StartupPaneActivitysrc.team.tmux-session→src.team.tmux-session.StartupPaneContextsrc.team.tmux-session→src.team.tmux-session.StartupPaneReadyResultsrc.team.tmux-session→src.team.tmux-session.TeamMultiplexerContextsrc.team.tmux-session→src.team.tmux-session.TeamSessionsrc.team.tmux-session→src.team.tmux-session.TeamSessionTargetPresencesrc.team.tmux-session→src.team.tmux-session.TmuxServerGuardRuntimesrc.team.tmux-session→src.team.tmux-session.TmuxServerIdentityDependenciessrc.team.tmux-session→src.team.tmux-session.TmuxServerIdentityGuardOptionssrc.team.tmux-session→src.team.tmux-session.TmuxServerIdentityObservationsrc.team.tmux-session→src.team.tmux-session.WaitForPaneReadyOptionssrc.team.tmux-session→src.team.tmux-session.WaitForShellReadyOptionssrc.team.tmux-session→src.team.tmux-session.WorkerLaunchSpecsrc.team.tmux-session→src.team.tmux-session.WorkerPaneConfigsrc.team.tmux-session→src.team.tmux-session.WorkerPaneLivenesssrc.team.tmux-session→src.team.tmux-session.WorkerPaneOwnership
- Direction
- src.team uses src.team.tmux-session. Changing src.team.tmux-session can break src.team, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
40→39 src.team depends on src.team.runtime-v2✕
- Type pairs
- 15 distinct (type in src.team → type in src.team.runtime-v2) references.
- Which types
src.team.runtime-v2→src.team.runtime-v2.BootstrapRecoveryEvidenceWaitOptionssrc.team.runtime-v2→src.team.runtime-v2.NonCursorVerdictBindingReadsrc.team.runtime-v2→src.team.runtime-v2.PendingRecoveryPanesrc.team.runtime-v2→src.team.runtime-v2.RecoverDeadWorkerV2Optionssrc.team.runtime-v2→src.team.runtime-v2.RecoveryAttemptSecretsrc.team.runtime-v2→src.team.runtime-v2.RecoveryOwnerFinalizationDepssrc.team.runtime-v2→src.team.runtime-v2.ShutdownOptionsV2src.team.runtime-v2→src.team.runtime-v2.ShutdownTeamV2Resultsrc.team.runtime-v2→src.team.runtime-v2.SpawnV2WorkerOptionssrc.team.runtime-v2→src.team.runtime-v2.SpawnV2WorkerResultsrc.team.runtime-v2→src.team.runtime-v2.StartTeamV2Configsrc.team.runtime-v2→src.team.runtime-v2.TeamCadenceEntrysrc.team.runtime-v2→src.team.runtime-v2.TeamRuntimeV2src.team.runtime-v2→src.team.runtime-v2.WorkerStartupBaselinesrc.team.runtime-v2→src.team.runtime-v2.WorkerStartupEvidencePolicy
- Direction
- src.team uses src.team.runtime-v2. Changing src.team.runtime-v2 can break src.team, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
At a glance — Code Health
At a glance — Architecture
At a glance — Maturity
At a glance — Readiness
At a glance — Security
At a glance — Performance
Security & Compliance — OWASP Top-10 mapping
| OWASP category | Findings | Severity |
|---|---|---|
| A03:2021 — Injection | 121 | High / Critical |
| A02:2021 — Cryptographic Failures | 2 | High / Critical |
| A04:2021 — Insecure Design | 1 | High / Critical |
Roadmap
First, break circular imports by extracting shared logic into independent modules and enforce slice independence through explicit contracts rather than direct references. Next, address oversized project cohesion to ensure components remain tightly focused on their responsibilities. Finally, integrate static security analysis into the CI pipeline to block regressions and document a tested disaster recovery procedure with clear recovery objectives.
| Do this | Helps | Effort | Dimension |
|---|---|---|---|
| Resolve the 1 Projects may be oversized for their cohesion finding(s) in Project Cohesion. | +4.2 pts | Low | Project Cohesion |
| Break each cycle by extracting the shared piece into a module both sides can import. | +4.6 pts | Medium | Circular Imports |
| Keep slices independent: share cross-slice needs via an explicit contract/shared-kernel, not direct references between slices. | +4.5 pts | Medium | Slice cohesion |
| Add a SAST step to CI running what this repository's stack ships: CodeQL's javascript-typescript pack, `semgrep --config=p/typescript`, or eslint-plugin-security — so a security regression fails the build instead of landing. | +3.7 pts | Medium | Security & performance tooling |
| Document RTO/RPO and a tested restore procedure (a backup config alone isn't disaster recovery). | +3.7 pts | Medium | DR & Backup |
| Fix the listed violations: respect the layer/slice order — import only through a slice's public index and never upward into a higher layer (22 rows). | +3.5 pts | Medium | Import Boundaries |
| Extend structured logging to the remaining runnable modules so everything you run is diagnosable in production. | +3.5 pts | Medium | Observability |
| Bump outdated dependencies to current versions to limit upgrade debt. | +3.1 pts | Medium | Dependency Freshness |
File quality
| File | Score | Band | Worst signal |
|---|---|---|---|
| REDACTED | 2.5 | Slop | Static Analysis (SAST): High: REDACTED |
| REDACTED | 3.7 | Slop | Static Analysis (SAST): High: REDACTED |
| REDACTED | 4.4 | Mixed | Static Analysis (SAST): High: REDACTED |
| REDACTED | 4.8 | Mixed | Static Analysis (SAST): High: REDACTED |
| REDACTED | 5.1 | Mixed | Static Analysis (SAST): High: REDACTED |
| REDACTED | 5.8 | Mixed | Static Analysis (SAST): High: REDACTED |
| REDACTED | 5.8 | Mixed | Static Analysis (SAST): Medium: REDACTED |
| REDACTED | 5.8 | Mixed | Static Analysis (SAST): Medium: REDACTED |
| REDACTED | 5.8 | Mixed | Static Analysis (SAST): Medium: REDACTED |
| REDACTED | 5.9 | Mixed | Static Analysis (SAST): Medium: REDACTED |
| REDACTED | 6.1 | Mixed | Static Analysis (SAST): Medium: REDACTED |
| REDACTED | 6.1 | Mixed | Static Analysis (SAST): Medium: REDACTED |
| REDACTED | 6.1 | Mixed | Static Analysis (SAST): Medium: REDACTED |
| REDACTED | 6.3 | Mixed | Static Analysis (SAST): Medium: REDACTED |
| src/__tests__/installer.test.ts | 6.9 | Mixed | Explicit Debt: TodoComment |
| REDACTED | 6.9 | Mixed | Static Analysis (SAST): Medium: REDACTED |
| REDACTED | 6.9 | Mixed | Static Analysis (SAST): Medium: REDACTED |
| src/__tests__/setup-contracts-regression.test.ts | 7.0 | Mixed | Test Quality: No assertions: has no unguarded join(homedir(), ".claude") in runtime TypeScript |
| REDACTED | 7.2 | Mixed | Secrets (history): REDACTED: REDACTED |
| REDACTED | 7.2 | Mixed | Static Analysis (SAST): High: REDACTED |
How the grades work
A definite problem that already costs you something and drags the score down: a missing authorisation check, a dependency with a known exploit, a build that does not reproduce. Failure here tends to cause failures elsewhere.
Likely wrong, but not failing yet. It degrades the codebase over a longer horizon and can cause failures elsewhere — not urgent this week, not something to carry for two years either.
Recorded, with no effect on how the codebase functions. Present so the survey is complete, not because it needs doing.
Something this survey could not settle from the outside, and which could be critical or serious. Either a control was required and no positive evidence of it exists in the repository — a backup job that nothing shows was ever restored from proves nothing about restores — or our own analysis could not run over that part of the tree. This is not a clean result. These are excluded from the score rather than awarded a pass, so the number on the cover neither rewards nor penalises them: if you act on this survey without resolving them, you carry that risk yourself. Each one is named under Limitations.
Methodology & how to trust this report
Watchdog is a deep, periodic assessment — run each sprint, monthly, or quarterly, taking the time to go wider and deeper than a quick check and surfacing in one coherent report what you'd otherwise piece together from a dozen separate tools. It scores deterministically: the same commit yields the same score, every run. 45 of 50 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); 5 documentation/naming judgement(s) are LLM-assisted and labelled advisory. Overall confidence is 0.8 — the weighted average across measured dimensions; it falls as more of the score leans on LLM-assisted judgement and rises when it's fully tool-backed.
What we checked — 50 dimensions across the health lenses
- Can you open the finding? Real findings cite a repo-relative file and line you can open at the cited line — never an absolute scratch path. Here, 607 of 621 do; the remainder are repo-wide signals — a dimension-level measurement, not a single line.
- Is there a tool behind the number? Every score below names the method that produced it — Roslyn, git, a scanner, or (for a handful of documentation/naming dimensions) an LLM labelled sampled · advisory — not a narrative.
- Does re-running give the same result? Run it again on the same commit and the score — and this report, byte for byte — is identical. A report whose numbers move between runs is describing the run, not the code.
Tools & methods
| Method | Backs | Version | Evaluator |
|---|---|---|---|
| Roslyn static analysis | Complexity, cohesion, coupling, dead code, API surface, layering | 5.3.0 | ✓ deterministic |
| Native secret scanner | Hardcoded secrets / credentials | 1.0.0 | ✓ deterministic |
| Watchdog duplication detector (in-process) | Code duplication | 1.0.0 | ✓ deterministic |
| Coverage (coverlet / dotnet-coverage) | Line & branch coverage | 10.0.400 | ✓ deterministic |
| NuGet / dotnet | Outdated, vulnerable & deprecated dependencies | 10.0.400 | ✓ deterministic |
| git / LibGit2Sharp | Churn hotspots, knowledge concentration, history | 2.43.0 · 0.31.0 | ✓ deterministic |
| gitleaks · semgrep · trivy · checkov | Secrets in history, SAST, CVEs, IaC & container, PII / GDPR | 1.86.0 · 0.69.3 · 3.2.533 | ✓ deterministic |
| LLM (sampled · advisory) | Documentation quality, ADR conformance, naming — sampled over a bounded sample; advisory, never a deterministic measurement | Local LLM | ◐ LLM · sampled · advisory |
Run transparency — what happened this run
- D1 Cyclomatic Complexity — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Most of this repository's production source (.cjs, .js) had no cyclomatic complexity computed for it: no method bodies were exposed for those file kinds by any language model this pass could load.
- D2 Cognitive Complexity — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Most of this repository's production source (.cjs, .js) had no cognitive complexity computed for it: no method bodies were exposed for those file kinds by any language model this pass could load.
- D6 Cohesion (LCOM4) — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check's reader does not cover the language this repository's product is written in, so it had nothing of the product to read. That is a gap in this analyzer's language reach — not a finding about this repository.
- D11 Test Reliability — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Test reliability NOT MEASURED: the JavaScript/TypeScript suite could not be re-run in the analyzer sandbox — the tier's time budget ran out before a run finished. This is OUR limitation, not a defect in the repo — it is excluded from the score.
- D12 Dependency Hygiene — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Not scored — 0 shipped Python distribution(s) were read, but the outdated signal needs pypi.org, and no declaration here carries an exact pin to ask about — a floor or a range installs the newest release it admits and cannot be behind one, so this dimension's own question is only partly answered. NOT a finding that these dependencies are current or healthy.
- D14 License Compliance — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. This repository declares a Python pyproject.toml/requirements.txt (pip/uv/Poetry), but the licence verdict published here was taken over its npm package dependencies. Nothing was read about its Python dependencies' licensing in either direction, and a clean score on this card must not be read as covering them.
- D22 Internal API Consistency — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. D22 identifies the intentionally-exposed surface from `IsPackable` and `.Contracts` project names, MSBuild conventions read off the loaded project set. This target exposed no such projects, so the probe never ran; this says nothing about whether the repository has a public API. This repository commits no C#/VB source at all, so there was never an MSBuild project set to read these conventions off. That is OUR side and it is a COLLECTOR gap, not an environment fault: it declares a published package (package.json), but no published-package marker D22 reads admitted any project here, so this ecosystem's public API has no collector, and the remedy is to write one — no change to the scan image can close it.
- D27 Navigability — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check's reader does not cover the language this repository's product is written in, so it had nothing of the product to read. That is a gap in this analyzer's language reach — not a finding about this repository.
- D30 Dependency Vulnerabilities — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. Osv-scanner exited 1 with no findings — dependency CVEs were not measured. 1 of 2 declared ecosystem(s) (npm) WERE scanned and every vulnerability they reported is included in this result; osv was not, so this dimension's score covers less than the dependency surface this repository declares, and nothing here is evidence that osv is free of known-vulnerable dependencies.
- D32 Data Compliance (PII/GDPR) — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. `benchmarks/shared/scorer.ts`, `bridge/claude-md-coordinator.cjs`, `scripts/generate-prompt-projections.mjs`, `scripts/keyword-detector.mjs`, `REDACTED`, … (+22 more) produced a parse error, so every rule in this engine's `gdpr.yml` was absent there. That absence is NOT a clean result: these rules detect personal data crossing a boundary into a log sink, a URL or browser storage, and a file that was never parsed cannot report any of the three. The rest of the tree analysed normally and its rows above stand; only these files are unaccounted for. You can widen what we reach: fix the syntax error (or exclude the file deliberately) and re-scan to cover it.
- D43 Malicious Dependencies — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. Osv-scanner exited 1 with no findings — dependency CVEs were not measured. 1 of 2 declared ecosystem(s) (npm) WERE scanned and every vulnerability they reported is included in this result; osv was not, so this dimension's score covers less than the dependency surface this repository declares, and nothing here is evidence that osv is free of known-vulnerable dependencies.
- AX1 Captive dependencies — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- AX2 Stateful singletons — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- AX6 Interface segregation — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is computed over the public interfaces this run's compilations declare, and none was loaded, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- C1 Data Protection — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These personal data controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks personal data controls.
- C2 Access Controls — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These authorization controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks authorization controls.
- C3 Audit Trail — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These audit controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks audit controls.
- C4 Data Retention — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These retention controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks retention controls.
- C5 Data-Subject Rights — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These data-subject rights controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks data-subject rights controls.
- ED5 Idempotency — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check finds retry-prone mutations by walking the repository's declared types, and NONE was loaded on this run, so it had nothing to look at. That is a limit of the analyzer's reach — it reads .NET projects — not a finding that this repository has no command handlers or message consumers.
- GD1 Unfinished & placeholder code — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- IC1 Incompleteness & stubs — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- P10 Library API & versioning — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads NuGet packaging and C# public API only, and no .NET project was loaded for this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- PF1 Benchmark discipline — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- PF2 Allocation hygiene — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- PF3 Async & latency hygiene — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 123 further occurrence(s) are not listed individually; the score already reflects all 163.
- R10 Code Duplication — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 664 further occurrence(s) are not listed individually; the score already reflects all 704.
- R4 Test Coverage — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 24 further occurrence(s) are not listed individually; the score already reflects all 64.
- R7 Dead Code — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 47 further occurrence(s) are not listed individually; the score already reflects all 87.
- S1 Web-Security Posture — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These web-security controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks web-security controls.
- X1 Async correctness — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X10 Duplicated predicate — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X12 Unreachable branch — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X13 Undrained process stream — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X14 Bypassable address classification — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X15 Unvalidated length from an untrusted reader — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X16 Unfloored truncation loop — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X17 Uncapped recursion over a caller-supplied document — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X18 Disposal-pattern correctness — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X19 Unrestored process-global state — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X2 Cancellation propagation — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X20 Mistyped argument guard — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X21 Side-effecting pattern guard — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X22 Contradicted release guard — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X23 Unguarded diagnostic materialisation — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X24 Document value interpolated into markup unescaped — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X25 Inert configuration knob — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X26 Unsynchronised callback handoff — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X27 Collection changed while being enumerated — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X28 Index access outside its own emptiness guard — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X29 Per-element action decided by a fixed element — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X3 Exception handling — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X30 Support guard that admits what it rejects — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X32 Type resolved by simple name across every loaded assembly — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X4 Structured logging — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X5 Nullable reference types — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X6 Hand-rolled structured-format parsing — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X7 Silent fallback defaults — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
Limitations & what we did not check
Watchdog assesses the repository exactly as committed, and only the repository. By design it does not reach outside the source tree: the live cloud account, the running CI/CD pipeline, the host's branch-protection and approval rules, the production configuration, or a restore actually exercised against a backup are all out of scope. That boundary is a feature, not a gap — a repo-relative, deterministic scan re-runs identically on any commit and every finding opens at a real file and line, where a live audit can neither be reproduced nor traced. The visible consequence is that controls which leave no in-repo evidence are reported as "not evidenced" and excluded from the score rather than awarded a number a static scan cannot justify.
Per-dimension blind spots
- D7 Architectural Integrity: Layering is checked against detected/declared rules — an architecture whose boundaries live in convention or in code review, not in a rule a scanner can read, is not enforced here.
- D9 Test Distribution: The test-pyramid shape is inferred from project/folder naming and references, with a single test host bucketed per-file by its path tier and content signals — a suite that names tiers unconventionally and gives no per-file signal can still be mis-bucketed.
- D10 Test Quality: Assertion density is structural — it cannot tell a meaningful behavioural assertion from a trivial one, only that an assertion is present.
- D13 REDACTED Scanning: REDACTED detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
- D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
- D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
- D16 Bus Factor: Bus-factor is a time-decayed model of commit attribution (who has recently, repeatedly worked a file), not comprehension — pairing, review and reading-without-committing spread knowledge it can't see; bot commits and shared accounts still distort it.
- D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
- D19 Documentation Quality: Documentation quality is judged by an LLM over a bounded sample of docs — it reads what is written, not whether the docs match the running system, and it is advisory, not a measurement. Its critique rows are drawn from a closed category vocabulary and each row means the same thing in every run, so two scans can be compared row by row; the SET that fires is still a sample, and does not repeat exactly. Measured on one frozen input, six scans at one engine SHA: 2-5 critique rows per scan, 8 distinct rows across the six, 3 of those 8 seen in only one scan. So a D19 row is evidence about the documentation, but a COUNT of D19 rows is not a quantity — never read a change in it as an improvement or a regression.
- D20 ADR Quality: ADR quality is an LLM read of the decision records present — it cannot know about decisions made and never recorded, and its verdict is sampled and advisory.
- D21 Naming Consistency: Naming quality is an LLM judgement over a bounded sample — it assesses clarity/consistency of the names it sees, not domain-correctness, and is advisory.
- D25 ADR Conformance: ADR conformance is the LLM-scored fraction of sampled code that follows recorded decisions — it checks the decisions that were written down and the slices it sampled, not unrecorded rules or the whole tree.
- D26 Project Cohesion: Project focus is sized from members/namespaces per project — a project that is broad by deliberate design reads the same as one that has sprawled.
- D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
- D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
- D30 Dependency Vulnerabilities: CVE matching depends on accurate package/version metadata and on the advisory databases — a vulnerability with no published advisory, or in code not declared as a dependency, is not seen. Coverage needs a RESOLVED graph: an unpinned requirements.txt, or a pom without a resolved build, yields partial coverage rather than a clean verdict. An ecosystem the analyzer cannot scan is reported as unmeasured, never as clean.
- D31 IaC & Container Security: IaC scanning checks Dockerfiles/Terraform/Kubernetes against best-practice rules — it cannot see the live cloud account, runtime configuration, or drift between the committed config and what is actually deployed.
- D32 Data Compliance (PII/GDPR): PII/GDPR signals are heuristic pattern matches in code — they flag likely handling concerns, not legal compliance, and cannot trace where data actually flows at runtime.
- D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension — code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
- D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
- D43 Malicious Dependencies: Only packages some vulnerability database has already NAMED as malicious are seen — a compromise published in the last hours, or never reported at all, is invisible here, and this dimension reading 10 is not evidence that a dependency is trustworthy. There is no typosquat or dependency-confusion analysis: a package nobody has reported is simply absent from the feeds. Coverage is the dependency scan's: an ecosystem that could not be scanned is disclosed as unmeasured, never as clean.
- D44 Platform End-of-Life: The support table is FROZEN, so it goes out of date by losing RECALL: a release that ended support after the table was written is missed until the table is refreshed, and this dimension reading 10 is not evidence that a platform is current. Only platforms the repository DECLARES in a place this pass reads are seen — a runtime named only in a Dockerfile (D31's subject), in a CI workflow (D29's), or in a file this pass does not parse (go.mod, a Gemfile ruby directive) is invisible here, which is why a repository declaring none of them abstains rather than scoring. Only frameworks with a PUBLISHED support policy are tracked: React, Flask and Express publish none, so their age cannot be judged and their absence from a report is not a statement that they are supported.
- AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
- M4 Documentation accuracy: Onboarding quality is an LLM read of the docs/setup present — it cannot run the onboarding or measure how long a real new joiner takes; the verdict is sampled and advisory.
- P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
- P5 DR & Backup: Backup/restore and disaster-recovery readiness is judged from in-repo evidence — a config that exists is not a tested restore, so the absence of positive evidence is reported as "not evidenced", never scored as present.
- P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.
The LLM boundary
Dimensions
D7 · Architectural Integrity
All 4 mechanizable ADR(s) are enforced: 3 by analyzers, 1 by tests. Dependency cycles not checked (no project-reference graph; where this repository's language has an import-cycle lens, cycles are reported there).
D9 · Test Distribution
12601 test methods: 12399 unit, 190 integration, 0 BDD, 12 e2e. The JavaScript/TypeScript suite contributes 12601 `it`/`test` case(s) across 766 test file(s) declaring at least one; its tier split is read from package names and paths only.
D10 · Test Quality
106 skipped (106 with a documented reason), 27 zero-assertion, no mocking-framework packages referenced (hand-written doubles or no mocking) across 12584 tests.
What to do
- Resolve the 27 No assertions finding(s) in Test Quality — start with setup-contracts-regression.test.ts (12), harbor-scenarios.test.ts (3), bridge-openclaw.test.ts (2). — One of this dimension's main actionable groups (27 warning-level).
D13 · REDACTED Scanning
REDACTED scan ran and found no leaked secrets.
D14 · License Compliance
0 of 12 shipped npm package(s) use a banned license. Licences were resolved from registry.npmjs.org over the 12 production dependency(ies) this repository's committed lockfile resolves, across 1 product package.json manifest(s). Its 18 `devDependencies` declaration(s) are excluded: a consumer installs none of them. ★ DEPTH: this is the DIRECT production set the lockfile resolves, NOT the transitive closure — only one of the four lock dialects this pass reads states a full graph, so a banned licence pulled in only by a dependency's OWN dependencies is outside this verdict, exactly as the JVM arm's declaration-site verdict is. ★ Each licence is the one the registry publishes for the package's CURRENT release rather than for the pinned version, which is the same caveat the Hex and RubyGems arms carry. 1 of them publish no licence this pass can read on registry.npmjs.org — an absent field, `UNLICENSED`, or a `SEE LICENSE IN <file>` pointer into a tarball this pass does not download; that is missing data, not a violation, and none of them is charged. This repository publishes itself under MIT, which is its own choice and is not judged here. ★ COVERAGE OF THIS VERDICT: it grades this repository's npm package dependencies and nothing else. The repository also declares a Python pyproject.toml/requirements.txt (pip/uv/Poetry), and the licences of those dependencies were NOT read by this pass — a gap in this engine's coverage, not a statement about them. So this result says the graded closure carries no banned licence; it does NOT say this repository's licensing is clear.
D15 · Churn × Complexity Hotspots
Top hotspots: src/team/runtime-v2.ts (37×238=8806); templates/hooks/pre-tool-use.mjs (65×64=4160); src/team/scaling.ts (13×230=2990) Repeated repair below the complexity floor: src/hooks/ralph/loop.ts (10 of 10 changes were fixes); scripts/lib/state-root.cjs (9 of 9 changes were fixes); scripts/lib/state-root.mjs (9 of 9 changes were fixes)
What to do
- Resolve the 106 Hotspot finding(s) in Churn × Complexity Hotspots — start with REDACTED (11), REDACTED (2), persistent-mode.mjs (2). — One of this dimension's main actionable groups (106 warning-level).
- Resolve the 24 Repeated repair finding(s) in Churn × Complexity Hotspots — start with REDACTED (3), state-root.mjs (2), loop.ts. — One of this dimension's main actionable groups (24 warning-level).
D16 · Bus Factor
109 source file(s) have their living knowledge concentrated in one author (≥90% of recent, decayed contribution). The largest is src/graph/scheduler.ts. Counted over 494 of the 656 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
What to do
- Resolve the 3 Off-boarding risk finding(s) in Bus Factor. — One of this dimension's main actionable groups (3 recommendation-level).
- Resolve the 1 Further sole-owners (lower concentration) finding(s) in Bus Factor. — One of this dimension's main actionable groups (1 recommendation-level).
D17 · Explicit Debt
7 deducted task-comment markers across 187637 LoC (0.0/KLoC) → score 10.0. Task comments only: this repository's language is read without a compiler, so D17's suppression, dead-code and commented-out-code arms did not run and this score counts fewer marker kinds than a .NET repository's would.
What to do
- Resolve the 7 TodoComment finding(s) in Explicit Debt — start with installer.test.ts (3), REDACTED (2), continuation-enforcement.ts. — One of this dimension's main actionable groups (7 warning-level).
- Enforce Explicit Debt in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D19 · Documentation Quality
The repository's root README is a well-written marketing document that states the project (Oh-My-ClaudeCode), its core value proposition ('Don't learn Claude Code. Just use OMC'), and links to an external website for full documentation, plus a strong 'For Codex users' note. The benchmark/README.md documents the SWE-bench benchmark suite with clear one-time-setup, quick-test, and run_full_comparison scripts; it is complete within its scope (benchmark directory) and shows good structure. A few clipped architecture/design docs (Core Maintainers, Ambassadors, Design System stubs, .omc/skills README, Verified Results breakdown) are expected per-document clip discipline rather than defects. The repository's documentation is comprehensive and well-organized: the READMEs for each directory (e.g. seminar/screenshots/, templates/rules/) document their own directories rather than the root repo, while a dedicated docs/AGENTS.md serves as an overview of user and developer documentation with links to architecture, migration, compatibility, and design documents. The main architecture doc is clipped mid-sentence but its outline lists every section present in the visible text. This is a comprehensive project with strong focused documentation: the READMEs describe each directory's purpose and usage (e.g. CJK IME input issues, multi-agent orchestration oh-my-claudecode, MCP plugin compatibility), architecture/Docs markdown files cover design and implementation details, and every visible document has an outline listing its named sections. The content is well-organized with a clear table of contents for each file.
D20 · ADR Quality
Evaluated 5 ADR(s) individually; mean quality 7.7/10 (mixed — many ADRs miss context or consequences). 2 flagged with a specific gap.
What to do
- Resolve the 1 Decision is a thin one-line statement with no context (why replace… finding(s) in ADR Quality — start with 03665-jev-degradation-contract.md. — One of this dimension's main actionable groups (1 warning-level).
- Resolve the 1 Decision is real but consequences/trade-offs are unstated finding(s) in ADR Quality — start with 03671-script-side-judgment-channel.md. — One of this dimension's main actionable groups (1 warning-level).
D21 · Naming Consistency
0 naming inconsistencies across 0 sampled symbols.
D25 · ADR Conformance
2 conform / 0 violate across 5 ADRs.
D26 · Project Cohesion
1 of 1 build units (npm) flagged as possibly oversized/incoherent.
What to do
- Resolve the 1 Projects may be oversized for their cohesion finding(s) in Project Cohesion. — One of this dimension's main actionable groups (1 recommendation-level).
D28 · Secrets (history)
1 finding(s): 0 critical, 1 high, 0 medium, 0 low. Remediation for historically-committed secrets is credential rotation — they remain in history regardless of later deletion.
What to do
- Resolve the 1 REDACTED finding(s) in Secrets (history) — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
- Resolve the 1 Rotate the exposed credentials finding(s) in Secrets (history). — One of this dimension's main actionable groups (1 recommendation-level).
D29 · Static Analysis (SAST)
121 finding(s): 0 critical, 56 high, 65 medium, 0 low. 39 unpinned-GitHub-Actions row(s) are reported here but scored by D36 (supply-chain provenance), which measures that posture as `pinned_actions` — one pinning decision is charged once, not once per lens. semgrep hit a parse error in 53 file(s) — `benchmark/run_full_comparison.sh` (line 183), `benchmarks/shared/scorer.ts` (line 204), `bridge/claude-md-coordinator.cjs` (line 667), `bridge/team-bridge.cjs`, `scripts/generate-prompt-projections.mjs` (line 34), … (+48 more) — so no absence of findings in the named regions is evidence of anything; rows reported elsewhere in those files are real. Fix the syntax error (or exclude the file deliberately) and re-scan to cover them. Separately, one or more rules could not re-parse an embedded snippet in 1 file(s) (e.g. a workflow `run:` block read as shell). Those files WERE scanned and their other rows are unaffected; only those rules' view of those snippets is missing.
What to do
- Resolve the 13 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (3), REDACTED, REDACTED. — One of this dimension's main actionable groups (13 issue-level).
- Resolve the 2 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED, REDACTED. — One of this dimension's main actionable groups (2 issue-level).
- No action in Static Analysis (SAST) — all 39 REDACTED finding(s) are reported here at file:line but scored by D36 (supply-chain provenance), so none is charged to this dimension. — One of this dimension's main actionable groups (39 issue-level, 0 of them charged here).
D30 · Dependency Vulnerabilities
No known-vulnerable dependencies in the 1 ecosystem(s) that were scanned (npm). Partial dependency scan: 1 of 2 declared ecosystem(s) were scanned (npm), and the findings above are real and complete for them. osv was not scanned (osv: osv-scanner exited 1 with no findings — dependency CVEs were not measured), so this is not the whole dependency surface and the result is reported at reduced confidence.
D31 · IaC & Container Security
trivy and checkov found no infrastructure-as-code or container misconfigurations.
D32 · Data Compliance (PII/GDPR)
1 finding(s): 0 critical, 1 high, 0 medium, 0 low. semgrep could not parse 27 file(s) — `benchmarks/shared/scorer.ts`, `bridge/claude-md-coordinator.cjs`, `scripts/generate-prompt-projections.mjs`, `scripts/keyword-detector.mjs`, `REDACTED`, … (+22 more) — so the PII/GDPR sweep did not cover the unparsed regions of them; rows reported elsewhere in those files are real.
What to do
- Resolve the 1 REDACTED finding(s) in Data Compliance (PII/GDPR) — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
D34 · Knowledge Freshness
7 of 494 significant source file(s) are orphaned — their living knowledge has decayed to nothing, so no one currently understands them. The largest is benchmark/analyze_failures.py. Counted over 494 of the 656 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
What to do
- Resolve the 1 Orphaned knowledge finding(s) in Knowledge Freshness — start with analyze_failures.py. — One of this dimension's main actionable groups (1 issue-level).
- Resolve the 1 Further orphaned files (smaller) finding(s) in Knowledge Freshness. — One of this dimension's main actionable groups (1 recommendation-level).
D35 · Change Coupling
No strong hidden change-coupling between production files.
D36 · Supply-chain Provenance & Signing
2/4 supply-chain integrity signals present (provenance, signing, SBOM, pinned actions).
What to do
- Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 warning-level).
- Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 recommendation-level).
- Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 recommendation-level).
D37 · Vulnerability-disclosure Policy
A vulnerability-disclosure policy (SECURITY.md) is published with a reporting contact.
D43 · Malicious Dependencies
No known-vulnerable dependencies in the 1 ecosystem(s) that were scanned (npm). Partial dependency scan: 1 of 2 declared ecosystem(s) were scanned (npm), and the findings above are real and complete for them. osv was not scanned (osv: osv-scanner exited 1 with no findings — dependency CVEs were not measured), so this is not the whole dependency surface and the result is reported at reduced confidence.
D44 · Platform End-of-Life
0 end-of-life runtime(s) and 0 end-of-life framework(s), read from 0 platform declaration(s) and 12 dependency declaration(s). This dimension reads what the repository says about ITSELF — a pinned target framework, a version file, a capped requires-python, a Rust toolchain pin, a framework major a constraint cannot move off. A FLOOR is deliberately never charged: `requires-python = ">=3.8"` states what the package SUPPORTS, not what it runs on, and a well-maintained library declares exactly that while running its own CI on a current release. The end-of-life facts are FROZEN and dated, so this dimension needs no network and answers identically inside a closed scan fence; as the table ages it loses recall and never precision, because a statement about support that ended in the past cannot become false. The OS layer of a container image is D31's question and the toolchain a CI workflow installs is D29's; this row is neither.
Frontend & cross-cutting dimensions
AX10 · Code composition
What to do
- The domain core is a small share of production code, but most of the rest matched no layer vocabulary at all — so this is not yet an anemic-domain finding. The namespace/path convention could not place that code, which makes the composition above a statement about the naming, not about the design. Name the layers (or check that the repository's conventions differ from the ones this check knows) before reading a thin domain into it.
AX3 · Project dependency cycles
AX5 · Architecture & structure
AX7 · Slice cohesion
- `CategoryConfig` (slice 'delegation-categories') depends on `ComplexityTier` from slice 'model-routing'. — src/features/delegation-categories/types.ts:30
- `CategoryContext` (slice 'delegation-categories') depends on `ComplexityTier` from slice 'model-routing'. — src/features/delegation-categories/types.ts:54
What to do
- Keep slices independent: share cross-slice needs via an explicit contract/shared-kernel, not direct references between slices.
M1 · Documentation (README)
What to do
- Add a 'Testing' section to the root README — how to run the test suite.
- Add an 'Architecture' / 'How it works' section to the root README — the high-level shape.
M2 · Architecture documentation
What to do
- Grow the ADR log (currently 5) — reach 8 to raise the maturity tier; document significant decisions as they're made.
M3 · Folder & project structure
M4 · Documentation accuracy
P1 · CI/CD gates
P2 · Observability
- Only 2/3 runnable modules use logging (modules with no entry point or server are excluded — they are libraries a runnable module hosts). Silent: `.`.
What to do
- Extend structured logging to the remaining runnable modules so everything you run is diagnosable in production.
P3 · Security & performance tooling
- No static application security testing detected. For this repository's stack, add CodeQL's javascript-typescript pack, `semgrep --config=p/typescript`, or eslint-plugin-security as a CI step. What was searched, so you can tell an absence from a miss: the 63392 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge's web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen — if that is your case the row is wrong, and saying so is more useful than adding a second scanner.
What to do
- Add a SAST step to CI running what this repository's stack ships: CodeQL's javascript-typescript pack, `semgrep --config=p/typescript`, or eslint-plugin-security — so a security regression fails the build instead of landing.
- Enable Dependabot/Renovate or a dependency-review gate.
- Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P4 · Deployment & Rollback
P5 · DR & Backup
What to do
- Document RTO/RPO and a tested restore procedure (a backup config alone isn't disaster recovery).
- Enable purge protection / soft-delete (and prevent_destroy on critical resources) so data stores can't be lost to an accidental or malicious delete.
P6 · Release Hygiene
PF3 · Async & latency hygiene
- `main` is async and calls existsSync, mkdirSync, writeFileSync — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — benchmarks/harsh-critic/run-benchmark.ts:317
- `main` is async and calls existsSync, execSync, readFileSync — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — benchmarks/run-all.ts:227
- `main` is async and calls existsSync, spawnSync, mkdirSync, mkdtempSync, writeFileSync, readFileSync, rmSync — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — scripts/audit-multirepo-e2e.mjs:137
- `resolveOmcStateRoot` is async and calls existsSync, execFileSync — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. (×2) — scripts/lib/state-root.mjs:92, scripts/lib/state-root.cjs:84
- `resolveSessionStatePathsForHook` is async and calls existsSync — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. (×2) — scripts/lib/state-root.mjs:133, scripts/lib/state-root.cjs:126
- `main` is async and calls existsSync, unlinkSync, mkdirSync, writeFileSync — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — scripts/code-simplifier.mjs:82
- `resolveHudCacheContextPercent` is async and calls statSync — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — scripts/lib/context-usage.mjs:102
- `generateInventoryGraph` is async and calls existsSync — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — scripts/generate-inventory-graph.mjs:336
- `main` is async and calls readFileSync — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. (×2) — scripts/generate-inventory-graph.mjs:595, scripts/verify-generated-artifact-authorization.mjs:740
- `main` is async and calls existsSync — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. (×2) — scripts/generate-prompt-projections.mjs:22, scripts/persistent-mode.mjs:1113
- `main` is async and calls existsSync, readFileSync — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. (×2) — scripts/jev-eval.mjs:218, scripts/verify-deliverables.mjs:148
- `activateState` is async and calls mkdirSync, existsSync, readFileSync — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — scripts/keyword-detector.mjs:990
- `main` is async and calls existsSync, unlinkSync — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — REDACTED:903
- `initOmcDir` is async and calls existsSync, mkdirSync — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — scripts/post-tool-use-failure.mjs:299
- `main` is async and calls mkdirSync — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — scripts/post-tool-use-failure.mjs:396
- `getTodoStatus` is async and calls existsSync, readFileSync — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — REDACTED:891
- `main` is async and calls writeFileSync — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — REDACTED:329
- `main` is async and calls spawnSync — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — REDACTED:313
- `checkNpmUpdate` is async and calls existsSync, readFileSync — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — scripts/session-start.mjs:834
- `checkHudInstallation` is async and calls existsSync, readFileSync, readdirSync — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — scripts/session-start.mjs:956
- `main` is async and calls existsSync, readFileSync, readdirSync, lstatSync, readlinkSync, symlinkSync, renameSync, unlinkSync, rmSync, mkdirSync — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — scripts/session-start.mjs:1040
- `countUserTurns` is async and calls existsSync — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — scripts/session-summary.mjs:42
- `extractConversationContext` is async and calls existsSync — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — scripts/session-summary.mjs:70
- `checkProjectSkillTriggers` is async and calls existsSync, readdirSync, readFileSync — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — scripts/shipyard-audit.mjs:178
- `main` is async and calls existsSync, statSync — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — scripts/shipyard-audit.mjs:290
- `loadAutoresearchMissionContract` is async and calls existsSync, realpathSync — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — src/autoresearch/contracts.ts:204
- `writeGitInfoExclude` is async and calls existsSync — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — REDACTED:226
- `appendDecisionLog` is async and calls existsSync — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — REDACTED:244
- `ensureAutoresearchWorktreeDependencies` is async and calls existsSync — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — REDACTED:285
- `readActiveRunState` is async and calls existsSync — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — REDACTED:388
- `initializeAutoresearchResultsFile` is async and calls existsSync — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — REDACTED:494
- `appendAutoresearchResultsRow` is async and calls existsSync — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — REDACTED:500
- `appendAutoresearchLedgerEntry` is async and calls existsSync — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — REDACTED:521
- `readAutoresearchLedgerEntries` is async and calls existsSync — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — REDACTED:542
- `runAutoresearchEvaluator` is async and calls spawnSync — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — REDACTED:591
What to do
- TypeScript/JavaScript: use the promise APIs (fs/promises, a promisified child_process.execFile, the async zlib/crypto functions) and await them instead of the *Sync variants.
R1 · Type Safety
What to do
- Migrate the remaining .js/.jsx files to TypeScript.
R10 · Code Duplication
- 128 duplicated blocks under the repository root have copies in at least two of the sibling directories scripts, skills, src, templates — 110 of them are reported below, and 18 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 128 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 128 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 128 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — scripts/workflow-drift-guard.mjs:12
- 96 duplicated blocks under src/ have copies in at least two of the sibling directories agents, autoresearch, cli, config, features, graph (+15 more sibling(s) not listed) — 57 of them are reported below, and 39 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 96 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 96 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 96 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — src/interop/omx-team-state.ts:333
- 19 duplicated blocks under src/hooks/ have copies in at least two of the sibling directories auto-slash-command, autopilot, comment-checker, directory-readme-injector, empty-message-sanitizer, keyword-detector (+13 more sibling(s) not listed) — 11 of them are reported below, and 8 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 19 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 19 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 19 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — src/hooks/directory-readme-injector/index.ts:70
- 7 duplicated blocks under src/features/ have copies in at least two of the sibling directories background-agent, rate-limit-wait, session-friction-report, session-history-search — 6 of them are reported below, and 1 is counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 7 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 7 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 7 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — src/features/session-friction-report/index.ts:62
- scripts/workflow-drift-guard.mjs:12 · templates/hooks/workflow-drift-guard.mjs:12 — these 2 files are line-for-line copies of one another — 621 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done. — scripts/workflow-drift-guard.mjs:12
- scripts/keyword-detector.mjs:90 · templates/hooks/keyword-detector.mjs:43 — the two spans are one implementation copied and then locally edited — 3419 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — scripts/keyword-detector.mjs:90
- scripts/lib/precompact-restore.mjs:17 · templates/hooks/lib/precompact-restore.mjs:17 — these 2 files are line-for-line copies of one another — 438 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done. — scripts/lib/precompact-restore.mjs:17
- scripts/lib/state-lock.mjs:101 · REDACTED:128 — the two spans are one implementation copied and then locally edited — 2180 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — scripts/lib/state-lock.mjs:101
- scripts/lib/precompact-publisher.mjs:16 · templates/hooks/lib/precompact-publisher.mjs:16 — these 2 files are line-for-line copies of one another — 249 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done. — scripts/lib/precompact-publisher.mjs:16
- REDACTED:6 · REDACTED:6 — these 2 files are line-for-line copies of one another — 242 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done. — REDACTED:6
- scripts/persistent-mode.mjs:789 · templates/hooks/persistent-mode.mjs:456 — the two spans are one implementation copied and then locally edited — 2603 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — scripts/persistent-mode.mjs:789
- scripts/persistent-mode.mjs:1330 · templates/hooks/persistent-mode.mjs:1022 — the two spans are one implementation copied and then locally edited — 1710 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — scripts/persistent-mode.mjs:1330
- scripts/post-tool-use-failure.mjs:25 · templates/hooks/post-tool-use-failure.mjs:31 — the two spans are one implementation copied and then locally edited — 1167 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — scripts/post-tool-use-failure.mjs:25
- scripts/lib/workflow-profile-runtime.mjs:1 · templates/hooks/lib/workflow-profile-runtime.mjs:1 — these 2 files are line-for-line copies of one another — 154 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done. — scripts/lib/workflow-profile-runtime.mjs:1
- src/tools/memory-tools.ts:35 · src/tools/notepad-tools.ts:41 — the two spans are one implementation copied and then locally edited — 777 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — src/tools/memory-tools.ts:35
- REDACTED:166 · templates/hooks/pre-tool-use.mjs:158 — the two spans are one implementation copied and then locally edited — 1095 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — REDACTED:166
- scripts/keyword-detector.mjs:1258 · templates/hooks/keyword-detector.mjs:1206 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — scripts/keyword-detector.mjs:1258
- scripts/persistent-mode.mjs:1155 · templates/hooks/persistent-mode.mjs:938 — the two spans are one implementation copied and then locally edited — 753 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — scripts/persistent-mode.mjs:1155
- scripts/post-tool-verifier.mjs:525 · templates/hooks/post-tool-use.mjs:42 — the two spans are one implementation copied and then locally edited — 638 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — scripts/post-tool-verifier.mjs:525
- src/hooks/omc-orchestrator/index.ts:131 · templates/hooks/pre-tool-use.mjs:390 — the two spans are one implementation copied and then locally edited — 1159 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — src/hooks/omc-orchestrator/index.ts:131
- scripts/code-simplifier.mjs:19 · templates/hooks/code-simplifier.mjs:19 — these 2 files are line-for-line copies of one another — 91 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done. — scripts/code-simplifier.mjs:19
- scripts/persistent-mode.mjs:610 · templates/hooks/persistent-mode.mjs:619 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — scripts/persistent-mode.mjs:610
- scripts/persistent-mode.mjs:404 · templates/hooks/persistent-mode.mjs:284 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — scripts/persistent-mode.mjs:404
- scripts/lib/stdin.mjs:21 · templates/hooks/lib/stdin.mjs:19 — these 2 files are line-for-line copies of one another — 77 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done. — scripts/lib/stdin.mjs:21
- REDACTED:354 · scripts/persistent-mode.mjs:440 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — REDACTED:354
- scripts/lib/state-root.cjs:20 · scripts/lib/state-root.mjs:21 · templates/hooks/lib/state-root.mjs:21 — these 3 files are line-for-line copies of one another — 74 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done. — scripts/lib/state-root.cjs:20
- REDACTED:816 · scripts/persistent-mode.mjs:1026 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — REDACTED:816
- src/hooks/directory-readme-injector/index.ts:70 · src/hooks/rules-injector/index.ts:54 — the two spans are one implementation copied and then locally edited — 401 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — src/hooks/directory-readme-injector/index.ts:70
- scripts/post-tool-directory-context-injector.mjs:25 · scripts/post-tool-rules-injector.mjs:22 — the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. — scripts/post-tool-directory-context-injector.mjs:25
- src/hud/elements/limits.ts:64 · src/hud/elements/limits.ts:232 — the two spans are one implementation copied and then locally edited — 707 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — src/hud/elements/limits.ts:64
- src/hooks/learner/bridge.ts:335 · src/hooks/learner/finder.ts:16 — the two spans are one implementation copied and then locally edited — 416 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — src/hooks/learner/bridge.ts:335
- REDACTED:102 · src/hooks/persistent-mode/idle-repo-state.ts:35 — the two spans are one implementation copied and then locally edited — 436 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — REDACTED:102
- scripts/persistent-mode.mjs:29 · templates/hooks/persistent-mode.mjs:26 — the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. — scripts/persistent-mode.mjs:29
- scripts/session-start.mjs:1425 · REDACTED:776 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — scripts/session-start.mjs:1425
- scripts/persistent-mode.mjs:182 · templates/hooks/persistent-mode.mjs:135 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — scripts/persistent-mode.mjs:182
- src/team/dispatch-queue.ts:300 · src/team/team-ops.ts:867 — the two spans are one implementation copied and then locally edited — 502 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — src/team/dispatch-queue.ts:300
- scripts/skill-injector.mjs:501 · src/hooks/learner/index.ts:56 — the two spans are one implementation copied and then locally edited — 341 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — scripts/skill-injector.mjs:501
- src/notifications/reply-listener.ts:611 · src/notifications/reply-listener.ts:795 — the two spans are one implementation copied and then locally edited — 266 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — src/notifications/reply-listener.ts:611
- src/team/team-ops.ts:779 · src/team/tmux-comm.ts:26 — the two spans are one implementation copied and then locally edited — 536 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — src/team/team-ops.ts:779
- src/tools/shared-memory-tools.ts:81 · src/tools/shared-memory-tools.ts:200 — the two spans are one implementation copied and then locally edited — 325 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — src/tools/shared-memory-tools.ts:81
What to do
- Act on each finding's own remediation rather than one rule: the move depends on what recurs. Where the copies are executable blocks, give the shared part one home and call it from each site; where they are declarations, a listing, a specialisation already delegating to its base, or one shape repeated per entity, there is no call site and the move is a shared type, a generated set or a factory — sometimes there is nothing to extract.
R11 · Import Boundaries
- src/features/__tests__/checkpoint.test.ts:12 imports src/features/checkpoint/index.ts against the feature-sliced rules. — src/features/__tests__/checkpoint.test.ts:12
- src/features/__tests__/jev-model-routing.test.ts:15 imports src/features/jev-model-routing.ts against the feature-sliced rules. — src/features/__tests__/jev-model-routing.test.ts:15
- src/features/__tests__/jev-model-routing.test.ts:16 imports src/features/delegation-enforcer.ts against the feature-sliced rules. — src/features/__tests__/jev-model-routing.test.ts:16
- src/features/__tests__/jev-slop-warning.test.ts:5 imports src/features/jev-slop-warning.ts against the feature-sliced rules. — src/features/__tests__/jev-slop-warning.test.ts:5
- src/features/__tests__/magic-keywords.test.ts:3 imports src/features/magic-keywords.ts against the feature-sliced rules. — src/features/__tests__/magic-keywords.test.ts:3
- src/features/delegation-enforcer.ts:19 imports src/features/delegation-routing/types.ts against the feature-sliced rules. — src/features/delegation-enforcer.ts:19
- src/features/delegation-enforcer.ts:22 imports src/features/builtin-skills/skills.ts against the feature-sliced rules. — src/features/delegation-enforcer.ts:22
- src/features/index.ts:55 imports src/features/boulder-state/index.ts against the feature-sliced rules. — src/features/index.ts:55
- src/features/index.ts:84 imports src/features/context-injector/index.ts against the feature-sliced rules. — src/features/index.ts:84
- src/features/index.ts:105 imports src/features/background-agent/index.ts against the feature-sliced rules. — src/features/index.ts:105
- src/features/index.ts:122 imports src/features/builtin-skills/index.ts against the feature-sliced rules. — src/features/index.ts:122
- src/features/index.ts:134 imports src/features/session-friction-report/index.ts against the feature-sliced rules. — src/features/index.ts:134
- src/features/index.ts:143 imports src/features/model-routing/index.ts against the feature-sliced rules. — src/features/index.ts:143
- src/features/index.ts:198 imports src/features/notepad-wisdom/index.ts against the feature-sliced rules. — src/features/index.ts:198
- src/features/index.ts:214 imports src/features/delegation-categories/index.ts against the feature-sliced rules. — src/features/index.ts:214
- src/features/index.ts:239 imports src/features/state-manager/index.ts against the feature-sliced rules. — src/features/index.ts:239
- src/features/index.ts:272 imports src/features/verification/index.ts against the feature-sliced rules. — src/features/index.ts:272
- src/features/index.ts:295 imports src/features/task-decomposer/index.ts against the feature-sliced rules. — src/features/index.ts:295
- src/features/index.ts:318 imports src/features/session-history-search/index.ts against the feature-sliced rules. — src/features/index.ts:318
- src/features/index.ts:326 imports src/features/agent-addressability/index.ts against the feature-sliced rules. — src/features/index.ts:326
- src/features/index.ts:343 imports src/features/lookout/index.ts against the feature-sliced rules. — src/features/index.ts:343
- src/features/notepad-wisdom/index.ts:11 imports src/features/boulder-state/constants.ts against the feature-sliced rules. — src/features/notepad-wisdom/index.ts:11
What to do
- Fix the listed violations: respect the layer/slice order — import only through a slice's public index and never upward into a higher layer (22 rows).
R2 · Cyclomatic Complexity
- executeTeamApiOperation has cyclomatic complexity 258 and cognitive complexity 285; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — src/team/api-interop.ts:659
- main has cyclomatic complexity 160 and cognitive complexity 274; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — scripts/persistent-mode.mjs:1113
- main has cyclomatic complexity 136 and cognitive complexity 245; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — templates/hooks/persistent-mode.mjs:909
- handler has cyclomatic complexity 133 and cognitive complexity 210; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — src/tools/state-tools.ts:1544
- render has cyclomatic complexity 133 and cognitive complexity 201; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — src/hud/render.ts:233
- main has cyclomatic complexity 127 and cognitive complexity 222; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — REDACTED:903
- processCliWorkerVerdictsUnderLock has cyclomatic complexity 124 and cognitive complexity 244; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — src/team/runtime-v2.ts:4735
- createTeamSession has cyclomatic complexity 113 and cognitive complexity 254; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — src/team/tmux-session.ts:1898
- main has cyclomatic complexity 105 and cognitive complexity 225; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — scripts/session-start.mjs:1040
- (anonymous) has cyclomatic complexity 102 and cognitive complexity 175; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — src/team/scaling.ts:295
- (anonymous) has cyclomatic complexity 100 and cognitive complexity 102; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — REDACTED:299
- install has cyclomatic complexity 99 and cognitive complexity 156; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — src/installer/index.ts:2443
- runPersistentRecoveryOwnerLoop has cyclomatic complexity 96 and cognitive complexity 103; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — src/team/runtime-cli.ts:477
- (anonymous) has cyclomatic complexity 94 and cognitive complexity 156; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — src/team/runtime-v2.ts:3982
- verifyLiveGitHubEvidence has cyclomatic complexity 92 and cognitive complexity 134; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — scripts/verify-epic-3698-closure.mjs:352
- main has cyclomatic complexity 91 and cognitive complexity 130; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — REDACTED:1666
- checkExactHeadCi has cyclomatic complexity 89 and cognitive complexity 149; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — scripts/verify-epic-3698-closure.mjs:605
- main has cyclomatic complexity 85 and cognitive complexity 108; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — scripts/keyword-detector.mjs:1654
- shutdownTeamV2 has cyclomatic complexity 79 and cognitive complexity 153; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — src/team/runtime-v2.ts:5667
- mainImpl has cyclomatic complexity 79 and cognitive complexity 95; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — src/hud/index.ts:256
What to do
- Break down the listed branch-heavy functions; aim P95 cyclomatic ≤ 5.
R3 · Large Files
- 127 file(s) over 400 lines (counted as significant lines — blank lines excluded — over production source only, tests excluded), largest first: src/team/runtime-v2.ts (6023), src/team/tmux-session.ts (3767), src/hooks/bridge.ts (3134), src/installer/index.ts (2539), src/tools/state-tools.ts (2442), src/team/worker-launch-ack.ts (2425) (+121 more).
What to do
- Split each oversized file along the responsibilities already in it, into smaller focused modules in the same package.
R4 · Test Coverage
- No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one. (×40) — scripts/verify-epic-3698-closure.mjs, templates/hooks/keyword-detector.mjs, scripts/lib/precompact-restore.mjs, …
What to do
- Add tests that import the unreached modules (directly or through their public entry).
R5 · Dependency Freshness
What to do
- Bump outdated dependencies to current versions to limit upgrade debt.
R6 · Tooling
R7 · Dead Code
- Unreachable from the 278 application, 93 tooling and 851 test entry point(s) detected in this repo. Gate removals on `npm run build` — an undetected custom entry would make these reachable.
- no import path from any entry point (278 application, 93 tooling, 851 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make (×15) — scripts/lib/precompact-restore.mjs, src/agents/prompt-sections/index.ts, scripts/test-remember-tags.ts, …
- no import path from any entry point (278 application, 93 tooling, 851 test roots considered), but 2 in-repo import(s) from 1 other file(s) do name it (src/mcp/index.ts) — every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it — src/mcp/mcp-config.ts
- Nothing imports this binding — it is safe to review for removal. (×15) — benchmarks/shared/types.ts:167, benchmarks/shared/types.ts:177, benchmarks/shared/types.ts:178, …
- Nothing ultimately consumes this binding: its only referrer is the re-export in src/agents/prompt-ssot/index.ts, whose re-exported name has no consumer either. Removing it is therefore not a one-file change — drop the re-export line in src/agents/prompt-ssot/index.ts in the same commit, or the barrel will import a name that no longer exists. (×2) — src/agents/prompt-ssot/manifest.ts:53, src/agents/prompt-ssot/sections.ts:253
- Nothing ultimately consumes this binding: its only referrer is the re-export in src/features/delegation-routing/index.ts, whose re-exported name has no consumer either. Removing it is therefore not a one-file change — drop the re-export line in src/features/delegation-routing/index.ts in the same commit, or the barrel will import a name that no longer exists. — src/features/delegation-routing/types.ts:22
- Nothing ultimately consumes this binding: its only referrer is the re-export in src/hooks/factcheck/index.ts, whose re-exported name has no consumer either. Removing it is therefore not a one-file change — drop the re-export line in src/hooks/factcheck/index.ts in the same commit, or the barrel will import a name that no longer exists. — src/hooks/factcheck/config.ts:136
- Nothing ultimately consumes this binding: its only referrer is the re-export in src/hooks/merge-readiness/index.ts, whose re-exported name has no consumer either. Removing it is therefore not a one-file change — drop the re-export line in src/hooks/merge-readiness/index.ts in the same commit, or the barrel will import a name that no longer exists. (×3) — src/hooks/merge-readiness/runtime.ts:828, src/hooks/merge-readiness/runtime.ts:849, src/hooks/merge-readiness/runtime.ts:859
- Nothing ultimately consumes this binding: its only referrer is the re-export in src/hooks/registry/index.ts, whose re-exported name has no consumer either. Removing it is therefore not a one-file change — drop the re-export line in src/hooks/registry/index.ts in the same commit, or the barrel will import a name that no longer exists. — src/hooks/registry/cutover.ts:34
What to do
- Delete the dead files and unused exports — every line is maintenance cost and rebuild-estimate inflation with zero runtime value.
R8 · Dependency Hygiene
R9 · Circular Imports
- src/features/builtin-skills/runtime-guidance.ts → REDACTED → src/features/delegation-enforcer.ts → src/features/builtin-skills/skills.ts → src/features/builtin-skills/runtime-guidance.ts — src/features/builtin-skills/runtime-guidance.ts
- src/hooks/autopilot/enforcement.ts → src/hooks/persistent-mode/index.ts → src/hooks/autopilot/enforcement.ts (one verified cycle inside a mutually-dependent group of 3 files) — src/hooks/autopilot/enforcement.ts
- src/hooks/autopilot/named-workflow-resume-validator.ts → src/hooks/autopilot/pipeline.ts → src/hooks/autopilot/named-workflow-resume-validator.ts (one verified cycle inside a mutually-dependent group of 3 files) — src/hooks/autopilot/named-workflow-resume-validator.ts
- src/hooks/code-simplifier/index.ts → src/hooks/code-simplifier/jev-shadow.ts → src/hooks/code-simplifier/index.ts — src/hooks/code-simplifier/index.ts
- src/hooks/learner/detection-hook.ts → src/hooks/learner/index.ts → src/hooks/learner/detection-hook.ts — src/hooks/learner/detection-hook.ts
- src/hud/background-cleanup.ts → src/hud/state.ts → src/hud/background-cleanup.ts — src/hud/background-cleanup.ts
- src/tools/diagnostics/index.ts → src/tools/diagnostics/lsp-aggregator.ts → src/tools/diagnostics/index.ts — src/tools/diagnostics/index.ts
What to do
- Break each cycle by extracting the shared piece into a module both sides can import.
Reference — by lens
| Lens | Score | Rating | Impact |
|---|---|---|---|
| Code Health | 61% | Adequate — gated by R3 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Architecture | 51% | Adequate — gated by D26, R9 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Maturity | 80% | Strong | Strongest area. |
| Readiness | 53% | Adequate — gated by P3 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Security | 76% | Adequate — gated by D29 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Performance | 60% | Adequate | Acceptable, with room to improve. |
Not evidenced — 3 control(s) we could not find positive evidence for
- C3 Audit Trail — Not assessed: these audit controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks audit controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
- C4 Data Retention — Not assessed: these retention controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks retention controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
- C5 Data-Subject Rights — Not assessed: these data-subject rights controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks data-subject rights controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
Not included — 79 check(s) not relevant to this codebase
- AC1 Text alternatives — No web markup found — accessibility is not applicable to this repository.
- AC2 Forms & labels — No web markup found — accessibility is not applicable to this repository.
- AC3 Page structure — No web markup found — accessibility is not applicable to this repository.
- AC4 Keyboard semantics — No web markup found — accessibility is not applicable to this repository.
- AC5 ARIA correctness — No web markup found — accessibility is not applicable to this repository.
- AC6 Visual & motion safety — No web markup found — accessibility is not applicable to this repository.
- AC7 A11y enforcement — No web markup found — accessibility is not applicable to this repository.
- AX1 Captive dependencies — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- AX2 Stateful singletons — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- AX4 Dependency direction — not applicable to a vertical-slice architecture (the inward-dependency rule is for layered/clean styles)
- AX6 Interface segregation — not assessed — interface segregation is computed over a type surface that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- AX8 Test isolation — no test/production split to check
- AX9 CQS / query purity — no CQRS query handlers detected — query purity is not applicable to this codebase
- AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- AXR1 Runtime accessibility — compose up failed (exit 17 — an image could not be built) — time="2026-09-28T11:23:52Z" level=warning msg="The \"ANTHROPIC_AUTH_TOKEN\" variable is not set. Defaulting to a blank string." failed to solve: python:3.11-slim: failed to resolve source metadata for docker.io/library/python:3.11-slim: failed to do request: Head "https://registry-1.docker.io/v2/library/python/manifests/3.11-slim": Forbidden; runtime evidence skipped This is a statement about this run, not a statement about your application: nothing here says the surface is inaccessible, only that it was never rendered.
- C1 Data Protection — Not assessed: these personal data controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks personal data controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
- C2 Access Controls — Not assessed: these authorization controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks authorization controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
- D1 Cyclomatic Complexity — cyclomatic complexity not measured — .cjs, .js exposed no member bodies
- D11 Test Reliability — Test reliability not measured — JavaScript/TypeScript suite did not run
- D12 Dependency Hygiene — Not scored — 0 shipped Python distribution(s) were read, but the outdated signal needs pypi.org, and no declaration here carries an exact pin to ask about — a floor or a range installs the newest release it admits and cannot be behind one, so this dimension's own question is only partly answered. NOT a finding that these dependencies are current or healthy.
- D18 Solution Shape — D18 scores the shape of a .NET solution; this repository has no .NET solution or project files, so the dimension does not apply.
- D2 Cognitive Complexity — cognitive complexity not measured — .cjs, .js exposed no member bodies
- D22 Internal API Consistency — The exposed public-API surface could not be collected — no C#/VB projects loaded.
- D23 Boundary Type-Coupling — No bounded-context organisation was detected either — neither a context-shaped layout nor 2+ sibling source directories each declaring an aggregate root. Declaring this codebase's bounded contexts (≥2) would let cross-boundary type coupling be assessed. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the module-path or namespace prefixes that belong to it — e.g. `architecture:` → `contexts:` → `Billing: ["src/billing", "Acme.Billing"]`, `Catalog: ["src/catalog", "Acme.Catalog"]`.
- D24 Comment Value — No inline comments to assess — comment value is not applicable here.
- D27 Navigability — D27 reads resolved call sites in the languages it reads only — this repository's production source is .c, .py, which was left unread. Not scored: this is a gap in the analyzer, not a verdict about this repository.
- D3 God Classes — Most of this repository's production source (.cjs, .js) was not read by god-class detection, so class size was not assessed for the languages that are the product — whatever else this pass did read is not this repository's class size. Not scored — this is a gap in the analyzer, not a verdict about this repository.
- D39 IL Efficiency — D39 measures the IL emitted by a .NET build; this repository has no .NET solution or project files, so the dimension does not apply.
- D4 Code Duplication — This repository's production source (.cjs, .js, .mjs, .ts) is not read by D4's token comparison, which compares .NET source: duplication in it is measured by R10 Code Duplication, the frontend lens's card running the same clone algorithm over the JS/TS token stream. Not scored here — read the R10 card for this repository's duplication.
- D40 Network Egress Confinement — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
- D41 Kernel & Syscall Confinement — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
- D42 Runtime Threat Enforcement — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
- D5 Coupling — Not applicable — this npm build ships 1 production module(s), so there is no coupling BETWEEN modules to measure. (Its test and non-production modules are not part of the shipped graph.)
- D6 Cohesion (LCOM4) — D6 reads a CS/VB/GO/SCALA/SWIFT/DART/JAVA/PY/KT class graph only — this repository's production source is .c, .ts, which was left unread. Not scored: this is a gap in the analyzer, not a verdict about this repository.
- D8 Code Coverage — Coverage NOT MEASURED: the JavaScript/TypeScript half could not be measured — the repository root runs vitest but declares no coverage provider, so the suite can run and still produce no lcov — add `@vitest/coverage-v8` (or `@vitest/coverage-istanbul`) as a devDependency. Coverage is excluded from the score rather than counted as a near-zero. The named suite step is one the repository's maintainers can perform; once it passes, the real number is measured on the next scan. Alternatively, commit the lcov/Cobertura report your CI produces and it is read without a re-run.
- DM1 Domain Modelling — not scored — this repository shows only 1 of the 3 signals this lens looks for (3 value object(s))
- ED1 Event-Driven — not scored — this repository shows none of the 3 signals this lens looks for
- ED5 Idempotency — This check finds retry-prone mutations (command handlers and message/event consumers) by walking the repository's declared types, and none was loaded here, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- ES1 Event Sourcing — not scored — this repository shows none of the 3 signals this lens looks for
- GD1 Unfinished & placeholder code — no source files were read — this check reads C# syntax, and none was loaded for this repository. That is a limit of the analyzer, not a finding about your code.
- IC1 Incompleteness & stubs — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- P10 Library API & versioning — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- P12 CI test-gate honesty — Reported, not scored — and nothing was matched here. The coverage check applies to any stack, and the automatic-re-run check to any GitHub-Actions workflow, but the checks for excluded tests, skipped tests and sleep-based synchronisation currently recognise only some ecosystems' test-runner idioms, so on a repository built with another stack the zeros below mean 'not checked', not 'clean'.
- P7 Outbound HTTP resilience — not applicable — no HTTP server, API framework or worker entry point was found in the JavaScript/TypeScript, Python source, so there is no service whose uptime a failing dependency could take down
- P8 Schema migrations — no ORM, schema-migration tool or schema auto-create was found in this repository's dependency manifests or source, so there is no database schema for this check to judge
- P9 Domain vs controller coverage — no coverage report found on disk — produce a coverage report in a standard format (lcov — `vitest --coverage --coverage.reporter=lcovonly`) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures, or wire coverage collection into CI, to enable this cross-layer check
- PF1 Benchmark discipline — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- PF2 Allocation hygiene — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- S1 Web-Security Posture — Not assessed: these web-security controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks web-security controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
- SC1 Supply-chain hygiene — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- X1 Async correctness — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X10 Duplicated predicate — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X12 Unreachable branch — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X13 Undrained process stream — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X14 Bypassable address classification — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X15 Unvalidated length from an untrusted reader — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X16 Unfloored truncation loop — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X17 Uncapped recursion over a caller-supplied document — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X18 Disposal-pattern correctness — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X19 Unrestored process-global state — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X2 Cancellation propagation — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X20 Mistyped argument guard — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X21 Side-effecting pattern guard — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X22 Contradicted release guard — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X23 Unguarded diagnostic materialisation — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X24 Document value interpolated into markup unescaped — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X25 Inert configuration knob — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X26 Unsynchronised callback handoff — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X27 Collection changed while being enumerated — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X28 Index access outside its own emptiness guard — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X29 Per-element action decided by a fixed element — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X3 Exception handling — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X30 Support guard that admits what it rejects — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X32 Type resolved by simple name across every loaded assembly — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X4 Structured logging — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X5 Nullable reference types — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X6 Hand-rolled structured-format parsing — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X7 Silent fallback defaults — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X9 Subsumed condition operand — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
Appendix A — Findings (grouped)
Critical — 66 finding(s)
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- Import cycle (2 files) src/hooks/autopilot/enforcement.ts
- Import cycle (2 files) src/hooks/autopilot/named-workflow-resume-validator.ts
- Import cycle (2 files) src/hooks/code-simplifier/index.ts
- Import cycle (2 files) src/hooks/learner/detection-hook.ts
- Import cycle (2 files) src/hud/background-cleanup.ts
- Import cycle (2 files) src/tools/diagnostics/index.ts
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- Orphaned knowledge benchmark/analyze_failures.py
- Import cycle (4 files) src/features/builtin-skills/runtime-guidance.ts
Serious — 414 finding(s)
- Hotspot: src/team/runtime-v2.ts src/team/runtime-v2.ts:2584
- Hotspot: templates/hooks/pre-tool-use.mjs templates/hooks/pre-tool-use.mjs:959
- Hotspot: src/team/scaling.ts src/team/scaling.ts:277
- Hotspot: scripts/run.cjs scripts/run.cjs:410
- Hotspot: src/team/worker-launch-ack.ts src/team/worker-launch-ack.ts:1964
- Hotspot: src/features/lookout/command-parser.ts src/features/lookout/command-parser.ts:186
- Hotspot: scripts/verify-epic-3698-closure.mjs scripts/verify-epic-3698-closure.mjs:352
- Hotspot: scripts/session-start.mjs scripts/session-start.mjs:1040
- Hotspot: src/hooks/persistent-mode/index.ts src/hooks/persistent-mode/index.ts:1144
- Hotspot: src/team/tmux-session.ts src/team/tmux-session.ts:1898
- Hotspot: scripts/persistent-mode.mjs scripts/persistent-mode.mjs:1113
- Hotspot: src/features/lookout/index.ts src/features/lookout/index.ts:541
- Hotspot: REDACTED REDACTED:1666
- Hotspot: src/team/api-interop.ts src/team/api-interop.ts:659
- Hotspot: src/lib/worktree-paths.ts src/lib/worktree-paths.ts:1151
- Hotspot: src/installer/index.ts src/installer/index.ts:2443
- Hotspot: REDACTED REDACTED:1344
- Hotspot: src/hooks/pre-compact/restore.ts src/hooks/pre-compact/restore.ts:264
- Hotspot: templates/hooks/persistent-mode.mjs templates/hooks/persistent-mode.mjs:909
- Hotspot: src/hooks/bridge.ts src/hooks/bridge.ts:2356
- Hotspot: scripts/keyword-detector.mjs scripts/keyword-detector.mjs:1654
- Hotspot: scripts/lib/precompact-restore.mjs scripts/lib/precompact-restore.mjs:193
- Hotspot: templates/hooks/lib/precompact-restore.mjs templates/hooks/lib/precompact-restore.mjs:193
- Hotspot: templates/hooks/keyword-detector.mjs templates/hooks/keyword-detector.mjs:1497
- Hotspot: REDACTED REDACTED:903
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- Sync-over-async blocking benchmarks/harsh-critic/run-benchmark.ts:317
- Sync-over-async blocking benchmarks/run-all.ts:227
- Sync-over-async blocking scripts/audit-multirepo-e2e.mjs:137
- Sync-over-async blocking scripts/lib/state-root.mjs:92
- Sync-over-async blocking scripts/lib/state-root.mjs:133
- Sync-over-async blocking scripts/code-simplifier.mjs:82
- Sync-over-async blocking scripts/lib/context-usage.mjs:102
- Sync-over-async blocking scripts/generate-inventory-graph.mjs:336
- Sync-over-async blocking scripts/generate-inventory-graph.mjs:595
- Sync-over-async blocking scripts/generate-prompt-projections.mjs:22
- Sync-over-async blocking scripts/jev-eval.mjs:218
- Sync-over-async blocking scripts/keyword-detector.mjs:990
- Sync-over-async blocking scripts/lib/state-root.cjs:84
- Sync-over-async blocking scripts/lib/state-root.cjs:126
- Sync-over-async blocking REDACTED:903
- Sync-over-async blocking scripts/persistent-mode.mjs:1113
- Sync-over-async blocking scripts/post-tool-use-failure.mjs:299
- Sync-over-async blocking scripts/post-tool-use-failure.mjs:396
- Sync-over-async blocking REDACTED:891
- Sync-over-async blocking REDACTED:329
- Sync-over-async blocking REDACTED:313
- Sync-over-async blocking scripts/session-start.mjs:834
- Sync-over-async blocking scripts/session-start.mjs:956
- Sync-over-async blocking scripts/session-start.mjs:1040
- Sync-over-async blocking scripts/session-summary.mjs:42
- No test reaches this file scripts/verify-epic-3698-closure.mjs
- No test reaches this file templates/hooks/keyword-detector.mjs
- No test reaches this file scripts/lib/precompact-restore.mjs
- No test reaches this file templates/hooks/lib/precompact-restore.mjs
- No test reaches this file scripts/smoke-multirepo.mjs
- No test reaches this file scripts/test-notepad-integration.ts
- No test reaches this file scripts/audit-multirepo-e2e.mjs
- No test reaches this file templates/hooks/post-tool-use-failure.mjs
- No test reaches this file REDACTED
- No test reaches this file REDACTED
- No test reaches this file templates/hooks/lib/precompact-publisher.mjs
- No test reaches this file templates/hooks/post-tool-use.mjs
- No test reaches this file scripts/collect-epic-3698-ci-evidence.mjs
- No test reaches this file scripts/context-guard-stop.mjs
- No test reaches this file scripts/session-summary.mjs
- No test reaches this file scripts/repair-plugin-cache.mjs
- No test reaches this file scripts/verify-deliverables.mjs
- No test reaches this file src/agents/prompt-sections/index.ts
- No test reaches this file skills/self-improve/scripts/resolve-paths.mjs
- No test reaches this file scripts/cleanup-orphans.mjs
- No test reaches this file scripts/verify-graph-contained-fs.mjs
- No test reaches this file templates/hooks/lib/workflow-profile-runtime.mjs
- No test reaches this file scripts/openclaw-gateway-demo.mjs
- No test reaches this file templates/hooks/lib/state-root.mjs
- No test reaches this file src/tools/resume-session.ts
- No assertions: has no unguarded join(homedir(), ".claude") in runtime TypeScript src/__tests__/setup-contracts-regression.test.ts:133
- No assertions: has no $HOME/.claude without ${CLAUDE_CONFIG_DIR:-...} guard in scripts src/__tests__/setup-contracts-regression.test.ts:188
- No assertions: preflights jq before setup files use it for JSON mutation src/__tests__/setup-contracts-regression.test.ts:236
- No assertions: does not redirect jq output directly to live setup config/settings files src/__tests__/setup-contracts-regression.test.ts:245
- No assertions: has no join(__dirname, ...) outside getPackageDir() in installer src/__tests__/setup-contracts-regression.test.ts:288
- No assertions: getHooksSettingsConfig() produces no absolute node paths (default config) src/__tests__/setup-contracts-regression.test.ts:315
- No assertions: agents/*.md have no unguarded ~/.claude references src/__tests__/setup-contracts-regression.test.ts:385
- No assertions: docs/CLAUDE.md (the installed template) has no unguarded ~/.claude references src/__tests__/setup-contracts-regression.test.ts:397
- No assertions: all hook commands reference ${CLAUDE_PLUGIN_ROOT} src/__tests__/setup-contracts-regression.test.ts:440
- No assertions: source hook commands do not hardcode /bin/sh so native Windows can spawn them src/__tests__/setup-contracts-regression.test.ts:467
- No assertions: source hook commands use direct node run.cjs without sh/find-node bootstraps src/__tests__/setup-contracts-regression.test.ts:494
- No assertions: no hook command contains an absolute node binary path src/__tests__/setup-contracts-regression.test.ts:523
- No assertions: should have no duplicate extension mappings across servers src/__tests__/lsp-servers.test.ts:69
- No assertions: triggers the dynamic import when OMC_OPENCLAW === '1' src/hooks/__tests__/bridge-openclaw.test.ts:23
- No assertions: passes context fields through to wakeOpenClaw src/hooks/__tests__/bridge-openclaw.test.ts:90
- No assertions: no command contains an absolute path to a node binary src/installer/__tests__/hook-command-portability.test.ts:64
- No assertions: no command contains a hardcoded home directory path src/installer/__tests__/hook-command-portability.test.ts:96
- No assertions: has no duplicate tool names src/mcp/__tests__/standalone-listtools.test.ts:59
- No assertions: uses default interval of 3000ms when no opts provided src/team/__tests__/worker-commit-cadence.test.ts:301
- No assertions: generated overlay rejects all disallowed control bytes (NUL, BEL, BS, etc.) src/team/__tests__/worker-bootstrap.test.ts:232
- No assertions: allows unset OMC_RUNTIME_V2 because runtime v2 is default-on src/team/__tests__/merge-orchestrator.test.ts:332
- No assertions: no-op for nonexistent team src/team/__tests__/heartbeat.test.ts:124
- No assertions: does nothing if log does not exist src/team/__tests__/audit-log.test.ts:282
- No assertions: keeps every scenario decidable: expected actions or human questions, never silence tests/harbor-scenarios.test.ts:25
- No assertions: constrains states and forbidden actions to the declared vocabulary tests/harbor-scenarios.test.ts:35
- Repeated repair: src/hooks/ralph/loop.ts src/hooks/ralph/loop.ts:228
- Repeated repair: scripts/lib/state-root.cjs scripts/lib/state-root.cjs:84
- Repeated repair: scripts/lib/state-root.mjs scripts/lib/state-root.mjs:92
- Repeated repair: templates/hooks/lib/state-root.mjs templates/hooks/lib/state-root.mjs:92
- Repeated repair: src/team/worker-bootstrap.ts src/team/worker-bootstrap.ts:125
- Repeated repair: src/team/state-paths.ts src/team/state-paths.ts:58
- Repeated repair: src/hud/types.ts src/hud/types.ts:591
- Repeated repair: src/hooks/autopilot/state.ts src/hooks/autopilot/state.ts:64
- Repeated repair: REDACTED REDACTED:276
- Repeated repair: src/graph/runtime/run-dir.ts src/graph/runtime/run-dir.ts:160
- Repeated repair: src/graph/runtime/executors/command.ts src/graph/runtime/executors/command.ts:196
- Repeated repair: src/cli/graph.ts src/cli/graph.ts:227
- Repeated repair: scripts/plugin-setup.mjs scripts/plugin-setup.mjs:155
- Repeated repair: REDACTED REDACTED:164
- Repeated repair: src/hooks/todo-continuation/index.ts src/hooks/todo-continuation/index.ts:325
- Repeated repair: scripts/session-end.mjs scripts/session-end.mjs:9
- Repeated repair: src/index.ts src/index.ts:299
- Repeated repair: src/cli/lookout.ts src/cli/lookout.ts:78
- Repeated repair: src/tools/ast-tools.ts src/tools/ast-tools.ts:208
- Repeated repair: src/hooks/omc-orchestrator/index.ts src/hooks/omc-orchestrator/index.ts:202
- Repeated repair: src/team/stage-router.ts src/team/stage-router.ts:135
- Repeated repair: src/hud/stdin.ts src/hud/stdin.ts:148
- Repeated repair: src/tools/wiki-tools.ts src/tools/wiki-tools.ts:42
- Repeated repair: scripts/code-simplifier.mjs scripts/code-simplifier.mjs:82
- Boundary violation [fsd:cross-slice] src/features/__tests__/checkpoint.test.ts:12
- Boundary violation [fsd:cross-slice] src/features/__tests__/jev-model-routing.test.ts:15
- Boundary violation [fsd:cross-slice] src/features/__tests__/jev-model-routing.test.ts:16
- Boundary violation [fsd:cross-slice] src/features/__tests__/jev-slop-warning.test.ts:5
- Boundary violation [fsd:cross-slice] src/features/__tests__/magic-keywords.test.ts:3
- Boundary violation [fsd:cross-slice] src/features/delegation-enforcer.ts:19
- Boundary violation [fsd:cross-slice] src/features/delegation-enforcer.ts:22
- Boundary violation [fsd:cross-slice] src/features/index.ts:55
- Boundary violation [fsd:cross-slice] src/features/index.ts:84
- Boundary violation [fsd:cross-slice] src/features/index.ts:105
- Boundary violation [fsd:cross-slice] src/features/index.ts:122
- Boundary violation [fsd:cross-slice] src/features/index.ts:134
- Boundary violation [fsd:cross-slice] src/features/index.ts:143
- Boundary violation [fsd:cross-slice] src/features/index.ts:198
- Boundary violation [fsd:cross-slice] src/features/index.ts:214
- Boundary violation [fsd:cross-slice] src/features/index.ts:239
- Boundary violation [fsd:cross-slice] src/features/index.ts:272
- Boundary violation [fsd:cross-slice] src/features/index.ts:295
- Boundary violation [fsd:cross-slice] src/features/index.ts:318
- Boundary violation [fsd:cross-slice] src/features/index.ts:326
- Boundary violation [fsd:cross-slice] src/features/index.ts:343
- Boundary violation [fsd:cross-slice] src/features/notepad-wisdom/index.ts:11
- TodoComment src/__tests__/installer.test.ts:603
- TodoComment src/__tests__/installer.test.ts:617
- TodoComment src/__tests__/installer.test.ts:618
- TodoComment src/features/continuation-enforcement.ts:52
- TodoComment src/hooks/index.ts:119
- TodoComment src/hooks/pre-compact/index.ts:444
- TodoComment REDACTED:686
- Duplicated block with local edits (50 matched lines × 2 locations) scripts/skill-injector.mjs:501
- Duplicated block with local edits (50 matched lines × 2 locations) src/notifications/reply-listener.ts:611
- Duplicated block with local edits (50 matched lines × 2 locations) src/team/team-ops.ts:779
- Dead file (~27 LoC) src/config/index.ts
- Dead file (~27 LoC) src/hooks/setup/types.ts
- Dead file (~27 LoC) src/hud/elements/index.ts
- Cross-slice coupling: delegation-categories → model-routing src/features/delegation-categories/types.ts:30
- Cross-slice coupling: delegation-categories → model-routing src/features/delegation-categories/types.ts:54
- REDACTED
- REDACTED
- Decision is a thin one-line statement with no context (why replace heuristics with Jev) and no consequences/trade-offs docs/adr/03665-jev-degradation-contract.md
- Decision is real but consequences/trade-offs are unstated: why one-shot child-process over stdin JSON rather than in-process TS imports or a local daemon; what happens if the resolver ever blocks tool execution docs/adr/03671-script-side-judgment-channel.md
- REDACTED
- Coverage not measured — JavaScript/TypeScript suite
- Duplication concentrated across 4 sibling directories (128 clone groups) scripts/workflow-drift-guard.mjs:12
- Duplication concentrated across 21 sibling directories (96 clone groups) src/interop/omx-team-state.ts:333
- Duplication concentrated across 19 sibling directories (19 clone groups) src/hooks/directory-readme-injector/index.ts:70
- Duplication concentrated across 4 sibling directories (7 clone groups) src/features/session-friction-report/index.ts:62
- Wholesale file copy (621 identical lines × 2 files) scripts/workflow-drift-guard.mjs:12
- Duplicated block with local edits (553 matched lines × 2 locations) scripts/keyword-detector.mjs:90
- Wholesale file copy (438 identical lines × 2 files) scripts/lib/precompact-restore.mjs:17
- Duplicated block with local edits (344 matched lines × 2 locations) scripts/lib/state-lock.mjs:101
- Wholesale file copy (249 identical lines × 2 files) scripts/lib/precompact-publisher.mjs:16
- Wholesale file copy (242 identical lines × 2 files) REDACTED:6
- Duplicated block with local edits (225 matched lines × 2 locations) scripts/persistent-mode.mjs:789
- Duplicated block with local edits (217 matched lines × 2 locations) scripts/persistent-mode.mjs:1330
- Duplicated block with local edits (182 matched lines × 2 locations) scripts/post-tool-use-failure.mjs:25
- Wholesale file copy (154 identical lines × 2 files) scripts/lib/workflow-profile-runtime.mjs:1
- Duplicated block with local edits (150 matched lines × 2 locations) src/tools/memory-tools.ts:35
- Duplicated block with local edits (141 matched lines × 2 locations) REDACTED:166
- Duplicated block (129 lines × 2 locations) scripts/keyword-detector.mjs:1258
- Duplicated block with local edits (114 matched lines × 2 locations) scripts/persistent-mode.mjs:1155
- Duplicated block with local edits (97 matched lines × 2 locations) scripts/post-tool-verifier.mjs:525
- Duplicated block with local edits (94 matched lines × 2 locations) src/hooks/omc-orchestrator/index.ts:131
- Wholesale file copy (91 identical lines × 2 files) scripts/code-simplifier.mjs:19
- Duplicated block (90 lines × 2 locations) scripts/persistent-mode.mjs:610
- Duplicated block (80 lines × 2 locations) scripts/persistent-mode.mjs:404
- Wholesale file copy (77 identical lines × 2 files) scripts/lib/stdin.mjs:21
- Duplicated block (76 lines × 2 locations) REDACTED:354
- Wholesale file copy (74 identical lines × 3 files) scripts/lib/state-root.cjs:20
- Duplicated block (73 lines × 2 locations) REDACTED:816
- Duplicated block with local edits (70 matched lines × 2 locations) src/hooks/directory-readme-injector/index.ts:70
- Duplicated block (68 lines × 2 locations) scripts/post-tool-directory-context-injector.mjs:25
- Duplicated block with local edits (65 matched lines × 2 locations) src/hud/elements/limits.ts:64
- Duplicated block with local edits (62 matched lines × 2 locations) src/hooks/learner/bridge.ts:335
- Duplicated block with local edits (59 matched lines × 2 locations) REDACTED:102
- Duplicated block (56 lines × 2 locations) scripts/persistent-mode.mjs:29
- Duplicated block (54 lines × 2 locations) scripts/session-start.mjs:1425
- Duplicated block (53 lines × 2 locations) scripts/persistent-mode.mjs:182
- Duplicated block with local edits (53 matched lines × 2 locations) src/team/dispatch-queue.ts:300
- Duplicated block with local edits (49 matched lines × 2 locations) src/tools/shared-memory-tools.ts:81
- Complex function executeTeamApiOperation (cyclomatic 258, cognitive 285) src/team/api-interop.ts:659
- Complex function main (cyclomatic 160, cognitive 274) scripts/persistent-mode.mjs:1113
- Complex function main (cyclomatic 136, cognitive 245) templates/hooks/persistent-mode.mjs:909
- Complex function handler (cyclomatic 133, cognitive 210) src/tools/state-tools.ts:1544
- Complex function render (cyclomatic 133, cognitive 201) src/hud/render.ts:233
- Complex function main (cyclomatic 127, cognitive 222) REDACTED:903
- Complex function processCliWorkerVerdictsUnderLock (cyclomatic 124, cognitive 244) src/team/runtime-v2.ts:4735
- Complex function createTeamSession (cyclomatic 113, cognitive 254) src/team/tmux-session.ts:1898
- Complex function main (cyclomatic 105, cognitive 225) scripts/session-start.mjs:1040
- Complex function (anonymous) (cyclomatic 102, cognitive 175) src/team/scaling.ts:295
- Complex function (anonymous) (cyclomatic 100, cognitive 102) REDACTED:299
- Complex function install (cyclomatic 99, cognitive 156) src/installer/index.ts:2443
- Complex function runPersistentRecoveryOwnerLoop (cyclomatic 96, cognitive 103) src/team/runtime-cli.ts:477
- Complex function (anonymous) (cyclomatic 94, cognitive 156) src/team/runtime-v2.ts:3982
- Complex function verifyLiveGitHubEvidence (cyclomatic 92, cognitive 134) scripts/verify-epic-3698-closure.mjs:352
- Complex function main (cyclomatic 91, cognitive 130) REDACTED:1666
- Complex function checkExactHeadCi (cyclomatic 89, cognitive 149) scripts/verify-epic-3698-closure.mjs:605
- Complex function main (cyclomatic 85, cognitive 108) scripts/keyword-detector.mjs:1654
- Complex function shutdownTeamV2 (cyclomatic 79, cognitive 153) src/team/runtime-v2.ts:5667
- Complex function mainImpl (cyclomatic 79, cognitive 95) src/hud/index.ts:256
- Large Files
- Dead file (~626 LoC) scripts/lib/precompact-restore.mjs
- Dead file (~229 LoC) src/agents/prompt-sections/index.ts
- Dead file (~124 LoC) src/mcp/mcp-config.ts
- Dead file (~121 LoC) scripts/test-remember-tags.ts
- Dead file (~79 LoC) src/mcp/index.ts
- Dead file (~62 LoC) scripts/eval-autoresearch-timed-json.mjs
- Dead file (~49 LoC) scripts/eval-autoresearch-json.mjs
- Dead file (~41 LoC) scripts/test-session-injection.ts
- Dead file (~39 LoC) src/hooks/autopilot/transition-helper.ts
- Dead file (~20 LoC) src/agents/prompt-ssot/index.ts
- Dead file (~11 LoC) src/workflow/index.ts
- Dead file (~8 LoC) src/graph/index.ts
- Dead file (~4 LoC) src/alias-retirement/index.ts
Minor — 35 finding(s)
- Off-boarding risk: anonymized user #1
- Off-boarding risk: anonymized user #2
- Off-boarding risk: anonymized user #3
- Further sole-owners (lower concentration)
- Documentation: no project overview docs/AGENTS.md
- Projects may be oversized for their cohesion
- REDACTED
- Further orphaned files (smaller)
- REDACTED
- REDACTED
- Logging is not universal
- No SAST
- Unused export 'SCORING_WEIGHTS' benchmarks/shared/types.ts:167
- Unused export 'MIN_KEYWORD_MATCHES' benchmarks/shared/types.ts:177
- Unused export 'ALLOW_ADJACENT_SEVERITY' benchmarks/shared/types.ts:178
- Unused export 'isValidWorkflowDescriptor' scripts/lib/workflow-profile-runtime.mjs:47
- Unused export 'advanceWorkflowOnStop' scripts/lib/workflow-profile-runtime.mjs:151
- Unused export 'refreshWorkflowBoundaryForCommit' scripts/lib/workflow-profile-runtime.mjs:167
- Unused export 'getProjectionSpec' src/agents/prompt-ssot/manifest.ts:53
- Unused export 'getSection' src/agents/prompt-ssot/sections.ts:253
- Unused export 'countTrailingAutoresearchNoops' REDACTED:548
- Unused export 'stopAutoresearchRuntime' REDACTED:1535
- Unused export '__capabilitiesTestOnly' src/cli/commands/capabilities.ts:483
- Unused export 'hasAtomicParallelizationSignals' src/cli/commands/team.ts:170
- Unused export 'DEFAULT_DELEGATION_CONFIG' src/features/delegation-routing/types.ts:22
- Unused export 'extractWisdomByCategory' src/features/notepad-wisdom/extractor.ts:73
- Unused export 'hasWisdom' src/features/notepad-wisdom/extractor.ts:86
- Unused export 'prunePendingApprovals' src/graph/runtime/remote-approval.ts:357
- Unused export 'withContainedPath' src/graph/runtime/safe-fs.ts:129
- Unused export 'shouldUseStrictMode' src/hooks/factcheck/config.ts:136
- Unused export 'recordMergeReadinessAnswer' src/hooks/merge-readiness/runtime.ts:828
- Unused export 'isLikelyMergeReadinessAnswer' src/hooks/merge-readiness/runtime.ts:849
- Unused export 'handleMergeReadinessPromptSubmit' src/hooks/merge-readiness/runtime.ts:859
- Unused export 'getAuditSummary' src/hooks/omc-orchestrator/audit.ts:67
- Unused export 'DISPATCH_TELEMETRY_MAX_BYTES' src/hooks/registry/cutover.ts:34
Minor — 106 finding(s)
- Skipped (documented): (unnamed test) src/__tests__/workflow-profile-activation-script.test.ts:314
- Skipped (documented): (unnamed test) src/__tests__/session-end-process-exit.test.ts:180
- Skipped (documented): (unnamed test) src/__tests__/session-end-process-exit.test.ts:191
- Skipped (documented): (unnamed test) src/__tests__/session-end-process-exit.test.ts:212
- Skipped (documented): (unnamed test) src/__tests__/session-end-process-exit.test.ts:232
- Skipped (documented): (unnamed test) src/__tests__/session-end-process-exit.test.ts:258
- Skipped (documented): (unnamed test) src/__tests__/session-end-process-exit.test.ts:287
- Skipped (documented): (unnamed test) src/__tests__/session-end-process-exit.test.ts:303
- Skipped (documented): (unnamed test) src/__tests__/run-cjs-windows-stdio-contract.test.ts:391
- Skipped (documented): (unnamed test) src/__tests__/repair-plugin-cache-script.test.ts:107
- Skipped (documented): (unnamed test) src/__tests__/repair-plugin-cache-script.test.ts:140
- Skipped (documented): (unnamed test) src/__tests__/plugin-setup-deps.test.ts:306
- Skipped (documented): (unnamed test) src/__tests__/plugin-setup-deps.test.ts:347
- Skipped (documented): (unnamed test) src/__tests__/plugin-setup-deps.test.ts:391
- Skipped (documented): (unnamed test) src/__tests__/directory-context-injector-registration.test.ts:70
- Skipped (documented): (unnamed test) src/cli/__tests__/lookout-cli.test.ts:98
- Skipped (documented): (unnamed test) src/cli/__tests__/lookout-cli.test.ts:113
- Skipped (documented): (unnamed test) src/cli/__tests__/launch.test.ts:1318
- Skipped (documented): (unnamed test) src/cli/__tests__/launch.test.ts:1855
- Skipped (documented): (unnamed test) src/cli/__tests__/launch.test.ts:1897
- Skipped (documented): (unnamed test) src/features/lookout/__tests__/lookout-workspace.test.ts:149
- Skipped (documented): (unnamed test) src/features/lookout/__tests__/lookout-workspace.test.ts:203
- Skipped (documented): (unnamed test) src/graph/__tests__/runtime/cli.test.ts:183
- Skipped (documented): (unnamed test) src/hooks/__tests__/workflow-drift-guard-script.test.ts:298
- Skipped (documented): (unnamed test) src/hooks/merge-readiness/__tests__/runtime.test.ts:494
Appendix B — Reproduction & audit trail
| Dimension | Tool | Version | Command | Findings | Raw output |
|---|---|---|---|---|---|
| D28 · Secrets (history) | gitleaks | — | gitleaks detect --no-banner --config /opt/gitleaks-rules/watchdog-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-71e15bd77f7e454e90fc16857e51a9dd/history.json --exit-code 0 --source . | 1 | artifacts/raw/gitleaks-history.json |
| D28 · Secrets (history) | gitleaks | — | gitleaks detect --no-git --no-banner --config /opt/gitleaks-rules/watchdog-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-71e15bd77f7e454e90fc16857e51a9dd/tree.json --exit-code 0 --source . | 1 | artifacts/raw/gitleaks-tree.json |
| D29 · Static Analysis (SAST) | semgrep | — | semgrep --config /opt/semgrep-rules/security-audit.yml --config /opt/semgrep-rules/owasp-top-ten.yml --config /opt/semgrep-rules/watchdog-sast.yml --json --quiet --timeout 10 --timeout-threshold 3 --metrics off . | 121 | artifacts/raw/semgrep.json |
| D30 · Dependency Vulnerabilities | osv-scanner | — | osv-scanner --format json --recursive . | 0 | artifacts/raw/osv-scanner.json |
| D30 · Dependency Vulnerabilities | trivy | — | trivy fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** . --skip-db-update | 0 | artifacts/raw/trivy-fs.json |
| D31 · IaC & Container Security | trivy | — | trivy config --format json --quiet . | 0 | artifacts/raw/trivy-config.json |
| D32 · Data Compliance (PII/GDPR) | semgrep | — | semgrep --config /opt/semgrep-rules/gdpr.yml --json --quiet --timeout 10 --timeout-threshold 3 --metrics off . | 1 | artifacts/raw/semgrep-gdpr.json |
| D40 · Network Egress Confinement | runtime-hardening | — | runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here. | 0 | — |
| D41 · Kernel & Syscall Confinement | runtime-hardening | — | runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here. | 0 | — |
| D42 · Runtime Threat Enforcement | runtime-hardening | — | runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here. | 0 | — |
| D43 · Malicious Dependencies | osv-scanner | — | osv-scanner --format json --recursive . | 0 | artifacts/raw/osv-scanner.json |
| D43 · Malicious Dependencies | trivy | — | trivy fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** . --skip-db-update | 0 | artifacts/raw/trivy-fs.json |