1"use strict";(self.webpackChunkckb_cookbook=self.webpackChunkckb_cookbook||[]).push([[8210],{8301:(e,r,d)=>{d.r(r),d.d(r,{assets:()=>o,contentTitle:()=>s,default:()=>h,frontMatter:()=>c,metadata:()=>i,toc:()=>l});var n=d(4848),t=d(8453);const c={},s="Markdown Template Consumer Audit",i={id:"template-consumer-audit",title:"Markdown Template Consumer Audit",description:"The taxonomy separates the canonical Main workpad, append-only operational",source:"@site/docs/template-consumer-audit.md",sourceDirName:".",slug:"/template-consumer-audit",permalink:"/docs/template-consumer-audit",draft:!1,unlisted:!1,editUrl:"https://github.com/CKBFansDAO/ckb-cookbook/tree/master/docs/template-consumer-audit.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"Prompt Template Contract",permalink:"/docs/prompt-template-contract"}},o={},l=[];function a(e){const r={code:"code",h1:"h1",p:"p",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,t.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.h1,{id:"markdown-template-consumer-audit",children:"Markdown Template Consumer Audit"}),"\n",(0,n.jsx)(r.p,{children:"The taxonomy separates the canonical Main workpad, append-only operational\nevidence, Human Review decisions, and read-only reports. Runtime keys remain\ntyped; paths are repository-owned Markdown selected through the resource\nclosure."}),"\n",(0,n.jsxs)(r.table,{children:[(0,n.jsx)(r.thead,{children:(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.th,{children:"Template path"}),(0,n.jsx)(r.th,{children:"Typed/runtime consumer"}),(0,n.jsx)(r.th,{children:"Lifecycle reason"})]})}),(0,n.jsxs)(r.tbody,{children:[(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"template/workpad/main-handoff.md"})}),(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"src/lanes/main_loop/handoff.rs"})}),(0,n.jsx)(r.td,{children:"Canonical stable Main sections"})]}),(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"template/workpad/main-handoff-failure.md"})}),(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"src/lanes/main_loop/handoff.rs"})}),(0,n.jsx)(r.td,{children:"Stable Main recovery receipt"})]}),(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"template/workpad/main-assignee-ownership.md"})}),(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"src/lanes/main_loop/handoff.rs"})}),(0,n.jsx)(r.td,{children:"Pre-claim ownership receipt"})]}),(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"template/workpad/main-quality-gate.md"})}),(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"src/commands/gate.rs"})}),(0,n.jsx)(r.td,{children:"Pre-dispatch contract receipt"})]}),(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"template/workpad/main-runtime-ownership.md"})}),(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"src/lanes/main_loop/handoff.rs"})}),(0,n.jsx)(r.td,{children:"Stable run identity section"})]}),(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"template/workpad/main-usage-limit-pause.md"})}),(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"src/lanes/main_loop/handoff.rs"})}),(0,n.jsx)(r.td,{children:"Resumable Main recovery state"})]}),(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"template/evidence/agent-review.md"})}),(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"src/review.rs"})}),(0,n.jsx)(r.td,{children:"Automatic append-only Review run"})]}),(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"template/evidence/agent-review-handoff.md"})}),(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"src/handoff.rs"})}),(0,n.jsx)(r.td,{children:"Main-to-Review invariant evidence"})]}),(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"template/evidence/repeated-review-failure.md"})}),(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"src/review.rs"})}),(0,n.jsx)(r.td,{children:"Compact same-cause retry evidence"})]}),(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"template/evidence/manual-review.md"})}),(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"src/lanes
1/review/manual.rs"})}),(0,n.jsx)(r.td,{children:"Manual independent Review record"})]}),(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"template/evidence/review-invalid-handoff.md"})}),(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"src/lanes/review/automatic.rs"})}),(0,n.jsx)(r.td,{children:"Review refusal before backend run"})]}),(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"template/evidence/rework-diagnostic.md"})}),(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"src/rework.rs"})}),(0,n.jsx)(r.td,{children:"Typed Review/Main Rework trigger"})]}),(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"template/evidence/review-freshness.md"})}),(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"src/review/freshness.rs"})}),(0,n.jsx)(r.td,{children:"Post-change review validity report"})]}),(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"template/evidence/doctor-triage.md"})}),(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"src/doctor/report.rs"})}),(0,n.jsx)(r.td,{children:"General Doctor finding/repair receipt"})]}),(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"template/evidence/human-review-repair.md"})}),(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"src/doctor/report.rs"})}),(0,n.jsx)(r.td,{children:"Narrow invalid-Human-Review rollback receipt"})]}),(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"template/evidence/merge-run.md"})}),(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"src/merge_lane.rs"})}),(0,n.jsx)(r.td,{children:"Complete merge attempt and readback"})]}),(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"template/evidence/merge-repair.md"})}),(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"src/merge_lane.rs"})}),(0,n.jsx)(r.td,{children:"Repair-only evidence before routing"})]}),(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"template/evidence/forge-rework-run.md"})}),(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"src/commands/forge/rework.rs"})}),(0,n.jsx)(r.td,{children:"Confirmed contract replacement evidence"})]}),(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"template/evidence/forge-rework-blocked.md"})}),(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"src/commands/forge/rework.rs"})}),(0,n.jsx)(r.td,{children:"No-write blocker evidence"})]}),(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"template/evidence/lane-session.md"})}),(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"src/commands/session/start.rs"})}),(0,n.jsx)(r.td,{children:"Backend/session identity evidence"})]}),(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"template/evidence/workspace-adoption.md"})}),(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"src/commands/workspace.rs"})}),(0,n.jsx)(r.td,{children:"Operator-selected workspace singleton"})]}),(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"template/evidence/workspace-ensure.md"})}),(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"src/commands/workspace/ensure.rs"})}),(0,n.jsx)(r.td,{children:"Runtime-created/reused workspace validation"})]}),(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"template/evidence/parent-topology.md"})}),(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"src/commands/forge.rs"})}),(0,n.jsx)(r.td,{children:"Optional native parent branch evidence"})]}),(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"template/decision/human-review.md"})}),(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:".agents/skills/shea-human-review/SKILL.md"})}),(0,n.jsx)(r.td,{children:"Operator-confirmed append-only decision"})]}),(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"template/report/parent-batch-readiness-report.md"})}),(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:".agents/skills/shea-human-review/SKILL.md"})}),(0,n.jsx)(r.td,{children:"Optional read-only advisory report"})]})]})]}),"\n",(0,n.jsxs)(r.p,{children:["The audit deleted orphaned ",(0,n.jsx)(r.code,{children:"template/workpad/rework-run.md"}),"; typed\n",(0,n.jsx)(r.code,{children:"rework-diagnostic"})," is the active trigger record. The pairs above remain\ndistinct where required fields or lifecycle authority differ: Doctor repair is\nnarrower than general tri
1age, blocked Forge Rework must prove no replacement,\nmanual Review records a human actor/claim while automatic Review records a job\nledger, Merge repair precedes routing while Merge run includes the final\nreadback, and adoption versus ensure has different workspace authority."]}),"\n",(0,n.jsx)(r.p,{children:"The six Main receipts remain separate small sources because the section-aware\ncanonical workpad merger updates their stable sections independently. Combining\nthem into one conditional template would obscure accepted lifecycle boundaries."})]})}function h(e={}){const{wrapper:r}={...(0,t.R)(),...e.components};return r?(0,n.jsx)(r,{...e,children:(0,n.jsx)(a,{...e})}):a(e)}},8453:(e,r,d)=>{d.d(r,{R:()=>s,x:()=>i});var n=d(6540);const t={},c=n.createContext(t);function s(e){const r=n.useContext(c);return n.useMemo((function(){return"function"==typeof e?e(r):{...r,...e}}),[r,e])}function i(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:s(e.components),n.createElement(c.Provider,{value:r},e.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.