Skip to content

fix: DET-016 for TODO literals, exceptions date crash, doc/code drift (v0.13.0) - #25

Merged
krus210 merged 3 commits into
mainfrom
fix/review-p1-p4
Sep 23, 2026
Merged

krus210 merged 3 commits into
mainfrom
fix/review-p1-p4

Conversation

@krus210

@krus210 krus210 commented Sep 23, 2026 •

Copy link
Copy Markdown
Owner

Why

Fixes from a P1–P4 review of the library. Check logic is unchanged apart from the targeted fixes listed below. Released as v0.13.0 (minor bump because of the breaking rule-id rename).

Breaking

  • DET-006 → DET-016 for TODO literals. DET-006 was used for two different rules. It now means only the idempotency downgrade, as the catalog documents; the TODO-literal check is DET-016. Rename exceptions[] entries with rule: DET-006 that were meant for TODO literals to rule: DET-016.

Fixed

  • P1: check_exceptions crashed the whole pre-commit hook with a TypeError on an unquoted expires: YYYY-MM-DD (YAML loads it as datetime.date). Now compares str(expires); regression test added.
  • Exit codes: validate_servicemap.py returns 2 on an unreadable file (as its docstring says); apply_upstream.py returns 1 on invalid JSON.
  • check_architecture.py: --write without --apply-upstream-fixes is a usage error instead of being silently ignored; docstring documents the dry-run; not-* literals replaced with the existing _NOT_* constants.
  • Go linter: -h exits 0; usage() lists subcommands in sorted order.
  • check_drift.py: _SERVICE_MAP_RELATIVE constant; stale # Plan 02 comment removed.

Docs

  • VALIDATION_RULES.md: DET-016 section (field list matches check_todos.py), architecture-audit section (DEP/IDEMP/DOC/SLA), removed the false claim that check_drift.py detects cross-service cycles.
  • README: AI-004/005/006/010 marked planned; bootstrap writes the block to AGENTS.md and CLAUDE.md.
  • Bundled schema path in SKILL.md, Go 1.26 in CONTRIBUTING, on_failure documented as a free-form string, dangling "spec §4.5/§6.3" references removed, /archspec:validate writes one JSON file per linter (a single file used to hold several concatenated arrays).
  • Version bumped to 0.13.0 in plugin.json, marketplace.json, pyproject.toml, and the manifest test; CHANGELOG entry added.

Checks

  • pytest: 235 passed; go test/go vet: ok
  • ruff check .: clean
  • benchmarks/run.sh: pass
  • CI: test, benchmarks, CodeQL green

🤖 Generated with Claude Code

@krus210 krus210 changed the title fix: address review findings — DET-016 for TODO literals, exceptions date crash, doc/code drift fix: DET-016 for TODO literals, exceptions date crash, doc/code drift (v0.13.0) Sep 23, 2026
@krus210
krus210 merged commit cbcfe19 into main Sep 23, 2026
6 checks passed
@krus210
krus210 deleted the fix/review-p1-p4 branch September 23, 2026 18:56
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.

1 participant