Skip to content

The pen, for readers aged 13 to 18

Glossary termreferenceaudience-13-18young-readers/the-pen

Checked by automation only

still a draft

  • 2026-10-27, noelmcloughlin (a person): carry over four things glossary/the-pen.md says that this retelling leaves out: the lokf validate run (:11); moving feedback into .lokf/questions.md (:12); the scheduled-run wrapper and KNOWLEDGE_PEN_DRY_RUN_ONLY (:16); the handoff lines (:16). The :NN numbers count lines of glossary/the-pen.md after its frontmatter.

Written 2026-10-28 by ktl-librarian (automation). Last checked 2026-10-29 by ktl-librarian (automation).

The name the docs give knowledge-apply.sh, the script through which ktl-librarian writes every change to the bundle.

The full record
Checks
  • 2026-10-29 by ktl-librarian (automation)
Sources
Derived from
About
Related to
Graph
Open this concept in the knowledge graph
IRI
https://w3id.org/ktl/knowledge/young-readers/the-pen
Licence
CC BY 4.0
Files
MarkdownJSON-LDSource on GitHubHistory on GitHub

This page is for readers aged 13 to 18. It retells the-pen in shorter words. The full page has every detail.

The pen is the name the docs give knowledge-apply.sh. It is the script through which ktl-librarian writes every change to the bundle (knowledge-bundle).

ktl-librarian never edits a file under .lokf/knowledge/ by hand. It describes each change as an operation in .lokf/patch.yaml. The pen checks every operation. Then it writes the files, or it refuses the whole file and writes nothing.

  • It stamps generated from the clock.
  • It keeps a concept’s description equal to its two index bullets.
  • It files each line in log.md.
  • It runs lokf validate on every concept a patch would write, when .lokf/.venv holds the toolkit. It does this with --dry-run too.
  • It moves a feedback entry the librarian handled into .lokf/questions.md. A patch handles ten entries at most.

The pen refuses:

  • a human: actor, which marks a person’s record;
  • a rewrite of text a person wrote;
  • the deletion of a concept a person confirmed or left a note on.

It also refuses a patch that would add, change or remove a person’s record. That record is a human: event or a person’s note.

In the scheduled run, the wrapper applies the patch file after the agent has finished. It refuses a run in which the agent changed any other file.

In the agent’s step, the pen only checks the patch. The wrapper sets KNOWLEDGE_PEN_DRY_RUN_ONLY. So a run without --dry-run writes nothing, and it leaves the patch file for the wrapper.

A patch may also carry handoff. These are up to ten lines for the person reviewing the change, in the librarian’s own words. The pen holds each one to one line of printable text, and writes none of them to the bundle. The scheduled pull request shows them under From the librarian.

The pen is the librarian’s only way to write the bundle. A person writes the curator’s verdicts another way, through ktl-curator or the KTL Curator plugin. The architecture page names the pen as the registrar for the librarian.

  • 2026-10-27, human:noelmcloughlin: carry over four things glossary/the-pen.md says that this retelling leaves out: the lokf validate run (:11); moving feedback into .lokf/questions.md (:12); the scheduled-run wrapper and KNOWLEDGE_PEN_DRY_RUN_ONLY (:16); the handoff lines (:16). The :NN numbers count lines of glossary/the-pen.md after its frontmatter.