octobot/OKF/LEARNINGS.md
Lukasz Boryn 49f98ba1da feat(sound): make nostos primary and file reads the fallback
Sound queried nostos as a hint and then re-read the same bytes from
disk. Codegraph returns source, not metadata, so that read was a
duplicate everywhere except the two places the index is blind: nothing
indexed, and the working copy.

Step 2 becomes the primary source for what the code says; step 3 opens a
file only on an empty nostos result or a path dirty per one `jj st` per
run. The cite rule moves out of step 3 — it applies to every claim — and
prefers `path:symbol`, matching okf-layout's grammar for page
frontmatter. A new guardrail forbids shelling out to `codegraph`:
freshness is nostos's job, the working copy is sound's.

CONTEXT's Sounding entry and README's one-liner follow. Blueprint 008
flips to implemented; the belief it corrected lands in LEARNINGS.

Implements blueprint 008.

Verify: okf-check OKF/ → 0 error(s), 0 warning(s); sound/SKILL.md 98
lines (cap 110); grep -rni 'live code' over README, CONTEXT and
sound/SKILL.md matches nothing.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-23 23:42:25 +02:00

4.2 KiB
Raw Blame History

type, purpose, answers, cites, status
type purpose answers cites status
Learnings Keep what was believed, what turned out true, and the source that settled it.
What did we get wrong here, and what is actually true?
README.md
skills/productivity/commit-atomic-jj/anti-patterns.md
live

octobot — learnings

  • Believed: jj squash/describe can run like any shell command. True: without -m / --use-destination-message they open an editor and hang headless sessions; backgrounded jj mutations race the working-copy snapshot. Source: skills/productivity/commit-atomic-jj/anti-patterns.md, session 2026-07-19.
  • Believed: Claude Code scans ~/.claude/skills/ recursively. True: one level deep only — hence per-skill symlinks, not one repo symlink. Source: README.md §Install.
  • Believed: a conflicted jj chain must be resolved where it stands. True: check topology first — a chain rebased onto the wrong root produces phantom conflicts; rebasing onto the true destination shrank a 2-file conflict to 1 file before any hand-resolution. Source: session 2026-07-19 (write-readme-py conflict).
  • Believed: skills can cross-invoke via description matching. True: cross-links are file paths, so disable-model-invocation is safe for linked skills; only description routing dies. Source: Claude Code skill mechanics, README §Install.
  • Believed: OKF was an octobot coinage. True: OKF v0.1 is also what OpenWiki emits, so import-compat is nearly free — but its output model (hundreds of generated files, CI-refreshed) is opposite pressure to OKF's ≤110-line durable synthesis. Source: langchain-ai/openwiki (scanned 2026-07-21).
  • Believed: declared page plans were an octobot invention. True: they are convergent prior art — DeepWiki pages[]{title, purpose, parent} and deepwiki-skill's toc.yaml; decision 9 is the same move minus a config format. Source: https://docs.devin.ai/work-with-devin/deepwiki, https://github.com/natsu1211/deepwiki-skill (scanned 2026-07-21).
  • Believed: a marker-shape check can match its markers anywhere in the page. True: octobot's own blueprint 004 documents the okf:derived markers, so an unanchored match read them as a third fence and failed the repo's own OKF. A delimiter must be anchored to its whole line, or the page that specifies it becomes invalid. Source: weave of blueprint 004.
  • Believed: a model-invoked skill's zero-fire test can run in whatever order the checks are listed. True: naming the skill loads its description, so every question after that measures a primed router, not a cold one — 007's check 4 (ten ordinary questions, zero fires) had to precede check 1 (/sound by name), and the session running it could not be the session that built it. A self-fire test is spoiled by the very context that motivates it. Source: weave of blueprint 007.
  • Believed: shedding both registers would bring ROADMAP under the 110-line cap. True: the warrant okf-check requires costs ~7 frontmatter lines a page, which the blueprint's arithmetic (184 − 58 − 16 = 110) did not budget — §Why had to be compressed as well. A page-cap plan must price the frontmatter it also mandates. Source: weave of blueprint 002.
  • Believed: the cite/pin split earns its own register entry, since 004 states it as prose only. True: the warrant is a duplicate — page-warrant.md:36 already answers who owns cite drift, and 017 supplies the visibility principle it follows from. A decision that extends a live one without changing it is that one applied, not a new one. Source: warrant test, session 2026-07-22; 020 stays unspent.
  • Believed: a confirm-against-the-code step is what catches a stale index, so it must run for every claim. True: an index that returns source rather than metadata makes that step a re-read of bytes already in hand — its value survives only at the gaps where the index cannot answer (nothing indexed, and the working copy). A verification step earns its cost only where the step before it is blind. Source: weave of blueprint 008.