Skip to content

feat(impact): add workflow impact and overhead validation command - #317

Merged
jackulau merged 3 commits into
mainfrom
feat/workflow-impact-validation
Nov 28, 2026
Merged

jackulau merged 3 commits into
mainfrom
feat/workflow-impact-validation

Conversation

@jackulau

Copy link
Copy Markdown
Owner

Summary

Adds coding.sh impact (src/core/impact.ts + src/cli/commands/impact.ts) to measure whether local observability and refinements are delivering real workflow benefit relative to overhead:

  • Coverage & Local Overhead: Session counts (total + organic), active agents/repos, disk footprint of index.db (+ WAL/SHM), blobs/, and spool/ (via safe lstatSync without following symlinks), and hook error counts from spool/errors.log.
  • Issues Surfaced: test-tamper flags, high/medium supervision risk sessions, formal-verification proof sessions (oscillatingChecks > 0, escapeRemaining > 0), unverified edit streaks (>= 5), real failure-flagged sessions (via isFailureFlag), failure rate, and honest optional wasted spend.
  • Applied Refinements (14d Before vs After): Compares organic top-level sessions in the 14 days before vs after each live refine-ledger apply (up to 5 newest) on failure rate, pushback rate, unverified edit streak rate, median cost, and tool error rate — honestly marking insufficient-data (and omitting deltas) whenever either side has fewer than 5 organic sessions.
  • Supports --since (default 30d), --repo, --agent, --fresh, and --json.
  • Updates docs/reference/cli.md, docs/guides/evals.md, and CHANGELOG.md.

Verification

  • tsc --noEmit -p packages/coding.sh: pass
  • test/core/impact.test.ts (10 tests) + test/cli/impact.test.ts (3 tests) + docs reference tests: 28 pass, 0 fail (all fail when source is reverted)
  • node scripts/lint/slop.mjs --strict-allowlist & node scripts/changelog/add.mjs --check: clean
  • apps/site/test/*.test.mjs: 161 pass, 0 fail

@jackulau jackulau added the ready Run the full suite on this pull request; main requires its check label Nov 28, 2026
@jackulau
jackulau merged commit 32cc721 into main Nov 28, 2026
35 checks passed
@jackulau
jackulau deleted the feat/workflow-impact-validation branch November 28, 2026 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready Run the full suite on this pull request; main requires its check

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant