octobot/OKF/LEARNINGS.md
Lukasz Boryn 1b6a5c3ae8 feat(write-OKF): give cites teeth and fence the derived zone
Blueprint 004. A `cites:` entry now takes three shapes: `path`,
`path:line` (the number is a reading aid, never validated), and
`path:symbol`, which resolves only if the symbol is a literal substring
of the file — so a cite breaks when the thing it cites moves.

Cite drift belongs to okf-check, not refresh: a cite needs only the
working tree, so decision 017's visibility split leaves refresh's DRIFT
rule covering `sealed:` pins alone.

okf-check also validates derived-zone shape — at most one begin/end pair
per page, begin first — with each marker anchored to its whole line, so
a page that documents the markers is not fenced by mentioning them.

The warrant contract and the `sealed:` block move to page-warrant.md,
buying okf-layout.md the headroom for the two new contracts. ROADMAP
phase 6 records its split into 004 (cites + fences) and 005 (taxonomy
scan) and corrects the two Verify clauses this change made false.

Blueprint 004's Verify: PASS.

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

55 lines
2.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
type: Learnings
purpose: Keep what was believed, what turned out true, and the source that settled it.
answers:
- "What did we get wrong here, and what is actually true?"
cites:
- README.md
- skills/productivity/commit-atomic-jj/anti-patterns.md
status: live
---
# octobot — learnings
<!-- Append-only. Format: believed / true / source. Supersede, never
rewrite. -->
- 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: 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.