miadi-orchestration-kit

Proposal visualization

Why this exists

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.

The page’s one job

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.

Parts, in order

Leave out any part the proposal does not need. Keep the order of the ones you use.

  1. Header. A name for the proposal (two to four words), one sentence saying what will exist, a status chip (“Awaiting your go (D4)”), and one short card per package or unit being created or changed. Then a “How to respond” line: “Comment on a card or cite its code. A go on D4 starts the build.”
  2. Who gets what. One card per audience (the people using it, other apps or teams, the platform’s maintainers). Each card ends with a “Today:” line, so the difference is visible without reading further.
  3. Today → after. Two columns of facts. Today is current reality, with paths and numbers. After is written as things that will exist, never as problems removed.
  4. Before / after figure. Two panels drawn on the same grid. Draw the difference: the arrow that appears, the arrow that disappears, the arrow that changes direction. A caption states that change in one sentence. This is the figure the owner approved from. Do not skip it when the proposal changes structure.
  5. Ownership figures. A flow or loop where each step is coloured by who owns it (the new package vs the host app, for example), and a nesting figure when data or types split between layers. Say in the caption what the colours mean.
  6. Mechanism figure, only when a subtle behaviour is the value being preserved, for example a timeline of an iOS selection event and a grace window.
  7. Clickable wireframe. The real screen the change lands on, as it will look after the change, in the product’s own look. It runs the proposed behaviour where that is cheap. When a second host will use the same component, put a second frame beside the first in that host’s colours.
    • Build it from the product’s real content: its real page (the same breadcrumb, title and cards), its colour tokens, and real records from the work, such as the images, names and dates already in the folder. Mark what is example data “example”. Mark a real item placed where it is not yet placed “real, proposed placement”.
    • Why: on 2026-10-07 the owner said of the episode-images wireframe that it showed “the actual result that it would look like on the user interface”. He read the proposal from the screen he already knows, not from a diagram of it.
    • When more than one owner renders the screen, offer a toggle, on by default, that outlines each region and labels who renders or supplies it. It is suggested, not required. The owner called it an interesting experience because it put ownership on the screen itself.
  8. Reference. The public API or config as tabs, one per entry point.
  9. What review changed, when a reviewer or another agent corrected the draft: one coded card per correction with its evidence path.
  10. Build order. Numbered steps (a real sequence), each with the check that closes it, such as a test file, a verify script or a deploy.
  11. Risks, decisions, questions. Coded cards (below).
  12. Footer. Sources, who drafted and who reviewed, and the date the evidence was checked.

Certain and uncertain: score the cards before publishing

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:

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:

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”.

Coded cards

Figures

Contrast is computed, never judged by eye

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

Evidence

Theme and layout

Revisions after comments

When the owner comments:

  1. Read every comment, including the threads your tools cannot reply to. The artifact comments tool returns only the threads the owner sent to Claude, and the owner often sends the last one and leaves the others unsent. Read those from the page in the owner’s browser (Claude in Chrome): open the artifact, enter comment mode, “More comment options”, “Show all comments”, then read each thread in the “All comments” panel. A script result is cut at about 1,000 characters, so read a long comment in slices. Clicking a thread scrolls the page to the card it sits on. Keep the comments word for word in the work’s vessel before acting on them.
  2. Add a “Revision N” band under the header. It lists each comment and what it changed, by code (“D1 approved”, “Q4 answered: …”, “N1 added from your /chronicle comment”).
  3. Mark decided cards as decided and say who decided. Leave only open items in the Decide section.
  4. Republish to the same address, so the comments stay attached.

A visual page on a GitHub issue

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.

  1. Copy the template. 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.
  2. Score it. “Certain and uncertain” explains the bands. Write the person’s words in 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
    
  3. Shoot it, and read the shots once. It starts its own headless browser, so it raises nothing on the screen a person is using:
    python3 scripts/page-shots.py page.html <folder>
    
  4. Send the shots to the miadi-ui-critic agent when the page belongs to the Miadi ecosystem, and fix what it rates breaks.
  5. File the issue with the 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.
  6. Attach the page. A second run updates the same artifact and keeps its version history:
    python3 scripts/issue-artifact.py <owner/repo> <issue number> page.html
    
  7. Publish the same file to claude.ai with the artifact publisher, where a person can comment on a card directly. Add its link to the issue.
  8. Answers come back in two places: 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):

Publishing

Before you publish

🌸: 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.