miadi-orchestration-kit

03 · Specify

Eight sections, by domain (02-intent.md). Each states what will exist, then its behaviour. The grounding for each is named as G-<field> and lives in jgwill/Miadi foundations/agent-harness-and-controlled-language/, whose synthesis.md maps each lane finding (A-F, B-F, C-F) to the section it changes.

Controlled vocabulary

S1 · A file’s kind decides whether the rule applies

The word gate reads what a file is before it reads what it says.

S2 · A word is refused in the sense the list names

Harness guards

S3 · Every guard refuses the same way and records what it did

Applies to every PreToolUse guard the kit ships: the word gate, the chronicle mkdir guard, the session lookup guard, the tmux server guard, the secret print guard, the workspace clone guard, the raw capture guard.

Session capture

S4 · A correction in the capture is a person’s

S5 · A prompt never waits on capture, and a loss is written down

Prompt management

S6 · Agents create, check and inject prompts through one door

@miadi/llmops gains a prompt command family. A prompt made through it is a prompt by declaration, so its kind never depends on a file name.

Self-improvement

S7 · The guard ledger can be read without reading the capture

miadi-hooks-interpret guards [--since <date>] [--guard <name>] answers, per guard: decisions by kind, the sessions, the most matched targets, and for each refusal whether the session’s next write to the same target passed (a rewrite) or never came. The lookup guard names this door.

S8 · A guard’s fit is a proposal a person rules on

The self-improvement cycle (rispecs/self-improvement-cycle/) gains the scorer guard-fit. Per guard, over fourteen days: refusals, rewrites, overrides, advice lines, and refusals whose target falls outside the rule’s scope (a code file, a verbatim file, a heredoc body). Three such refusals start the investigation, as the exit-reasons pass starts at three sessions. The proposal goes to the guard’s owner, and a proposal about the word list goes to the list’s owner. Overrides are listed with their stated sense so the owner can add the sense, refuse it, or ask for a rewrite.

Measures that close this packet

probe today after
P1 CSS in prompt-editor.tsx refused passes (S1 code)
P2 person’s words in input-prompt.md refused passes, advice recorded (S1 verbatim)
P3 question in screenwalk-questions.ts unseen checked by the package test and the door (S6), exit 3 until a sense is named
P4 Bash heredoc into prompts/ unseen unseen by the gate. The door (S6) is the documented way to make a prompt, and S8 counts prompts that appear in prompt folders with no door record
P5 synonym passes passes (outside a surface rule, by design)
P6 forbidden sense in a prompt refused refused with the per-sense message and one ledger line
H1, H2 heredoc read as mkdir refused pass (S3 parse fixtures)
H4 prompt hooks at load 48 cancelled at 30 s, loss unrecorded under budget, or a capture_incomplete line
guard text in corrections 58 of 1196 records 0 new, 58 reclassified (S4)