Sed-pipeline (16 patterns, longest-match-first) sweeper residuelle ultra*-treff i prose, command-narrativ, agent-prompts, hook-kommentarer, doc-prosa. Pipeline-utvidelser fra V4-prompten: - BSD-syntax [[:<:]]ultra[[:>:]] istedenfor \bultra\b (BSD sed mangler \b) - 6 compound-patterns for ultraplan/ultraexecute/ultraresearch/ultrabrief/ ultrareview/ultracontinue uten -local-suffiks - ultra*-stats glob -> trek*-stats glob - Linje-eksklusjon redusert til ultra-cc-architect (Q8); session-state- eksklusjonen var over-protektiv - File-eksklusjon utvidet til settings.json, package.json, plugin.json, hele .claude/-treet (gitignored + V5-territorium) Q8-undantak holdt: architecture-discovery.mjs + project-discovery.mjs urort. Filnavn-konvensjon holdt: .session-state.local.json + *.local.* preservert. Manuell narrative-fix: tests/lib/agent-frontmatter.test.mjs linje 10 mangled "/ultra*-local" til "/voyage*-local" (ingen slik kommando finnes); korrigert til "/trek*". Residualer utenfor scope (V5 handterer): package.json + .claude-plugin/ plugin.json (Step 12-14 versjons-bump). .claude/* er gitignored spec-historikk med tilsiktet BEFORE/AFTER-narrativ. Part of voyage-rebrand session 3 (Wave 4 / Step 10). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
77 lines
2.9 KiB
Markdown
77 lines
2.9 KiB
Markdown
---
|
|
type: trekplan-synthetic
|
|
plan_version: "1.7"
|
|
created: 2026-05-04
|
|
task: "Add --verbose flag to CLI"
|
|
slug: verbose-flag
|
|
run_id: B
|
|
steps:
|
|
- "Add config entry for verbose flag in package.json"
|
|
- "Define types for verbose mode in types.ts"
|
|
- "Update parseArgs to recognize --verbose flag"
|
|
- "Pass verbose context through main entry point"
|
|
- "Add log level enum (silent, normal, verbose)"
|
|
- "Wire log level into logger module"
|
|
- "Replace console.log with logger.info in handler.ts"
|
|
- "Add tests for parseArgs --verbose recognition"
|
|
- "Add tests for log level enum mapping"
|
|
- "Update README with --verbose flag documentation"
|
|
- "Add CHANGELOG entry for verbose flag"
|
|
- "Bump package.json minor version"
|
|
- "Add lint rule blocking direct console usage"
|
|
- "Run lint and fix new violations"
|
|
- "Add CLI integration test for --verbose end-to-end"
|
|
- "Add fixture file for verbose log capture"
|
|
- "Document verbose output format in docs/cli.md"
|
|
- "Add jsdoc for new logger API"
|
|
- "Verify all existing tests pass with verbose disabled"
|
|
- "Add backward-compat test for legacy quiet behavior"
|
|
- "Add edge-case test for repeated --verbose flags"
|
|
- "Add edge-case test for --verbose with --silent collision"
|
|
- "Update help text to list --verbose flag"
|
|
- "Add usage example to docs/quickstart.md"
|
|
- "Verify CI matrix runs on Node 18 and 20"
|
|
- "Add npm script for verbose mode debugging"
|
|
- "Run security audit on logger dependency tree"
|
|
- "Verify no PII leaks in verbose log output"
|
|
- "Add manual test checklist to CONTRIBUTING.md"
|
|
- "Update .gitignore for verbose log dump files"
|
|
- "Add cleanup logic for stale verbose logs"
|
|
- "Add unit test for cleanup logic"
|
|
- "Verify exit code on verbose mode error"
|
|
- "Add stderr routing for warnings in verbose"
|
|
- "Add timestamp prefix in verbose log lines"
|
|
- "Add test for timestamp format"
|
|
- "Update troubleshooting guide with verbose flag"
|
|
- "Verify version sync across all docs"
|
|
- "Add benchmark for verbose log capture overhead"
|
|
- "Document overhead methodology in PERF.md"
|
|
---
|
|
|
|
# Synthetic plan run B — Add --verbose flag to CLI
|
|
|
|
This fixture represents a second synthesized run of `/trekplan` against
|
|
the same hand-calibrated brief used for `plan-run-A.md`. The two runs differ
|
|
on 2 step titles (modeling realistic LLM variation).
|
|
|
|
## How this fixture is used
|
|
|
|
See `plan-run-A.md` for the determinism contract.
|
|
|
|
## Fixture math
|
|
|
|
- A has 40 unique step titles
|
|
- B has 40 unique step titles
|
|
- Intersection (shared titles): 38
|
|
- Union: 42
|
|
- Jaccard: 38/42 ≈ 0.9047 (well above 0.833 floor)
|
|
|
|
## Differences from run A
|
|
|
|
- A includes "Add benchmark for verbose log emission cost" → B replaces with
|
|
"Add benchmark for verbose log capture overhead"
|
|
- A includes "Document benchmark methodology in PERF.md" → B replaces with
|
|
"Document overhead methodology in PERF.md"
|
|
|
|
These represent the kind of paraphrase variation a stochastic planner may
|
|
produce on consecutive runs against an identical brief.
|