Four deterministic-script defects plus a contract gap, all reported by a downstream KB running 1.11.0. None of them crashed; each produced confident, wrong output, which is why they went unnoticed. retrieve_candidates.py: - load_pages() walked rglob unsorted, so tests/expected/retrieve.json encoded one machine's directory order and the smoke test failed on a clean clone. - cited_by used setdefault, crediting a shared source to whichever page was walked first and dropping the source from the results entirely, so the other citing pages reported corroborated_by: []. Now every citing page is credited. lint_report.py: - check 12 reported a cited directory as "does not exist", because is_file() is false for a directory. Citing a subtree is now explicitly legal and carries no fingerprint; same fix in lint_quick.sh and lint_quick.ps1. - check 8 keyed log entries on timestamp + file with the action type dropped, so a Rule B POINTER was indistinguishable from a duplicate of the entry it points at. POINTER is now exempt; genuine duplicates still fire. - check 13 required a backticked path, so "— Chat conversation, Name, date" counted as unattributed although AGENTS.md lists it as a first-class source. Attribution and verifiability are now separate questions. AGENTS.md documents both resolved contract gaps: directory citations, and the two legal attribution shapes. The fixture KB gained coverage for all three lint defects — each finding fires under the old script and is silent under the new. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1.5 KiB
1.5 KiB
[2026-10-09] Analysed downstream defect report
- Read
tmp/2026-10-09-ckb-template-defect-report.md(from theServersKB, 1.11.0). - Verified all five defects against this repo's code at commit
e066541. All five are template defects in this repo's deterministic scripts; none are downstream-local. - Two of the report's secondary claims are wrong:
read_treeis already sorted (lint_report.py:189), and the 1.11.0 changelog entry does name the crux fix. - No code changed yet — §2 needs a contract decision on directory citations.
[2026-10-09] Fixed all five reported defects — template 1.11.1
retrieve_candidates.py: sorted walk inload_pages; corroboration credited to every citing page rather than the first one walked.lint_report.py: directory citations legal and skipped (check 12);POINTERexempt from the duplicate test (check 8); conversational attribution accepted (check 13). Same directory fix inlint_quick.shandlint_quick.ps1.- Contract decision: a
## Sourcesbullet may cite a directory; it carries no fingerprint. Documented inAGENTS.md§2 along with the two attribution shapes. - Fixture KB extended to cover all three lint regressions; verified each fires under the old script and is silent under the new one. Goldens regenerated once.
- Verified walk-order independence by rebuilding the fixture in reverse creation order — identical output. Genuine (non-POINTER) duplicates still detected.
- No
wiki/content changed, so Rule B does not apply to this work.