The plan gate
Before a write, each planned ticket's bundle is built on a scratch store copy at the workspace budget, hints at base severity.
Failures: block:<HINT> (not UNRESOLVED_BLOCKER, TICKET_DEFERRED), unscoped, oversized, notFullyDelivered, each with a fix. Default: report (write, exit 0); --strict refuses (ERR_PLAN_GATE_FAILED, nothing written); --strict --force writes.
Details5 items
-
oversized: a cut of the ticket's own content, by the rule of the context guard on writes: a budget cut, or a per-ref cap cut of an anchored section. A cut of the epic part, a changer, an inherited ref or a group section never fails; on the same new ticket the plan gate and the context guard agree. -
notFullyDelivered: a needed ref (own anchored provenance,note: method) hasfullyDelivered: false; the epic's doc ref,suggested:and inherited refs never count.group(once, first): no repo anchor (tkt group edit G --repo <url>);--strictstops before planning. -
Failure
{key, rule, ref?, anchor?, fix?};fix:narrowAnchor(subsections:--level h3or anchors),docGap(add H3s),raiseBudget(lower bound forbundleTokenBudget). -
--forcealone does nothing.--outgets# gate (…)YAML comments (still importable). Preview✓ key doc://d › ## X · 2 refs · 812/3000 tok, thenGate (report): 3 of 7 fail. -
tkt plan from-docs --jsonaddsgate: {mode, passed, failing, failures, tickets, unchanged}.