On 2026-09-24 the owner approved the packaging of Miadi’s tide reply annotator
from one page, and said of its before/after figure: “it really enabled me to
approve this phase very rapidly”. The owner asked that the pattern be kept for every
agent that shows its work visually, not only Claude Code. This skill is that
pattern. The page it came from is reference/annotate-core-and-ui.html.
Read it before building a new one.
Tracked in jgwill/miadi-orchestration-kit#53.
A reader who has not followed the work sees what exists now, what will exist after, what they are being asked to decide, and can answer each decision by commenting on it. Everything on the page serves one of those four things.
Leave out any part the proposal does not need. Keep the order of the ones you use.
On 2026-10-10 the owner asked that a proposal say which of its cards the agent would
execute without him and which need him, and that the split come from the decision engine,
not from the agent’s own sense of it (session miadi-episodic-memory-schema-and-mw-261010).
The Jev review the practice stands on is miadi-review://b02ec47d-cd92-4829-84ed-238aafd1d9d6,
and the study that revised it is jev-study-261026.md in Episode 564
(miadi-chronicle://564). His rule of 2026-10-09: act when his word and the engine agree at
0.8 or above; otherwise come back.
The run is scoring/score-proposal.mjs. It reads every coded card on the page (A, E, D, Q
by default) and sends each one to Jev with three things: the card, the owner’s request in his
words (--request), and a facts file written for the page (--facts). It asks
questions.json:
obvious_now: do now, do after his go, needs a decision, or other when none of those fits.The Decision Gate’s D1 rule is written into obvious_now’s instructions, never sent as state.
Jev reads the state as data: in Episode 549 a rule sent as state turned 6 “author” answers
into 22. policy.json holds the thresholds and says who set them. Bands, in this order:
owner_at (0.5), whatever obvious_now
says. That is the D1 rule.obvious_now is needs_decision or other.obvious_now is do_now at a confidence of act_at or above.A choice’s confidence is (p_max - 1/n) / (1 - 1/n): how far the top option sits above an even
split over its n options. So 0.8 on obvious_now’s four options means a top probability of
0.85. Each record keeps both numbers.
Write the facts file before scoring. It names the paths, numbers and versions each card
rests on. The page’s “Today” list is page-level and a card rarely restates its path, so
evidence_sufficient averaged 0.24 on it. Without --facts the script falls back to that
list and says so.
cd skills/proposal-visualization/scoring
node score-proposal.mjs page.html --request request.md --facts facts.md --dry # the requests, nothing sent
node score-proposal.mjs page.html --request request.md --facts facts.md --out scores.json
The dry run prints the estimated tokens and the paid tokens to expect, at the ratio
Episode 562 measured over 2,001 calls (paid = 1.61 × the estimate). The model is pinned in
questions.json (jev-1.14.0 for version 0.3.0; 0.2.0 was jev-1.13.0). Never pass an
alias: jev-latest is 1.13.0 on jev-ai.pro and 1.14.0 on TypeSafe, and the script refuses it. obvious_now’s
options are rotated card by card, because Jev leans toward the option that comes first.
Then on the page: a chip on every scored card (Jev · do_now 0.70 · after your go), one
section with the three lists, and a “Revision N” band saying the run happened.
The ledger is ~/.miadi/decisions/proposal-score.jsonl, outside every repository. Per card
it keeps one call record: requested and resolved model, billing headers, tokens estimated
beside tokens paid, the option order sent and the facts file’s hash. Per question it keeps
one decision record. Nothing is calibrated yet: 113 cards were scored by 2026-10-26 and
none of the owner’s answers was written down. His one-word answer on each “needs you” card is
a ruling on that card’s obvious_now decision. The script prints the command for each one,
and policy.json holds it under calibration. After twenty rulings in a class,
lane-check.mjs calibrate reports the cut that agreed with him, and a person sets the
threshold from it.
What leaves the host, per card: the card’s text, the request file, the facts file and the
questions. Never the page’s other sections, never a key. The decider and the gate are
lane-check’s (jgwill/smcraft examples/decision-gate/lane-check), imported by path until
they move into this kit; LANE_CHECK_DIR points at another checkout.
An empty “would do now” is a result, not a failure. Over the first 113 cards, 7 were “would do now”, 61 “after your go” and 45 “needs you”.
D decisions, Q questions, R risks, A actions/steps,
C corrections, N later-phase outcomes. Invent a new prefix when needed
and say what it stands for the first time it appears.id="<code>", so a comment tool or an
annotation tool anchors to exactly one item and a link can jump to it.<h3><span class="code">D1</span>The
question</h3>. The artifact viewer labels a comment with the nearest heading
before the place it sits. With the code before the heading, a comment placed
on D5 was shown under D4’s title (2026-11-14, on the owner’s phone).imports types, mounts ./dom).
An unlabeled arrow only says “related somehow”.<figcaption> and in the SVG’s
aria-label.overflow-x: auto container with a min-width,
so the page body never scrolls sideways on a phone.<marker> ids must be unique across the whole page (a1, a2, …),
because several inline SVGs share one document.Before publishing, compute every text colour against every surface it sits on,
in both themes. Body text needs 4.5:1. Never dim text with opacity: it blends
toward the background and can halve the ratio. Use a muted colour token instead.
const L = h => { const c = [0, 2, 4].map(i => parseInt(h.slice(i + 1, i + 3), 16) / 255)
.map(v => v <= 0.03928 ? v / 12.92 : ((v + 0.055) / 1.055) ** 2.4);
return 0.2126 * c[0] + 0.7152 * c[1] + 0.0722 * c[2] }
const ratio = (a, b) => { const x = L(a), y = L(b); return (Math.max(x, y) + 0.05) / (Math.min(x, y) + 0.05) }
// run ratio(text, surface) for every pair; anything under 4.5 changes before publishing
file:line, commit, version and count on the page is read from the
source in the same session the page is written. Label anything you could not
check as unverified, or leave it out.:root. Redefine the tokens for
dark under @media (prefers-color-scheme: dark) guarded by
:root:not([data-theme="light"]), and again under :root[data-theme="dark"].
Give body an explicit background.app/globals.css plus the medicine-wheel gold #ffd700 as the structural
accent), use them.When the owner comments:
Asked for “a visual artefact on the issue”, or for questions a person can look at and comment on? This section is enough: do not read GitHub’s documentation again. Earned 2026-11-05 on jgwill/miadi-orchestration-kit#133, when a session spent its budget finding all of this out.
reference/card-page-template.html holds the tokens, the icons, a card of each kind and a figure. Keep only the parts your page needs, and put real content in. Write it in the work’s vessel.request.md and the paths and numbers the cards rest on in facts.md. It costs about 2,200 paid Jev tokens per card, and each card’s text goes to Jev:
node scoring/score-proposal.mjs page.src.html --request request.md --facts facts.md --only A,D,Q --out scores.json
python3 scripts/inject-scores.py page.src.html scores.json page.html
python3 scripts/page-shots.py page.html <folder>
miadi-ui-critic agent when the page belongs to the Miadi ecosystem, and fix what it rates breaks.structural-issue-authoring skill, and put every question in its body too, since a person may read only the issue. Filing it needs the person’s word, and asking for it counts. Link the page to the issue.python3 scripts/issue-artifact.py <owner/repo> <issue number> page.html
gh issue view <n> -R <owner/repo> --comments, and the artifact tools’ read_comments. Then follow “Revisions after comments”, and run step 6 again.What GitHub’s issue artifacts do, as of 2026-11-05 (public preview, so check when something fails):
embedded_html. REST: POST /repos/{owner}/{repo}/issues/{n}/artifacts with {type, name, body}, PATCH .../artifacts/{number}, API version 2026-03-10. A personal token works, and a GitHub App token was reported to get 404. gh issue artifact create <n> page.html needs gh 2.103, and gaia has 2.83.overflow-x: auto..html file into the work’s
vessel (the episode folder, the PDE folder or the repo’s working notes, never
/tmp). The only external request allowed is fonts, with a system fallback
stack. Give the reader the path.id, and no code was reused🌸: A reader who sees exactly what changes can decide in minutes, and one who has to piece it together from prose often cannot decide at all.