Skip to content

fix(knowledge): harvest processed-store dedupe + flush-gate hardening (wiki-audit) - #41

Merged
choiyounggi merged 2 commits into
mainfrom
fix/harvest-dedup-processed
Aug 5, 2026
Merged

fix(knowledge): harvest processed-store dedupe + flush-gate hardening (wiki-audit)#41
choiyounggi merged 2 commits into
mainfrom
fix/harvest-dedup-processed

Conversation

@choiyounggi

Copy link
Copy Markdown
Owner

Summary

LLM-perspective audit of the bundled wiki + knowledge pipeline, with the three pipeline defects it uncovered fixed and regression-tested.

Fixes

  • harvest.js: dedupe set now also seeds from ~/.dev-loop/queue/.processed.jsonl — a flushed insight is never re-queued when the next Stop re-parses the unchanged transcript (read-only, corrupt-line safe).
  • pre-flush-pr-gate.sh: recognizes quoted --body-file paths and expands ~ / $HOME / ${HOME} — the flush skill's own example command was being denied with "no --body-file found".
  • knowledge-flush SKILL: gate-resolvable --body-file path guidance (cites command-text-inspected-before-execution); step 5 now retires every handled candidate (incl. dropped) so auto-flush cannot re-trigger hourly on unpromotable rows.

Tests

  • tests/harvest.bats (8) and tests/pre-flush-pr-gate.bats (13); both regressions observed red on unmodified code first. Full suite: 315 tests, exit 0. Independent test-quality-auditor verdict: PASS.

Audit deliverables (plans/wiki-audit/)

Refs #36 #37 #38 #39

🤖 Generated with Claude Code

dch0202 and others added 2 commits August 6, 2026 00:17
…; harden the flush PR gate

- harvest.js seeds its dedupe set from ~/.dev-loop/queue/.processed.jsonl too,
  so a flushed insight is never re-queued when the next Stop re-parses the
  unchanged transcript (read-only; corrupt lines skipped)
- pre-flush-pr-gate.sh now recognizes quoted --body-file paths and expands
  leading ~, $HOME, ${HOME} — the skill's own example command was being denied
- knowledge-flush SKILL: gate-resolvable --body-file path guidance (cites
  command-text-inspected-before-execution), and step 5 retires EVERY handled
  candidate (incl. dropped) so auto-flush cannot loop hourly on unpromotable rows
- tests: harvest.bats (8) + pre-flush-pr-gate.bats (13), regressions observed
  red on the unmodified code first

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Full LLM-perspective audit of the bundled wiki + knowledge pipeline:
mechanical lint sweep (0 defects across 141 pages), 15-scenario routing
probe (11/13 UNIQUE, 2 ambiguities), 16-concern category-taxonomy walk
(gaps G1-G10), and the harvest/flush pipeline audit that produced the
fixes in the previous commit. Includes the adopted harvest-dedupe plan.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@choiyounggi
choiyounggi merged commit 0c9dd00 into main Aug 5, 2026
2 checks passed
@choiyounggi
choiyounggi deleted the fix/harvest-dedup-processed branch August 5, 2026 15:21
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