ckb/workload/2026-10-09_summary.md
Michał Kopeć 7b812e545b Template 1.11.1: fix five defects reported downstream
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>
2026-10-09 21:47:53 +02:00

1.5 KiB

[2026-10-09] Analysed downstream defect report

  • Read tmp/2026-10-09-ckb-template-defect-report.md (from the Servers KB, 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_tree is 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 in load_pages; corroboration credited to every citing page rather than the first one walked.
  • lint_report.py: directory citations legal and skipped (check 12); POINTER exempt from the duplicate test (check 8); conversational attribution accepted (check 13). Same directory fix in lint_quick.sh and lint_quick.ps1.
  • Contract decision: a ## Sources bullet may cite a directory; it carries no fingerprint. Documented in AGENTS.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.