Skip to content

chore(#1510): every @deprecated names its removal version — lint:deprecations in CI, CONTRIBUTING rule - #1568

Merged
admarble merged 4 commits into
mainfrom
feature/1510-chore-lint-every-deprecated-names-its-removal-vers
Oct 20, 2026
Merged

admarble merged 4 commits into
mainfrom
feature/1510-chore-lint-every-deprecated-names-its-removal-vers

Conversation

@admarble

@admarble admarble commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

npm run lint:deprecations now fails on any @deprecated tag without remove in vX.Y on the tag line. All 18 existing tags carry a version. I pushed the branch as 7e4a1bfcd and left PR creation to the orchestrator. Nothing was removed or newly deprecated, and nothing under plugin/, .claude/skills/ or templates/skills/ changed.

I ran the lint, the new test file, npm run build, npm run lint and lint:health. I did not run the full suite or the whole --changed set. The test run was scripts/lint-deprecations.test.ts plus scripts/qa/tautology-detector-cli.test.ts: 9 passed.

AC verification

AC Status Evidence
AC-1 ✅ npm run lint:deprecations exits 0
AC-2 ✅ the grep count is 0
AC-3 ✅ scripts/lint-deprecations.test.ts has 3 cases: a bare tag exits 1 and names src/a.ts:2, remove in v3.1 exits 0, and a test-only tree is ignored
AC-4 ✅ CONTRIBUTING.md, Code Style section
AC-5 ✅ new Lint deprecations step in the validate-skills job of ci.yml
AC-6 ✅ deprecatedWithoutRemoval is 0 in scripts/qa/health-baseline.json. I changed only that field, and lint:health reports no metric above baseline.

I also added an [Unreleased] line under ### Changed in CHANGELOG.md.

Tags for owner review

User-visible means exported from src/index.ts, a settings key, a state-file field, or a user-facing label. Choosing the version needs your read for the agent-driver rows (unsure, so v3.0) and the batch-executor.ts row (v2.22, internal).

file:line symbol user-visible version reason
assess-comment-parser.ts:188,223,295,416,459,501 6 solve-named aliases yes v3.0 re-exported from src/index.ts
settings.ts:62 agents.model yes v3.0 settings key
shutdown.ts:206 setAbortController no v2.22 not exported from src/index.ts
shutdown.ts:214 clearAbortController no v2.22 not exported from src/index.ts
solve-comment-parser.ts:4 module yes v3.0 backward-compat re-exports, so I kept it with the parser aliases
phase-signal.ts:36 solve phase signal yes v3.0 exported from src/index.ts
ci/types.ts:40 TRIGGER_LABELS.SOLVE yes v3.0 the sequant:solve label users apply
log-writer.ts:71 currentIssue no v2.22 private field
batch-executor.ts:602 executeBatch no v2.22 not exported from src/index.ts; only reachable through the commands/run-compat re-export
state-schema.ts:357 sessionId yes v3.0 persisted in state.json
state-manager.ts:645 updateSessionId yes v3.0 StateManager is exported from src/index.ts
agent-driver.ts:58 sessionId unsure v3.0 unsure whether the type is public
agent-driver.ts:96 sessionId unsure v3.0 unsure whether the type is public

The lint and the health counter use the same same-line rule, but each has its own copy of the regex. A parity test is still open.

Hook verdicts changed: none.

Mutation check

Both runs used scripts/lint-deprecations.ts, and I restored it after each.

  • Flagging every @deprecated line failed passes when the tag says remove in v3.1.
  • Making the lint ignore every tag failed fails on a bare tag and names file:line.

Pre-PR confidence

  • Weakest part: the multi-line tags read oddly, for example …Subagents (remove in v3.0) ending a line mid-sentence, because the same-line rule forces the version onto the tag line.
  • Coverage gaps: none. The only new source file, scripts/lint-deprecations.ts, has a test. The 18 tag edits are comment text.

PR status: left to the orchestrator; branch `feature/1510-chore-lint-eve

Fixes #1510

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-20)

After merging main (through #1560), the runner re-ran AC-1..AC-6 at 9741f70:

  • AC-1: ok
  • AC-2: 0
  • AC-3 + health-report.test.ts: 11 passed
  • AC-4: 1
  • AC-5: 1
  • AC-6: 0
  • Lint green; build exit 0; lint:health shows no rise.

Added by the runner, from QA's findings:

  • One regex. REMOVAL_VERSION_RE is exported from scripts/lint-deprecations.ts and imported by scripts/qa/health-report.ts, so the lint and the counter cannot drift. This replaces the parity test QA asked for.
  • The version leads every tag: @deprecated (remove in vX.Y) … on all 18. In the 7 multi-line tags it no longer splits a sentence.
  • CONTRIBUTING states the rule actually applied: v3.0 for anything users can reach (an export from src/index.ts, a settings key, a CLI command or flag, an MCP tool param), and the minor after the next one for internals (v2.22 while 2.20 is current). It had said "next minor".

For the owner: the per-tag table above gives every choice. agent-driver.ts:58 (sessionId) is marked unsure and got v3.0.


🤖 Generated with Claude Code

wip checkpoint

Entire-Checkpoint: 0a52657eb634
…port; the version leads each tag; CONTRIBUTING states the actual rule (QA findings)

Entire-Checkpoint: 69849c8b4f75
@admarble
admarble merged commit 77fc3c5 into main Oct 20, 2026
9 of 10 checks passed
@admarble
admarble deleted the feature/1510-chore-lint-every-deprecated-names-its-removal-vers branch October 20, 2026 14:22
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): every @deprecated names its removal version — lint:deprecations in CI, CONTRIBUTING rule

1 participant