@sockulags/agent-os 0.9.1 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/policy.md CHANGED
@@ -29,12 +29,12 @@ Rules:
29
29
  - Never force the reader to cross-reference labels or numbering invented earlier in the text — say what you mean in place.
30
30
  - Explanations belong in prose; tables only for short enumerable facts.
31
31
  - Calibrate tone to the topic: playfulness is fine, neutral and factual the moment the subject is serious. When in doubt, it is serious.
32
- - Orchestration is opt-in: `guide-me`, `chart-work`, `shape-work`, `batch-work`, `deliver-work`,
33
- `dispatch-next`, `init-agent-os`, `understand-work`, `explain-work`, and `record-lesson` exist for
34
- planned work; invoke them through the name exposed by the host (`/guide-me` for direct Claude
35
- skills, `/agent-os:guide-me` for the Claude plugin, or `$guide-me` for Codex). Never self-invoke
36
- them. One exception: a workflow may continue into the workflow its exit contract names once the
37
- developer approves that exit, as `guide-me` does after its approved plain-language gate.
32
+ - Orchestration is opt-in: `guide-me`, `chart-work`, `shape-work`, `batch-work`, `deliver-work`,
33
+ `dispatch-next`, `init-agent-os`, `understand-work`, `explain-work`, and `record-lesson` exist for
34
+ planned work; invoke them through the name exposed by the host (`/guide-me` for direct Claude
35
+ skills, `/agent-os:guide-me` for the Claude plugin, or `$guide-me` for Codex). Never self-invoke
36
+ them. One exception: a workflow may continue into the workflow its exit contract names once the
37
+ developer approves that exit, as `guide-me` does after its approved plain-language gate.
38
38
 
39
39
  ## Preferences (seed defaults — project policy overrides)
40
40
 
@@ -31,8 +31,11 @@ the developer.
31
31
  diff.
32
32
  3. Make the smallest complete implementation. Use `diagnose-before-fix` when the cause is unknown and
33
33
  `scope-guard` when discoveries threaten the boundary.
34
- 4. Run fast, relevant checks while working and adapt from their results.
35
- 5. Review the resulting diff for correctness, unnecessary complexity, and scope.
34
+ 4. Apply [`proportional-testing`](../proportional-testing/SKILL.md) when selecting or creating tests.
35
+ Run fast, relevant checks while working and adapt from their results.
36
+ 5. Review the resulting diff for correctness, unnecessary complexity, and scope. Apply the
37
+ [`simplifier-review`](../simplifier-review/SKILL.md) lens and fix supported simplification
38
+ findings before freezing the candidate.
36
39
  6. Complete the review gate below.
37
40
  7. Apply `verify-before-done` to the final candidate and deliver only to the requested boundary.
38
41
 
@@ -74,7 +77,8 @@ waive required review; do not solicit a waiver. When review is required:
74
77
  A reviewer label written by the implementer, a wait call with no launched receiver, a self-review,
75
78
  or an unreturned reviewer is not independent review. If the host exposes no launch tool, launch
76
79
  fails, or no launched reviewer returns a result, stop before delivery with a review handoff
77
- containing the frozen candidate, review scope, and required ground truth. Self-review never
80
+ containing the frozen candidate, review scope including unnecessary solution complexity, and
81
+ required ground truth. Self-review never
78
82
  substitutes for required independent review.
79
83
 
80
84
  ## Resume only when useful
@@ -14,8 +14,8 @@ Invoked as `init-agent-os global`.
14
14
 
15
15
  1. Verify the plugin is visible on this platform (skills listed under the `agent-os` namespace). Report what you find.
16
16
  2. Run `scripts/policy-block.ps1 -Check` and report drift between `policy.md` and the managed blocks in `~/.claude/CLAUDE.md` and `~/.codex/AGENTS.md`.
17
- 3. Run `scripts/policy-block.ps1` to apply the managed blocks and show the resulting diff. This
18
- deterministic writer shares its marker contract with the npm installer's policy writer.
17
+ 3. Run `scripts/policy-block.ps1` to apply the managed blocks and show the resulting diff. This
18
+ deterministic writer shares its marker contract with the npm installer's policy writer.
19
19
 
20
20
  ## Mode: repo init (default)
21
21
 
@@ -1,87 +1,87 @@
1
- # Manages the AGENT OS block in global instruction files.
2
- # Source of truth: policy.md at the plugin root (two levels up from this script).
3
- #
4
- # Semantics (locked in the agent-os plan, M3):
5
- # - No block in target -> append exactly one block, preserve everything else.
6
- # - Empty target file -> treated as "no block"; the block becomes the whole file.
7
- # - Exactly one well-formed -> replace only the content between the markers.
8
- # - Duplicated, crossed, or half-open markers -> abort without mutation, exit 2.
9
- # - -Check -> read-only; exit 0 in sync, exit 1 on drift/missing, never writes.
10
- # - Text outside the block is never touched or normalized.
11
-
12
- [CmdletBinding()]
13
- param(
14
- [switch]$Check,
15
- [string[]]$Targets = @(
16
- (Join-Path (Join-Path $HOME '.claude') 'CLAUDE.md'),
17
- (Join-Path (Join-Path $HOME '.codex') 'AGENTS.md')
18
- )
19
- )
20
-
21
- $ErrorActionPreference = 'Stop'
22
- $BeginMarker = '<!-- BEGIN AGENT OS -->'
23
- $EndMarker = '<!-- END AGENT OS -->'
24
-
25
- $policyPath = Join-Path $PSScriptRoot '..\..\..\policy.md' | Resolve-Path
26
- $policy = (Get-Content -Raw -Path $policyPath).TrimEnd()
27
- $block = "$BeginMarker`n$policy`n$EndMarker"
28
-
29
- $exit = 0
30
-
31
- foreach ($target in $Targets) {
32
- $label = $target
33
- if (-not (Test-Path $target)) {
34
- if ($Check) {
35
- Write-Output "DRIFT $label : file missing"
36
- $exit = 1
37
- } else {
38
- $dir = Split-Path $target
39
- if (-not (Test-Path $dir)) { New-Item -ItemType Directory -Force -Path $dir | Out-Null }
40
- Set-Content -NoNewline -Path $target -Value ($block + "`n")
41
- Write-Output "ADDED $label : created file with managed block"
42
- }
43
- continue
44
- }
45
-
46
- # An empty file returns $null from -Raw, which would throw in Matches below.
47
- $content = Get-Content -Raw -Path $target
48
- if ($null -eq $content) { $content = '' }
49
- $beginCount = ([regex]::Matches($content, [regex]::Escape($BeginMarker))).Count
50
- $endCount = ([regex]::Matches($content, [regex]::Escape($EndMarker))).Count
51
-
52
- if ($beginCount -eq 0 -and $endCount -eq 0) {
53
- if ($Check) {
54
- Write-Output "DRIFT $label : managed block missing"
55
- $exit = 1
56
- } else {
57
- $sep = if ($content.Length -eq 0) { '' } elseif ($content.EndsWith("`n")) { "`n" } else { "`n`n" }
58
- Set-Content -NoNewline -Path $target -Value ($content + $sep + $block + "`n")
59
- Write-Output "ADDED $label : appended managed block"
60
- }
61
- continue
62
- }
63
-
64
- $wellFormed = ($beginCount -eq 1 -and $endCount -eq 1 -and
65
- $content.IndexOf($BeginMarker) -lt $content.IndexOf($EndMarker))
66
- if (-not $wellFormed) {
67
- Write-Output "ERROR $label : malformed markers (begin=$beginCount end=$endCount) - no mutation"
68
- exit 2
69
- }
70
-
71
- $start = $content.IndexOf($BeginMarker)
72
- $end = $content.IndexOf($EndMarker) + $EndMarker.Length
73
- $current = $content.Substring($start, $end - $start)
74
-
75
- if ($current -eq $block) {
76
- Write-Output "OK $label : in sync"
77
- } elseif ($Check) {
78
- Write-Output "DRIFT $label : block differs from policy.md"
79
- $exit = 1
80
- } else {
81
- $updated = $content.Substring(0, $start) + $block + $content.Substring($end)
82
- Set-Content -NoNewline -Path $target -Value $updated
83
- Write-Output "UPDATED $label : block replaced from policy.md"
84
- }
85
- }
86
-
87
- exit $exit
1
+ # Manages the AGENT OS block in global instruction files.
2
+ # Source of truth: policy.md at the plugin root (two levels up from this script).
3
+ #
4
+ # Semantics (locked in the agent-os plan, M3):
5
+ # - No block in target -> append exactly one block, preserve everything else.
6
+ # - Empty target file -> treated as "no block"; the block becomes the whole file.
7
+ # - Exactly one well-formed -> replace only the content between the markers.
8
+ # - Duplicated, crossed, or half-open markers -> abort without mutation, exit 2.
9
+ # - -Check -> read-only; exit 0 in sync, exit 1 on drift/missing, never writes.
10
+ # - Text outside the block is never touched or normalized.
11
+
12
+ [CmdletBinding()]
13
+ param(
14
+ [switch]$Check,
15
+ [string[]]$Targets = @(
16
+ (Join-Path (Join-Path $HOME '.claude') 'CLAUDE.md'),
17
+ (Join-Path (Join-Path $HOME '.codex') 'AGENTS.md')
18
+ )
19
+ )
20
+
21
+ $ErrorActionPreference = 'Stop'
22
+ $BeginMarker = '<!-- BEGIN AGENT OS -->'
23
+ $EndMarker = '<!-- END AGENT OS -->'
24
+
25
+ $policyPath = Join-Path $PSScriptRoot '..\..\..\policy.md' | Resolve-Path
26
+ $policy = (Get-Content -Raw -Path $policyPath).TrimEnd()
27
+ $block = "$BeginMarker`n$policy`n$EndMarker"
28
+
29
+ $exit = 0
30
+
31
+ foreach ($target in $Targets) {
32
+ $label = $target
33
+ if (-not (Test-Path $target)) {
34
+ if ($Check) {
35
+ Write-Output "DRIFT $label : file missing"
36
+ $exit = 1
37
+ } else {
38
+ $dir = Split-Path $target
39
+ if (-not (Test-Path $dir)) { New-Item -ItemType Directory -Force -Path $dir | Out-Null }
40
+ Set-Content -NoNewline -Path $target -Value ($block + "`n")
41
+ Write-Output "ADDED $label : created file with managed block"
42
+ }
43
+ continue
44
+ }
45
+
46
+ # An empty file returns $null from -Raw, which would throw in Matches below.
47
+ $content = Get-Content -Raw -Path $target
48
+ if ($null -eq $content) { $content = '' }
49
+ $beginCount = ([regex]::Matches($content, [regex]::Escape($BeginMarker))).Count
50
+ $endCount = ([regex]::Matches($content, [regex]::Escape($EndMarker))).Count
51
+
52
+ if ($beginCount -eq 0 -and $endCount -eq 0) {
53
+ if ($Check) {
54
+ Write-Output "DRIFT $label : managed block missing"
55
+ $exit = 1
56
+ } else {
57
+ $sep = if ($content.Length -eq 0) { '' } elseif ($content.EndsWith("`n")) { "`n" } else { "`n`n" }
58
+ Set-Content -NoNewline -Path $target -Value ($content + $sep + $block + "`n")
59
+ Write-Output "ADDED $label : appended managed block"
60
+ }
61
+ continue
62
+ }
63
+
64
+ $wellFormed = ($beginCount -eq 1 -and $endCount -eq 1 -and
65
+ $content.IndexOf($BeginMarker) -lt $content.IndexOf($EndMarker))
66
+ if (-not $wellFormed) {
67
+ Write-Output "ERROR $label : malformed markers (begin=$beginCount end=$endCount) - no mutation"
68
+ exit 2
69
+ }
70
+
71
+ $start = $content.IndexOf($BeginMarker)
72
+ $end = $content.IndexOf($EndMarker) + $EndMarker.Length
73
+ $current = $content.Substring($start, $end - $start)
74
+
75
+ if ($current -eq $block) {
76
+ Write-Output "OK $label : in sync"
77
+ } elseif ($Check) {
78
+ Write-Output "DRIFT $label : block differs from policy.md"
79
+ $exit = 1
80
+ } else {
81
+ $updated = $content.Substring(0, $start) + $block + $content.Substring($end)
82
+ Set-Content -NoNewline -Path $target -Value $updated
83
+ Write-Output "UPDATED $label : block replaced from policy.md"
84
+ }
85
+ }
86
+
87
+ exit $exit
@@ -0,0 +1,42 @@
1
+ ---
2
+ name: list-skills
3
+ description: Lists the installed agent-os skills with their invocation syntax and purpose so the developer can see what is available and pick the right one. Use manually when the developer asks what agent-os can do, which skill fits, or for a skill list, overview, or reference card. Not for running any listed skill, choosing or dispatching the next action in planned work, or explaining work already underway.
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # List skills
8
+
9
+ Answer what this installation offers and how to reach it. The skill returns one reference card and
10
+ changes nothing.
11
+
12
+ ## Read the installation, never a remembered list
13
+
14
+ Take every skill from the sibling directories beside this one, using each `SKILL.md` frontmatter for
15
+ its name and description. A reference card recited from memory goes stale the moment a skill is
16
+ added, removed, or partially installed, and it hides exactly the drift a developer opens the card to
17
+ find. Report a directory whose frontmatter is missing or unreadable as unavailable rather than
18
+ omitting it.
19
+
20
+ Each skill's own frontmatter also carries its invocation: `disable-model-invocation: true` plus
21
+ `agents/openai.yaml` means the developer invokes it explicitly; neither switch means it is automatic
22
+ and needs no invocation.
23
+
24
+ ## Report
25
+
26
+ Group by invocation, explicit skills first, and give each one line: how to invoke it and what it
27
+ does, condensed from its description rather than copied whole. Show the invocation form matching how
28
+ this skill was itself reached — `/agent-os:<name>` through the Claude plugin, `/<name>` for a direct
29
+ Claude install, `$<name>` on Codex — and name which form is shown, since the same skill set is typed
30
+ differently per host.
31
+
32
+ Close with the entry points for a developer who has not named a skill: an unclear desire starts at
33
+ `guide-me`, bounded choices at `shape-work`, broad or coupled work at `chart-work`, and a
34
+ decision-complete unit at `deliver-work`. Say plainly that automatic skills need no entry point
35
+ instead of listing them as choices.
36
+
37
+ ## Boundaries
38
+
39
+ One card, then stop. Do not invoke, stage, or offer to run a listed skill, and write no file, state,
40
+ or default. Listing what exists is not choosing what to do next: a developer who wants the next
41
+ action picked or dispatched wants `dispatch-next`, and one who wants the current task described
42
+ wants `explain-work`.
@@ -0,0 +1,2 @@
1
+ policy:
2
+ allow_implicit_invocation: false
@@ -0,0 +1,30 @@
1
+ ---
2
+ name: proportional-testing
3
+ description: Selects the smallest meaningful test surface when code is implemented or modified. It activates before adding or expanding tests, and when choosing affected test execution for a change or bug fix. It skips test-status reporting, diagnosis of an already failing test, and repository-wide test-strategy design requested as its own deliverable.
4
+ ---
5
+
6
+ # Test proportionally
7
+
8
+ Read [references/strategy.md](references/strategy.md) before creating or expanding tests.
9
+
10
+ Protect the changed behavior and plausible regressions without optimizing for test count or coverage.
11
+
12
+ ## Decision
13
+
14
+ Before adding a test:
15
+
16
+ 1. Identify the observable behavior changed and its plausible blast radius.
17
+ 2. Search existing tests for that behavior and affected contracts.
18
+ 3. Name the realistic regression the proposed test would catch that existing coverage would not.
19
+ 4. If that regression is unclear, do not add the test.
20
+ 5. Otherwise extend existing or table-driven coverage when practical, using the cheapest test level
21
+ that proves the behavior.
22
+
23
+ For a confirmed bug, establish one reproducing regression check when practical, prove it fails for
24
+ the expected reason, fix it, then run that check and relevant affected tests. Expand execution only
25
+ when the blast radius is uncertain, shared infrastructure changed, or project policy requires a
26
+ broader gate.
27
+
28
+ Do not create a test for every function, branch, file, or generated code path. Prefer observable
29
+ contracts over call sequences and private structure. This discipline controls test creation and
30
+ development-time selection; it never removes required repository or CI checks at delivery.
@@ -0,0 +1,75 @@
1
+ # Proportional testing strategy
2
+
3
+ The goal is maximum confidence with the minimum necessary test surface. Test count and coverage
4
+ percentage are signals, not quality targets.
5
+
6
+ ## Select the protected behavior
7
+
8
+ Understand the behavior being changed, inspect existing coverage, and identify nearby behavior that
9
+ could realistically regress. Protect:
10
+
11
+ - the observable behavior directly changed;
12
+ - important edge cases introduced or affected by the change;
13
+ - consumers that depend on a changed contract;
14
+ - relevant previously discovered regressions;
15
+ - integration boundaries actually crossed by the change.
16
+
17
+ Do not create tests merely because new code, branches, functions, files, or components exist.
18
+ Existing coverage may already be sufficient.
19
+
20
+ ## Prefer durable tests
21
+
22
+ Test externally observable behavior and contracts. A behavior-preserving refactor should not force
23
+ large test rewrites. Avoid tests whose main value is asserting internal calls, exact call sequences
24
+ when ordering is not contractual, trivial delegation, getters, constructors, framework boilerplate,
25
+ private structure, or mocks that reproduce the implementation.
26
+
27
+ Before adding coverage, search for an existing behavioral test. Prefer extending it, adding a case
28
+ to a table-driven test, and reusing its fixtures. One strong regression test is better than several
29
+ tests with equivalent setup and assertions.
30
+
31
+ ## Choose the cheapest sufficient level
32
+
33
+ Use a focused unit or component test when it can prove the contract. Use integration or end-to-end
34
+ tests only when the behavior depends on boundaries they exercise. Mock genuine system boundaries,
35
+ not every internal dependency.
36
+
37
+ Keep unit tests fast, deterministic, and isolated. If a test needs broad application startup,
38
+ external infrastructure, network access, substantial global state, or expensive fixtures, classify
39
+ and run it at the appropriate broader level rather than disguising it as a unit test.
40
+
41
+ Balance regression protection against execution time, maintenance, flakiness, setup complexity, and
42
+ duplication. A broader test is justified by broader risk, not by the amount of code generated.
43
+
44
+ ## Fix bugs with one regression story
45
+
46
+ For a confirmed bug, when practical:
47
+
48
+ 1. Add or identify the smallest check that reproduces the incorrect behavior.
49
+ 2. Verify that it fails for the expected reason.
50
+ 3. Implement the fix.
51
+ 4. Verify that the regression check passes.
52
+ 5. Run affected tests for plausible nearby regressions.
53
+
54
+ Do not generate a collection of unrelated tests merely because a bug was fixed. If an existing test
55
+ already proves the regression, use it and add no new test.
56
+
57
+ ## Select execution scope
58
+
59
+ During development, start with the smallest reliable affected set. Add dependency or consumer tests
60
+ when the changed contract can affect them. Expand to broader suites when affected-test selection is
61
+ unreliable, the blast radius is uncertain, shared infrastructure changed, or repository policy and
62
+ CI strategy require it.
63
+
64
+ Narrow execution is not an excuse to ignore plausible regressions. Conversely, do not run the full
65
+ suite after every small edit when reliable focused selection exists. Required delivery checks still
66
+ run even when development checks were narrow.
67
+
68
+ ## Stop adding tests
69
+
70
+ Coverage is adequate when the intended behavior is verified, plausible affected behavior and
71
+ important justified edge cases have been considered, relevant existing tests pass, and the chosen
72
+ test level is proportional to the risk.
73
+
74
+ Before adding another test, ask: **What realistic regression would this catch that existing tests
75
+ would not?** If there is no clear answer, do not add it.
@@ -0,0 +1,34 @@
1
+ ---
2
+ name: simplifier
3
+ description: Simplifies an existing implementation or diff by removing unnecessary code, abstractions, dependencies, and solution layers while preserving required behavior. Use manually when the developer asks to simplify, reduce code, remove over-engineering, or find a more direct solution. Not for code golf, speculative rewrites, initial feature design, or changing product behavior.
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # Simplifier
8
+
9
+ Make the solution smaller in concepts and code without making it harder to understand.
10
+
11
+ Read the request, affected code, project conventions, current diff, and relevant checks. Establish
12
+ the required behavior before editing. Then simplify in this order:
13
+
14
+ 1. Delete code, options, branches, configuration, and files that serve no current requirement.
15
+ 2. Reuse an existing project helper or pattern instead of maintaining a duplicate.
16
+ 3. Prefer the standard library, native platform behavior, or an already-installed dependency over
17
+ custom machinery.
18
+ 4. Collapse wrappers, layers, and abstractions that add indirection without a second real use.
19
+ 5. Express the remaining behavior directly and readably.
20
+
21
+ Reduce lines when deletion reflects a simpler solution. Do not compress readable code into dense
22
+ expressions merely to lower the line count. A clear loop can be simpler than a clever one-liner.
23
+
24
+ Preserve required behavior, public contracts, validation at trust boundaries, security,
25
+ accessibility, error handling that prevents data loss, and justified performance characteristics.
26
+ Keep tests that protect behavior; remove only tests for behavior that no longer exists or tests
27
+ that duplicate the same signal without value.
28
+
29
+ Stay inside the requested surface. Do not turn a focused simplification into an architectural
30
+ rewrite or introduce a new dependency to save a few lines.
31
+
32
+ After editing, inspect the final diff and run the smallest relevant checks. Report what was removed
33
+ or made more direct, the verification result, and any complexity that remains because it serves a
34
+ real requirement. If the implementation is already simple, leave it unchanged and say so.
@@ -0,0 +1,2 @@
1
+ policy:
2
+ allow_implicit_invocation: false
@@ -0,0 +1,28 @@
1
+ ---
2
+ name: simplifier-audit
3
+ description: Audits an entire repository for unnecessary code, abstractions, dependencies, and solution layers while leaving files unchanged. Use manually when the developer asks for a simplification audit, over-engineering audit, deletion candidates, or a repo-wide search for simpler solutions. Not for applying fixes, code golf, or a general correctness, security, or performance audit.
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # Audit for simplification
8
+
9
+ Find the repository's strongest opportunities to own less code and fewer solution layers without
10
+ changing required behavior.
11
+
12
+ Inspect the project structure, dependencies, conventions, representative flows, and usages of each
13
+ candidate before reporting it. Look for:
14
+
15
+ - dead or speculative behavior that no current requirement or caller uses;
16
+ - duplicate helpers and parallel implementations;
17
+ - custom code replaced by the standard library, native platform behavior, or an installed
18
+ dependency;
19
+ - wrappers, factories, layers, configuration, and abstractions without real variation;
20
+ - dependencies used for behavior the project or platform already provides.
21
+
22
+ Prefer a short ranked list of high-confidence findings over a large speculative inventory. For each
23
+ finding, name the location, evidence that the complexity is unnecessary, the simpler replacement,
24
+ and any behavior or migration constraint that must be preserved. Do not estimate saved lines unless
25
+ the deletion is directly countable.
26
+
27
+ Do not apply fixes. Do not treat required validation, security, accessibility, data-loss protection,
28
+ justified performance, or useful tests as bloat. If the repository is already simple, say so.
@@ -0,0 +1,2 @@
1
+ policy:
2
+ allow_implicit_invocation: false
@@ -0,0 +1,29 @@
1
+ ---
2
+ name: simplifier-review
3
+ description: Reviews the current implementation diff for unnecessary code, abstractions, dependencies, and solution layers without changing files. It activates during code review, including deliver-work review, when the candidate should be checked for a simpler solution. It skips whole-repository audits, initial design, code golf, and correctness or security review outside complexity caused by the diff.
4
+ ---
5
+
6
+ # Review for simplification
7
+
8
+ Find concrete ways to make the current diff smaller in concepts and code while preserving its
9
+ required behavior.
10
+
11
+ Read the request, diff, affected code, project conventions, and relevant checks. Look for:
12
+
13
+ - code, branches, configuration, options, files, or dependencies with no current requirement;
14
+ - duplicated behavior already provided by the project;
15
+ - custom machinery covered by the standard library, native platform behavior, or an installed
16
+ dependency;
17
+ - wrappers, layers, factories, and abstractions without a second real use;
18
+ - indirect or dense code that has a more direct, readable form.
19
+
20
+ Do not recommend code golf. Do not remove required behavior, public contracts, trust-boundary
21
+ validation, security, accessibility, data-loss protection, justified performance, or tests that
22
+ protect real behavior.
23
+
24
+ Report only supported, actionable findings. For each, name the location, unnecessary complexity,
25
+ and simpler replacement. Rank material deletions and dependency removals first. Do not invent a
26
+ line-savings total. If there is nothing worth changing, report `No simplification findings.`
27
+
28
+ This review is read-only and complements correctness, security, and scope review; it never replaces
29
+ them.