proposed · not yet adopted
The laws of
publishing a blyg.
When botference publishes a blyg for its owner, it makes promises. This page writes each promise as one sentence, says where it comes from, and says how it is checked today. Every law here is a proposal. Only the owner can adopt one.
Why laws
The Blygger project explains this idea in “How Blygger Studio is tested now, and why there is more test code than product code”. A law is “one sentence, in plain words, that starts with ‘For every…’”, and it cites where its promise comes from. Each law is then checked by a small, independent model of what should happen, against generated sequences of actions. Small bugs are planted in the product, one at a time, to prove that some law fails for each of them. The post credits that oracle framework to Kyle Mathews.
People own the laws. … An AI may propose a law; it may not adopt or change one.
The same post says that a Blygger client does not need any of this: “The protocol asks only that what you publish conforms.” So botference does not need laws to be a Blygger client. It wants them for a different reason.
AI models write most of botference's code. This week, independent reviews found real faults again and again, and the tests that the authoring model wrote had passed every time. In one fault, a queued press could publish an older text of a comment than one the owner had already pressed. In another, an agent's text could carry hidden HTML attributes into the published page. Some reviews also planted small faults in the code and found tests that did not notice them.
A test that the same model writes from the same code shares that model's blind spots. A law is written from the promise, not from the code, and a person decides whether it is the right promise. That is the check botference does not have yet.
The laws
Authority is where the promise comes from: a section of frontends/plugin/SPEC.md with its date, the
CHANGELOG, or the Blygger protocol.
Checked today names test files that exist now. They test chosen examples. None of them uses an independent
model, generated sequences of actions, or planted bugs. Some tests are in the owner's own site (a Jekyll site), not in this repository; the law says so.
-
For every thread the owner presses to publish, the post goes out with the text of the owner's latest press of that thread, never an older press and never text the owner did not press.
- Authority
- SPEC, “the publish queue”: “What goes out: the text at the press” and the review fix “No entry publishes an older text of a thread” (2026-11-25).
- Status
- Proposed
- Checked today
frontends/plugin/test/blyg-queue.test.mjs: “THE WRONG TEXT NEVER GOES LIVE” and its mirror.
-
For every new version published from the plugin, the post keeps its id, its address and its creation date, and its version number goes up by exactly one.
- Authority
- SPEC, “Publishing again: a new VERSION of the same post” (2026-11-24).
- Status
- Proposed
- Checked today
blyg-run.test.mjs: “PUBLISHING AGAIN” and “ADD TO THE EARLIER POST”.
-
For every one-click publish, the site's plan changes only that post's note and the files the site keeps for what the note itself quotes or links; a plan that would change anything else stops the run before the site is built or pushed.
- Authority
- SPEC, “Publish as blyg”, “One click” (2026-11-23), and “Owner setup for Publish as blyg” (
plan_guard,--only-note). - Status
- Proposed
- Checked today
blyg-run.test.mjs: the guard flags go on every plan, apply and publish, and a refused plan stops the run before apply; the note is never written outside the notes folder. In the owner's site:tests/blyg_draft_test.rbandtests/blyg_publish_test.rb(the--only-noterefusals).
-
For every passage that an agent wrote, or that the owner pasted from an agent, the published post shows it inside the marked agent box, even after the owner edits or accepts it, and the instruction behind it never appears on the post's page.
- Authority
- SPEC, “Agent text on a published post” (2026-11-24) and “The box: marked, never named, always a block” (review round 5, 2026-11-24).
- Status
- Proposed
- Checked today
blyg-note.test.mjs(the generated-passage form);blyg-run.test.mjs(“THE LOOK POLICY”: the box in the preview);blyg-liquid-build.test.mjs(a real Jekyll build, which runs only whenBLYG_BLOG_TREEnames a checkout of the site and is skipped otherwise). In the owner's site:tests/blygger_tk_test.rb(the instruction is not on the page).
-
For every agent passage, its text is published as text: it never becomes an HTML element, an HTML attribute, a script, a kramdown attribute list, or a link whose scheme is not http, https, mailto or a relative address.
- Authority
- SPEC, “Text that goes into the note” (2026-11-23) and “Agent text on a published post” (2026-11-24); the owner's site's note format, “Agent passages in a draft”.
- Status
- Proposed
- Checked today
blyg-note.test.mjs(“inside a generated passage nothing can end the scope…”, “an agent's text in a scope can set no attribute…”, “short posts are text”);blyg-liquid-build.test.mjswhen it runs. In the owner's site:tests/blygger_tk_test.rb(hostile output, hidden schemes) andtests/blygger_build_test.rb.
-
For every post published with one click, the plugin stops for the owner's look for two reasons only: a comment that was in the post would be left out, or a note changed outside the plugin would be replaced.
- Authority
- SPEC, “The look policy (the owner, 2026-11-25)”; CHANGELOG 2026-11-25.
- Status
- Proposed
- Checked today
blyg-run.test.mjs(“THE LOOK POLICY”);blyg-queue.test.mjs(“A FORCED LOOK”, “OUTSIDE”).
-
For every post when the setting is
confirm: always, nothing is published until the owner has seen the note and pressed Publish, and a press made under that setting keeps its look even if the setting changes before its turn.- Authority
- SPEC, “One click” (2026-11-23) and “the publish queue”: “
confirm: always” and the review fix “Where the owner is, one value” (2026-11-25). - Status
- Proposed
- Checked today
blyg-run.test.mjs(“confirm always: … the run waits at planned for the click”);blyg-queue.test.mjs(“CONFIRM ALWAYS”, “A LOOK PROMISED AT THE PRESS is kept”).
-
For every press the companion accepts, the post ends published, failed with a stated reason, cancelled by the owner, or waiting for the owner with a stated reason; it is never dropped without a word.
- Authority
- SPEC, “the publish queue”, review fix “Nothing is swallowed” and “An unreadable queue file is kept” (2026-11-25).
- Status
- Proposed
- Checked today
blyg-queue.test.mjs, by examples: a malformed entry, an exception while starting, an unreadable queue file, a restart, giving up after a restart. No test checks every sequence of presses.
-
For every run that fails after the site may have published, the queue pauses on that run and nothing is tried again until the owner acts.
- Authority
- SPEC, “the publish queue”, “When a run fails” (2026-11-25); “The run” (“nothing is retried by itself”, 2026-11-23).
- Status
- Proposed
- Checked today
blyg-queue.test.mjs(“A FAILURE AFTER PUSH PAUSES the queue”, “A RESTART while paused”);blyg-run.test.mjs(each step that fails “retries nothing by itself”).
-
For every request to publish, queue, cancel, resume, retry or give up a post, the companion acts only for the owner through the pinned extension, and refuses a guest, an anonymous caller and a script on the companion's own page.
- Authority
- SPEC, “Publish as blyg”: “Which requests may reach the routes” and “Routes and events” (2026-11-23); the queue's routes (2026-11-25).
- Status
- Proposed
- Checked today
blyg-publish-server.test.mjs(“hosted: every route is refused to an anonymous caller (401), a wrong password (401) and a guest (403)”, “a guest cannot … start a run, or act on one”, “the companion's own page cannot start, advance or read a publish”).
-
For every post, the post answers at most one target; a post that links to two or more blyg posts answers none of them, and a new version never gains a target that the post was first published without.
- Authority
- SPEC, “A lone link to a blyg post makes the post a response to it” (2026-11-24); Blygger protocol,
blyg_stub_of. - Status
- Proposed
- Checked today
blyg-run.test.mjs(“A LONE LINK”, “A LONE LINK, kept”);blyg-note.test.mjs(“a post's one target”).
-
For every highlight made on a blyg's home feed, the companion files it under a post only after it fetches that post and finds the passage in the post's text; otherwise the highlight stays a quote of the feed page.
- Authority
- SPEC, “A highlight on a blyg's home feed belongs to the post it sits in” and its review fixes (2026-11-24); Blygger protocol 0.4, §10.2 (the quoting rule).
- Status
- Proposed
- Checked today
feedbind-server.test.mjs(verified, unverified, a copying site, too short, several candidates);feedbind.test.mjs.
-
For every guest of a hosted companion, the guest never receives an agent's instruction, an agent's passage, or agent text that the owner pasted; each one shows as “[an agent's passage]”.
- Authority
- SPEC, “Publish as blyg, review round 5”: “Guests never receive a gap” (2026-11-24).
- Status
- Proposed
- Checked today
blyg-server.test.mjs(“a hosted GUEST never receives a gap: not its fill, its instruction, or pasted words (/page, an answer, SSE)”).
-
For every draft note without
agents: on, no agent is asked, and its/tklines are built and published exactly as typed.- Authority
- The owner's site's note format, “Agent passages in a draft” (“Only opted-in notes”).
- Status
- Proposed
- Checked today
- In the owner's site:
tests/blyg_fill_test.rb(“a note without the key is never sent”),tests/blygger_build_test.rb(“… a note without the key is untouched”),tests/blyg_publish_test.rb(“without the key, tk lines are text”).
-
For every run of
scripts/blyg-fill, the note file stays exactly as the owner left it; the answers go only to the note's separate fills file.- Authority
- The owner's site's note format, “Agent passages in a draft” (“The note itself is never written”).
- Status
- Proposed
- Checked today
- Not checked by a test yet. The tests read the fills file; none compares the note before and after a run.
How a law is adopted
- The owner reads each law, then adopts it, edits it, or rejects it. An AI does none of these.
- An adopted law then gets an independent check. The check is written from the law, not from the code.
- A law that changes later changes the same way: the owner decides, and the date is recorded.
Status
15 laws proposed on 2026-11-26. None adopted yet. A copy for review is in the repository at docs/laws.md.