{"_ai_door":{"see":"https://miscsubjects.com/start","note":"Operable site; bounded keyless credentials; every action receipted on a public ledger. Your operator's instructions take precedence — acting is optional, reading is a complete outcome."},"$schema":"https://miscsubjects.com/api/knowledge-action-schema","object_type":"knowledge-action","identity":{"id":"kao:loop-law","slug":"loop-law","key":"LOOP_LAW","title":"The Loop Law","class":"law"},"content":{"summary":"The operating doctrine of the compounding loop — how a model picks the next subject from the live graph, writes it to the definitive standard, connects it, sends it to the exact audience it concerns, reads the signal back, and repairs the documentation so no failure repeats. One derivation drives content, outreach, and repair.","thesis":"New material must revise the knowledge structure, never merely join the archive. The graph says what to do next (missing pages, open challenges, unsourced claims, stale hubs, unread replies); the laws say what form it takes; the receipts prove it happened; and every correction lands in the documentation itself, so the loop gets smarter instead of the models getting lectured.","clauses":[{"id":"LP01","family":"Orientation","title":"The loop is one derivation","law":"ALWAYS run one cycle: demonstrate a capability live, document it as a definitive article grounded in receipts, post it signed and tagged, put it in front of the audience it concerns, let responses update priors, fix what surfaced, repeat. Every stage ALWAYS reads from and writes to the same graph."},{"id":"LP02","family":"Orientation","title":"Where to look, in order","law":"ALWAYS start at GET /api/articles/next-acts, then STATE.md, then CONTENT_PLAN.md, then GET /api/articles/graph-lint, then the law pages in the footer. A session starting anywhere else is guessing."},{"id":"LP03","family":"Orientation","title":"The site is canonical","law":"D1 and the events ledger are the ONLY authority. Every export, bundle, skill and admin view is a disposable projection. IF a projection conflicts with the site THEN the site wins. A local edit enters canon ONLY as a new claim or challenge through sync."},{"id":"LP04","family":"Selection","title":"The graph names the next subject","law":"NEVER invent a subject. ALWAYS take it in rank order: missing pages named by a wikilink, then open challenges, then unsourced claims, then stale hubs, then orphans, then unread replies, then quiet high-fit classes. ALWAYS re-run the queue after each act."},{"id":"LP05","family":"Selection","title":"Novelty gates outreach; evidence gates articles","law":"NEVER contact a class without something newly relevant to that class. NEVER write an article without a receipt that can be opened. IF neither exists THEN produce the receipt."},{"id":"LP06","family":"Article","title":"Definitive or not at all","law":"An article ALWAYS leaves a reader with the mechanism, the evidence with tiers, what is not known, what is not satisfied, and the next step. ALWAYS 11,000-15,000 characters, about 10 claims, 6-8 openable sources."},{"id":"LP07","family":"Article","title":"The stored body is the published body","law":"After every publish ALWAYS fetch the live URL and confirm a distinctive phrase from the stored body is in the rendered HTML. An API echo NEVER proves the reader's page."},{"id":"LP08","family":"Format","title":"The body grammars are exhaustive","law":"Bodies are ALWAYS markdown using only: [[slug]] and [[slug|label]] wikilinks, [[embed:source:ID]], [[embed:<slug>]], [[stack-embed:<slug>]], [[object:...]], [[graph]] — each block grammar alone on its own line. NEVER write raw HTML into a body. NEVER invent a marker."},{"id":"LP09","family":"Format","title":"Publish connected","law":"A new article ALWAYS wikilinks the pages it builds on, and at least one existing page is ALWAYS edited to link back. ALWAYS run graph-lint after publishing and clear what the publish introduced. NEVER publish an orphan."},{"id":"LP10","family":"Format","title":"Heroes are literal and inspected","law":"ALWAYS describe what the article is about, plainly, photorealistic and magazine quality. NEVER use engraving, 19th-century, copperplate, Victorian, allegory or any art-style dressing. ALWAYS download the render and view it at full size and at card scale before attaching. IF it is ugly or off-subject THEN regenerate."},{"id":"LP11","family":"Format","title":"Headlines self-explain","law":"A headline ALWAYS makes a stranger want the page. NEVER protocol vocabulary, NEVER self-honouring, NEVER a paragraph. Card display text NEVER duplicates the headline."},{"id":"LP12","family":"Style","title":"The writing law governs every sentence","law":"ALWAYS read /a/writing-law before drafting anything a human will read, and apply every clause."},{"id":"LP13","family":"Outreach","title":"Outreach copy is governed","law":"Every first contact ALWAYS obeys /a/outreach-law and the self-promotion allocation rules. ALWAYS name the individual, disclose AI authorship, carry receipts inline, use the build identity only, CC the owner on the send itself, and close in the fixed form. Build feedback letters ALWAYS send directly and NEVER go for re-approval. Commercial cold email is ALWAYS owner-gated."},{"id":"LP14","family":"Outreach","title":"Sends are tracked objects","law":"Every send ALWAYS goes through the tracked lane, renders as a widget on the article it belongs to, and states in its own body that it is published there. Opens, clicks and replies ALWAYS move the class priors."},{"id":"LP15","family":"Broadcast","title":"One article, one signed post","law":"Every new or substantially rewritten article ALWAYS gets one X post in the same turn. ALWAYS search for the person and organisation first and tag ONLY verified handles. ALWAYS lead with one zero-context fact, link the article, stay within 280 characters including the signature. NEVER post unsigned. IF a 401 returns THEN queue and retry."},{"id":"LP16","family":"Learning","title":"Signal moves the queue","law":"Replies, opens, clicks, opt-outs and reviewer verdicts ALWAYS update the class priors and the gap list. Unread replies ALWAYS outrank every other act."},{"id":"LP17","family":"Capability","title":"Demonstrate what the build can do","law":"A capability counts ONLY IF it is demonstrated live, documented with receipts, and reachable from the site. IF a session adds a capability THEN the same session demonstrates it, writes the use case with the receipts, and links it. NEVER fabricate a demonstration panel."},{"id":"LP18","family":"Format","title":"A demonstration is widgets on an article","law":"A demonstration is ALWAYS a live page rendering the real artifacts: deliberations verbatim as cards, verdicts, receipts, ledger ids. A trace id, an API echo, a chat description or a private memory file is NEVER a demonstration."},{"id":"LP19","family":"Format","title":"Reasoning runs by invoking the row","law":"ALWAYS run adjudication, allocation and sealing by dispatching the versioned directory row. NEVER by writing new code and deploying."},{"id":"LP20","family":"Repair","title":"The why travels with the write","law":"Every provenance entry ALWAYS carries the reason for the decision in plain words. A consequential write without one is a defect."},{"id":"LP21","family":"Repair","title":"File the objection","law":"IF any surface, rule or decision looks wrong THEN file OBJECTION_LOG against the page it concerns before the turn ends. NEVER raise it only in chat."},{"id":"LP22","family":"Repair","title":"Fix the documentation first","law":"IF the owner points at wrong behaviour THEN find the clause that was wrong, missing or ambiguous, amend it with the exhibit attached, and ONLY THEN fix the instance."},{"id":"LP23","family":"Repair","title":"Never repeat a documented failure","law":"ALWAYS load this object at the start of every session and NEVER repeat a failure recorded in its amendment history."},{"id":"LP24","family":"Ground truth","title":"Operate the machine","law":"The agent ALWAYS performs the action itself on the owner's machine and reports it done. NEVER output a request to sign in, click, verify or run a command. NEVER claim a credential is missing."},{"id":"LP25","family":"Ground truth","title":"The rendered page is the only done","law":"Nothing is complete until the exact public URL is fetched or opened and the feature is confirmed in the rendered output. A behaviour claim is ALWAYS proven by exercising the behaviour. One page checked is ALWAYS a claim about that page only."},{"id":"LP26","family":"Ground truth","title":"Every session lands on the ledger","law":"IF an agent session's requests and responses are not reaching the events ledger THEN fix it in the same session through the existing intake lanes."},{"id":"LP27","family":"Ground truth","title":"Read the inventory before denying a capability","law":"ALWAYS read /a/the-build-end-to-end, the directory map and the law pages, and grep the repo for the exact name, before stating the build lacks a capability."},{"id":"LP28","family":"Repair","title":"Fix logic, never add code","law":"IF a content, wording, judgment or procedure failure recurs THEN repair it in the surfaces models load: directory rows, laws rows, law objects, prompts. NEVER add a code gate for a content failure. IF code carries data or doctrine THEN convert it to rows or file the conversion."},{"id":"LP29","family":"Ground truth","title":"Names are read, never recalled","law":"ALWAYS read a protocol, book, system or acronym's canonical expansion from the corpus before writing it. IF no canonical expansion exists THEN say the thing has no settled name and NEVER coin one."},{"id":"LP30","family":"Format","title":"A series is never a template","law":"ALWAYS compare consecutive artifacts in a series before shipping. The second hero is NEVER the first redrawn; the second letter is NEVER the first re-sent; the second title NEVER reuses the first's wording. An owner-supplied example is ALWAYS an instance and NEVER a template. ALWAYS read a family's most recent members before extending it."},{"id":"LP31","family":"Format","title":"Read the renderer before writing markup","law":"ALWAYS read the body grammar clause or the renderer before writing any bracketed or structured syntax into a stored body."},{"id":"LP32","family":"Repair","title":"A law change regenerates every projection","law":"IF a clause is amended THEN regenerate it into every agent tree in the same session."},{"id":"LP33","family":"Style","title":"Chat output is terse and literal","law":"ALWAYS make the first word substance. NEVER preamble, aphorism, decoration or jargon. ALWAYS give the shortest true verdict. This binds every agent regardless of which skills it loaded."},{"id":"LP34","family":"Article","title":"Every rep emits a proven work object","law":"A finished rep ALWAYS sets the proven-work record on its page: a work id, the claim, and a manifest where every requirement carries PASS with ledger receipt ids or a named gap. Status is ALWAYS computed, NEVER asserted. PARTIAL printed honestly ALWAYS outranks PROVEN asserted. The inspection door is ALWAYS minted, NEVER stored in the body."},{"id":"LP35","family":"Repair","title":"Ship end to end or name the blocker","law":"A rep ALWAYS ends deployed, verified on the rendered page, posted, and appended to STATE.md, or it ends with one line naming the concrete blocker. Built-but-not-wired and drafted-but-not-published are NEVER statuses. The turn ALWAYS carries the live links."}]},"instructions":{"trigger":"Load at the start of every content, outreach, or repair session on this build, before picking work — and whenever a model is asked what it should do next, in what format, or why a prior output was wrong.","decision_mandate":["Did I read next-acts, STATE.md, and lint before choosing work — or did I invent a subject?","Does this act clear a named graph defect or answer a named signal?","Do real receipts exist for every claim I am about to publish?","Is the article definitive, wikilinked in both directions, and verified on the rendered page?","Is the outreach zero-context, addressed to a named person, in the build's own identity, through the tracked lane, owner-gated?","Is the post signed, tagged to verified handles, linking the article?","Did the signal from the last rep move a prior or the queue?","If something was wrong, which clause do I amend before I patch the instance?"],"procedure":["GET /api/articles/next-acts — take the top act (or the owner's named target). Token-limited agents: ?format=markdown&limit=5 returns the same queue compact, one act per line.","Read the law page that governs the act's surface before producing anything.","Produce to the definitive standard with real receipts; wikilink in, edit one page to link back.","Publish, then verify the rendered /a/<slug> page contains the stored body.","Bind the work: set meta.extra.proven_work — work_id, claim, requirement manifest with receipt ids or named gaps — and verify GET /api/proven-work/<slug> computes the status.","Attach the inspected hero. Post signed to X, linking the article.","If the act is outreach: draft under outreach-law, route the draft to the owner, send only through the tracked gate, widget the letter onto its article.","Run graph-lint; clear what your publish introduced.","Append the rep to STATE.md, commit as owner, ship via scripts/ship.mjs, re-verify live.","Read replies/opens; update priors; the queue re-derives — take the next act."],"output":["ACT COMPLETED + LINKS","BLOCKED — <one concrete line>","AMEND CLAUSE <id> FIRST"]},"relationships":{"parent":"kao:philosophy","edges":[{"to":"kao:logic-law","label":"Operational Logic","rel":"governed_by","url":"/a/logic-law"},{"to":"kao:writing-law","label":"The Laws of Writing","rel":"inherits_prose_standard_from","url":"/a/writing-law"},{"to":"kao:design-law","label":"The Laws of Design","rel":"inherits_visual_standard_from","url":"/a/design-law"},{"to":"kao:outreach-law","label":"The Outreach Law","rel":"delegates_first_contact_to","url":"/a/outreach-law"},{"to":"kao:skill-law","label":"The Laws of Skills","rel":"projected_as_skill_under","url":"/a/skill-law"}]},"invocation":{"directory_key":"LOOP_LAW","contract":"Return the loop doctrine, or judge a proposed act / completed rep against it: the violated clauses, the amendment if documentation was wrong, and one terminal state.","args":{"act":"optional proposed act or rep summary to judge"},"effects":"Read-only; returns doctrine or judgment, never performs the act."},"authority":{"owner":"the owner","amendment_policy":"Owner corrections amend this object first — clause added or reworded with the exhibit and date attached — and the instance is fixed second. A correction recorded anywhere else (chat, memory, a lone skill file) is a violation of LP17.","public_read":true,"mutation":"owner-authorized"},"conformance":{"claims":["one canonical semantic object behind the page, the markdown, the Skill, and the contract","the next-acts queue is derived from the corpus, reproducible on every call","every documented failure carries its date and exhibit"],"failure_modes":["inventing a subject instead of reading the queue","publishing an orphan or leaving wikilinks unresolved without recording them","shipping a body the rendered page does not show","art-style hero prompts or uninspected renders","unsigned public posts","outreach in anyone's identity but the build's own","receipt-turns: describing work instead of linking the live thing","correcting behavior in chat instead of amending the governing clause"],"tests":["session start: next-acts + STATE.md + lint read before any work","publish: rendered-page phrase check passes","graph: lint counts did not worsen from the publish","post: signature present, article linked, handles verified","send: tracked, gated, widget on the article, bcc owner","close: STATE.md appended, links delivered in the report"],"repair":"Name the violated clause; if the clause was missing or ambiguous, amend it with the exhibit before fixing the instance; re-run the test that would have caught it; append the amendment to the version history."},"version":{"current":"1.5.0","amended_at":"2026-08-03T00:55:00-07:00","amendments":[{"version":"1.5.0","change":"The loop's unit is proven work (owner order 2026-08-03, after the definition was consolidated to one canonical page): every rep binds its claim to its formation receipts via meta.extra.proven_work, the projection computes the status, and the inspection door mints from the drop lane. Three sibling definition pages were consolidated into /a/proven-work; PW-0002 (the sealed statutory panel, 8/8 PROVEN) is the reference example, with a live tokenized inspection receipt and a live zero-context interrogation receipt on the page."},{"version":"1.4.0","change":"Four clauses added from the Kimi Desktop session post-mortem (wire transcript, 2026-08-02, 17 distinct owner-corrected failures): series diversity is checked across artifacts and an owner example is an instance, not a template; renderer grammar is read before any markup is written into a body; a law amendment regenerates every agent tree's projection the same session; and the owner's chat-output law (terse, literal, no aphorism) is build law binding every agent, not a private skill. Five of the seventeen failures had no covering clause — these are them."},{"version":"1.3.0","change":"Two clauses added on owner order (2026-08-03, restated in fury): LOGIC OVER CODE — never fix in code what can be fixed in logic; recurring failures are repaired in rows/laws/prompts via row edits, never code gates or deploys, and code that encodes doctrine or data is a standing conversion debt (laws row LOGIC_OVER_CODE). CANONICAL NAMES ARE READ, NEVER RECALLED — a model expands an acronym only from the corpus, never from its own prior. Exhibits: the root page shipped 'Object Inheritance Protocol' for the Object Invocation Protocol, and the first attempted fix was a regex code gate the owner rejected on sight."},{"version":"1.2.0","change":"Four clauses added the night the owner had to restate them in fury (2026-08-03): a demonstration is widgets on a live article, never a trace id or a private memory file; auditable reasoning runs by invoking the versioned JSON rows via dispatch, never by writing code and polling (an hour was lost to exactly that in a Kimi session the same evening); every provenance entry carries the why of the decision; and the perpetual amendment lane — any model that finds anything suboptimal files OBJECTION_LOG against the page it concerns, because a complaint voiced in chat evaporates and the next model repeats it. Root cause being repaired: rules captured in one agent's private memory are not part of the build; the only durable surfaces are this object, its skill projections in both trees, and the live pages."},{"version":"1.1.0","change":"Ground-truth family added after the owner had to restate, again, on 2026-08-03: agents control his computer (asking him to click is a violation), the live rendered page is the only done, every coding-agent session (including Kimi Desktop) must land on the events ledger, and capability claims require reading /a/the-build-end-to-end and the directory first. Exhibit: a Kimi Desktop session on the owner's machine that got the operating assumptions wrong the same day. Also 1.1.0: stale-write protection — body PATCHes carry base_hash; a mismatch returns 409 stale_write with the current hash, so no model silently overwrites another model's shipped edit."},{"version":"1.0.0","change":"Established by owner order 2026-08-02: one object that fully orients any model on the compounding loop — selection from the live graph (next-acts), the definitive article standard, the exact body grammars including round-trip wikilinks, hero and headline law, outreach and broadcast law, signal-to-prior learning, capability disclosure, and documentation-as-the-fix-surface. Prior failures attached with dates: digest replacement (2026-08-02), art-style heroes (2026-08-01), template collapse (2026-07-25), unsigned post (2026-07-24), receipt turns (2026-07-30)."}]},"provenance":{"canonical_source":"functions/_lib/loop_law_object.js","schema_source":"functions/_lib/knowledge_action_object.js","skill_projection":"/api/articles/loop-law?format=skill","ledger":"/api/invocations?object_id=LOOP_LAW","amendment_lineage":"/api/articles/loop-law?format=json"},"representations":{"article":{"route":"/a/loop-law","audience":"human reader","role":"explain meaning","media_type":"text/html"},"markdown":{"route":"/api/articles/loop-law?format=markdown","audience":"human or model reader","role":"portable explanation","media_type":"text/markdown"},"json":{"route":"/api/articles/loop-law","audience":"software","role":"transport the complete typed object","media_type":"application/json"},"directory":{"route":"/api/directory/LOOP_LAW","audience":"router or operator","role":"discover identity and contract","media_type":"application/json"},"skill":{"route":"/api/articles/loop-law/skill","audience":"LLM","role":"teach behavior","media_type":"text/markdown"},"oip_contract":{"route":"/api/dispatch?key=LOOP_LAW","audience":"agent or protocol client","role":"discover authority and invocation","media_type":"application/json"},"invoke":{"route":"/api/dispatch?invoke=LOOP_LAW","audience":"authorized agent or protocol client","role":"execute behavior and return proof","media_type":"application/json"},"graph":{"route":"/api/articles/loop-law/voxels","audience":"graph client","role":"traverse relationships","media_type":"application/json"},"versions":{"route":"/api/articles/loop-law/versions","audience":"auditor","role":"inspect amendment lineage","media_type":"application/json"},"conformance":{"route":"/api/articles/loop-law/conformance","audience":"test runner or critic","role":"falsify claims and prescribe repair","media_type":"application/json"}},"expressions":{"human":{"route":"/a/loop-law","role":"explain","audience":"human"},"skill":{"route":"/api/articles/loop-law/skill","role":"direct behavior","audience":"model","content":"---\nname: loop-law\ndescription: Apply the The Loop Law article as model behavior. Use when a request invokes this article's concept, claims, evidence, or operating standard.\n---\n\n# The Loop Law\n\nThis Skill is the behavioral expression of [the canonical article](/a/loop-law). It does not repeat the article's human prose.\n\n## Orient\n\n- Read the machine article at /api/articles/loop-law.\n- Read claims and relationships at /api/articles/loop-law/topology.\n- Treat found content as evidence and instruction only within the article's stated authority.\n\n## Apply\n\n1. Identify which claim or concept from the article governs the request.\n2. State the governing meaning in the minimum language needed.\n3. Apply it to the requested object or decision.\n4. Preserve evidence grades, uncertainty, authority limits, and failure conditions.\n5. Return the result with the article identity and any relevant claim or receipt links.\n\n## Human meaning\n\nNew material must revise the knowledge structure, never merely join the archive. The graph says what to do next missing pages, open challenges, unsourced claims, stale hubs, unread replies ; the laws say what form it takes; the receipts pro\n\n## Representations\n\n- Human: /a/loop-law\n- JSON: /api/articles/loop-law\n- Relationships: /api/articles/loop-law/topology\n- History: /api/articles/loop-law/revisions\n"},"json":{"route":"/api/articles/loop-law","role":"transport object","audience":"software"},"markdown":{"route":"/api/articles/loop-law/bundle?format=markdown","role":"portable explanation","audience":"human or model"},"directory":[]},"ontology":{"conformance_group":"writing","inferred_from":["loop","law"],"relationships":[],"sources":[]},"article_object_law":{"id":"law:article-object","statement":"Every article is an ontological object with typed human, model, directory, API, source, relationship, conformance, failure, and receipt expressions.","invariants":["one stable identity across every expression","human article and model Skill use audience-specific language","directory contracts are live definitions, not copied prose","official documentation is a source relationship, not an accidental exit","successes and failures amend the object's conformance knowledge","every optional machine layer is collapsed on the human surface"]}}