Skip to content

docs(tags): complete delete_tag_definition docs + regression tests#67

Merged
arapov merged 1 commit into
masterfrom
chore/audit-followups-from-66
May 29, 2026
Merged

docs(tags): complete delete_tag_definition docs + regression tests#67
arapov merged 1 commit into
masterfrom
chore/audit-followups-from-66

Conversation

@arapov
Copy link
Copy Markdown
Collaborator

@arapov arapov commented May 29, 2026

Summary

Cherry-picks the genuine bits from codex #66, dropping that PR's v1.6.6→v1.7.0 doc rewrites and the wire-trace-v166/v167 → v170-* probe renames (iteration markers, not release versions — same rejection as #62/#64).

Real gaps my audit's docs lane missed:

  • README.md tool table — the Tags row listed add_tag, remove_tag_by_id but not delete_tag_definition (added to the catalog in this release but not the table).
  • src/capsule/cache.ts — the cache-module doc comments named only add_tag/remove_tag_by_id as cache-invalidating; delete_tag_definition also calls invalidateByPrefix, so the comment was inaccurate. Now correct, and generalizes /tags/<entity>/tags.

Added coverage:

  • tests/cache.test.ts: delete_tag_definition invalidates the cached list_tags response.
  • tests/entries.test.ts: a merged-timeline window that crosses the 100-entry ceiling returns the in-ceiling tail (25 entries) and ends the feed — complements the chore: pre-v1.7.0 audit fixes #65 boundary test with the partial-window case.

Plus a sharper PAGINATION CAVEAT wording (distinguishes crossing-window truncation from beyond-ceiling empty), with the v1.6.6 provenance preserved.

Dropped from #66 (churn)

  • Probe renames wire-trace-v166.ts → v170-entries.ts, v167.ts → v170-gaps.ts.
  • v1.6.6 → v1.7.0 rewrites across NOTES/DESIGN/OPTIMIZATIONS/CHANGELOG/entries.ts/tags.ts (including a worse "v1.7.0 release-candidate regression" phrasing).

Closes #66.

Test plan

  • 538 → 540 tests (+2); both new tests verified to pass against current entries.ts (< ceiling logic from chore: pre-v1.7.0 audit fixes #65)
  • typecheck / lint / format:check clean
  • no v1.7.0/v170 churn pulled in (git grep clean); v1.6.6 provenance preserved
  • privacy sweep clean
  • HOWTO test count synced (540)

🤖 Generated with Claude Code

Cherry-picked the genuine bits from codex PR #66, dropping that PR's
v1.6.6→v1.7.0 doc rewrites and the wire-trace-v166/v167→v170-* probe
renames (iteration markers, not release versions — rejected the same
way as #62/#64).

Real fixes the audit's docs lane missed:
  - README.md tool table: Tags row now lists delete_tag_definition
    (was added to the catalog but not the README table).
  - src/capsule/cache.ts: header + invalidateByPrefix doc comments now
    name delete_tag_definition as a third tag-mutating tool that drops
    the list_tags cache (accurate — the handler does call
    invalidateByPrefix), and generalize "/tags" → "/<entity>/tags".

Test coverage:
  - tests/cache.test.ts: delete_tag_definition invalidates the cached
    list_tags response.
  - tests/entries.test.ts: a merged-timeline window that CROSSES the
    100-entry ceiling returns the in-ceiling tail and ends the feed
    (complements the #65 boundary test with the partial-window case).

Plus a sharper PAGINATION CAVEAT wording (distinguishes crossing-window
truncation from beyond-ceiling empty) — kept the v1.6.6 provenance.

Closes #66 (cherry-picked clean). 538 → 540 tests.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@arapov arapov merged commit c95e3b6 into master May 29, 2026
1 check passed
@arapov arapov deleted the chore/audit-followups-from-66 branch May 29, 2026 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant