Skip to content

chore(#1503): end the 2026-01 "temporarily relaxed" rules, add knip as an advisory job with a numeric baseline - #1550

Merged
admarble merged 3 commits into
mainfrom
feature/1503-chore-lint-end-the-2026-01-temporarily-relaxed-rul
Oct 19, 2026
Merged

admarble merged 3 commits into
mainfrom
feature/1503-chore-lint-end-the-2026-01-temporarily-relaxed-rul

Conversation

@admarble

@admarble admarble commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Summary

All five ACs are met, and I pushed the branch feature/1503-chore-lint-end-the-2026-01-temporarily-relaxed-rul. I opened no PR, because the orchestrator does that.

Pre-PR AC Verification

AC Status Evidence
AC-1 ✅ The grep for the three warn entries prints 0. I deleted the comment and the three entries from eslint.config.js. The typescript-eslint and eslint recommended presets already set all three rules to error.
AC-2 ✅ npm run lint passes with --max-warnings 0, and npm run build passes. No src/ edits were needed.
AC-3 ✅ knip@^6.42.0 is a devDependency, knip.json exists, and lint:knip is a new script. The entry points are bin, src/index.ts and scripts, and ignore covers only dist.
AC-4 ✅ knip-advisory comes after health-advisory in ci.yml. The -A14 grep prints 1. I copied the action SHAs from the existing job.
AC-5 ✅ unusedExports (exports plus types from knip --reporter json) is in the report and the baseline, at 342. npm run lint:health prints "no metric rose".

Notes

  • Lockfile: npm i pruned the @openai/codex-* entries and the libc fields. I rebuilt the lockfile from HEAD plus the 57 new knip packages. A script check found no packages missing or changed against HEAD, so the diff is additions only.
  • knip count: it counts 342 unused exports and types. It also lists 5 unused files and some unused dependencies, which I left out of the metric. That is the spec's open question 1, and I took the recommended option.
  • Runtime: a full knip run takes about 2.5 s.
  • Counter behaviour: a tree with no knip.json gives 0. A knip spawn failure throws instead of reporting a silent 0.
  • CHANGELOG: I added an [Unreleased] line under Added.

Tests

  • npx vitest run scripts/qa/health-report.test.ts scripts/qa/tautology-detector-cli.test.ts passed 14 of 14.
  • --changed origin/main selects 400 files because package.json and the lockfile changed. I did not run that set; the full suite is CI's job.
  • I added counts unused exports and types from knip JSON. The fixture test now also asserts unusedExports is 0.

Pre-PR Confidence Check

  • Weakest part: countUnusedExports depends on knip's JSON shape. I pinned ^6.42.0 and it throws if the issues array is missing. The knip-advisory CI job is also only checked by grep, not run, until the PR.
  • Coverage gaps: none for the changed source files. ci.yml, knip.json and the lint config have no tests of their own, but the ACs' evidence commands cover them.

Progress Update Draft

Exec for #1503 is complete: the relaxed lint rules are removed, knip is advisory in CI, and unusedExports (342) is in the health report and baseline. The branch is pushed and the PR is left to the orchestrator.

CHANGELOG: updated. Quality Plan Alignment: all standard checks pass; the mutation record is above. Documentation: no README changes needed.

Next steps: the orchestrator opens the PR, then /qa.

Fixes #1503

QA verdict: AC_MET_BUT_NOT_A_PLUS — acceptance criteria met, but not A+. The run broke to this PR for review rather than entering the quality loop; see the QA review comment for improvement notes.

Runner verification (2026-10-19)

After main (with #1521) was merged in, the runner re-ran AC-1..AC-5 at 8f5993e:

The baseline conflict was resolved against main's baseline: --check showed no rise, and the regenerated baseline differs only by the new unusedExports (342). The merge also folds a duplicate ### Added heading that main had in [Unreleased].

Owner rulings (2026-10-19):


🤖 Generated with Claude Code

… with an unusedExports baseline

Entire-Checkpoint: 04cfb894369d
…k (owner ruling: drop || true)

Entire-Checkpoint: b84fb7522e66
…nt-end-the-2026-01-temporarily-relaxed-rul

# Conflicts:
#	scripts/qa/health-baseline.json
@admarble
admarble merged commit 788c5ba into main Oct 19, 2026
9 of 10 checks passed
@admarble
admarble deleted the feature/1503-chore-lint-end-the-2026-01-temporarily-relaxed-rul branch October 19, 2026 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore(lint): end the 2026-01 "temporarily relaxed" rules, add knip as an advisory job with a numeric baseline

1 participant