Summary
CLI-BEHAVIOR.md states:
The summary appears only in recursive mode and only when --verbose is enabled.
The implementation in createRunnerPolicy.ts:23-30 returns isRecursiveRun from shouldPrintSummary() — true for any recursive run regardless of config.verbose. The summary is printed in all non-quiet recursive runs, including default (non-verbose) runs.
The internal documentation table in RunnerPolicy.ts also contradicts CLI-BEHAVIOR.md by marking Default=Print for the summary line.
Affected files
javascript/tooling-core/src/policy/createRunnerPolicy.ts:23-30
javascript/tooling-core/src/policy/RunnerPolicy.ts (output table comment)
Fix
Change shouldPrintSummary() to:
shouldPrintSummary: () => isRecursiveRun && config.verbose,
Update the RunnerPolicy.ts output table comment to match. Update CLI-BEHAVIOR.md if the current behavior is intentional (but it appears not to be).
Summary
CLI-BEHAVIOR.mdstates:The implementation in
createRunnerPolicy.ts:23-30returnsisRecursiveRunfromshouldPrintSummary()— true for any recursive run regardless ofconfig.verbose. The summary is printed in all non-quiet recursive runs, including default (non-verbose) runs.The internal documentation table in
RunnerPolicy.tsalso contradictsCLI-BEHAVIOR.mdby marking Default=Print for the summary line.Affected files
javascript/tooling-core/src/policy/createRunnerPolicy.ts:23-30javascript/tooling-core/src/policy/RunnerPolicy.ts(output table comment)Fix
Change
shouldPrintSummary()to:Update the
RunnerPolicy.tsoutput table comment to match. UpdateCLI-BEHAVIOR.mdif the current behavior is intentional (but it appears not to be).