/predicate:boundaryfrom predicate
Defines sufficiency conditions for Initial Boundary Conditions (IBCs) and provides a cheap-tier refinement loop to ensure prompts for expensive AI agents are well-bounded before execution.
Ships in predicate. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This skill defines what every Initial Boundary Condition (IBC) MUST possess before an expensive walk is launched from it, and the cheap-tier refinement loop that manufactures such boundaries.
The key words "MUST", "MUST NOT", "SHOULD", and "MAY" are to be interpreted as described in BCP 14 (RFC 2119, RFC 8174).
A good IBC is not one that maximizes the probability the walk succeeds. It is one that makes the failure modes cheap and early. A wrong frame can never be fully prevented at authoring time; what can be guaranteed is that the walk detects and rejects it in its first few hundred tokens instead of its last fifty thousand.
This follows from the cost asymmetry of cascade control: iterating in boundary-space (cheap models + human revising a prompt document) costs orders of magnitude less than iterating in trajectory-space (re-running an architect-class walk). Error-correction iterations therefore belong in the cheap outer loop. The expensive walk should launch from a fixed point $\text{IBC}^*$ of the cheap refinement mapping and run as close to one-shot as the task allows.
The most expensive failure mode of a high-capability walker is a confidently-wrong frame: long-horizon coherence builds a large, internally consistent structure on a false premise without the local error signals that would trip a weaker model into visible incoherence. Premise verification before the expensive call has the highest leverage-per-token of any activity in the system.
A micro-specified boundary induces a compliance posture: the walk optimizes for letter-satisfaction of the rubric and produces rubric-satisfying, goal-missing output. A boundary that grants explicit discretion over its delegated questions ("these calls are yours; log your reasoning") shifts the optimization target from satisfy the spec to achieve the goal under constraints. The partnership dyad is structural, not sentimental:
An IBC whose delegated set is empty wastes an architect on typist work. An IBC whose delegated set is unbounded is a gamble, not a delegation.
An IBC is sufficient when it satisfies all seven conditions below. Each condition is independently checkable; adversarial reviewers in the refinement loop MUST cite the violated condition by ID when raising an objection.
Every premise the IBC asserts about the world MUST be stated so that the receiving walker can verify or refute it against primary sources at low token cost, and SHOULD name the exact check (command, file:line, document section).
❌ "The auth module is well-tested." ✅ "
auth/session_test.gocovers token expiry; verify withgo test ./auth/ -run TestExpiry."
Rationale: what reliably triggers early fallback in a capable walker is a verifiable contradiction between frame and world — vague unease does not. A falsifiable premise is a manufactured tripwire.
The floor renders a premise as a CLOSED claim entry
(ledger/contracts/entry.ncl's Entry, narrowed by worker_ibc.ncl's
PremiseChecked): its backing names the evidence species (corroborated |
vouched | unclosed | residual), its signer designates who is asserting it,
and its axes records the author's own assessment of the claim's
coordinates (determined, certifiable, monotone) — required on every
premise, since an IBC author is obligated to assess the ground the dispatch
will stand on.
The IBC MUST state that rejecting the frame is a success condition, and MUST define the rejection report format: which premise failed, the refuting evidence, and what the boundary loop should reconsider. The receiving walker's first obligation is a premise audit against S1's tripwires; on failure it MUST emit the rejection report and freeze rather than proceed.
Rationale: if halting has no genre, the walk invents continuation. An explicit low-energy path to "no" is what makes early fallback reachable.
Every question in scope MUST belong to exactly one of three sets:
| Set | Meaning | Obligation |
|---|---|---|
| RESOLVED | Answered during boundary refinement | Evidence attached (S1-grade) |
| DELEGATED | The walker's to answer — where the expensive tokens go | Discretion granted; reasoning logged |
| RESERVED | The human's to decide | Encountering one is a halt predicate, stated as a predicate |
A question that fits none of the sets is an unresolved unknown: the IBC is not sufficient and MUST NOT be dispatched. Genuinely architectural questions MUST NOT be fake-resolved at the cheap tier; ambiguities MUST NOT be left for the expensive tier.
A question the refinement loop cannot yet resolve is carried forward in the
floor as an unknowns entry (worker_ibc.ncl's UnknownChecked): a
question entry that MUST carry both a discharge condition (what would
close it) and a closer (who can) — a question missing either is not
routable, which is the same insufficiency this table already names.
Every constraint and every acceptance criterion MUST name the strongest affordable deterministic evaluator that checks it, selected from the evaluator hierarchy:
machine-checked proof > type system > property test > example test > linter > decorrelated adversarial review > [human: escalation only]
In domains with formal models, a theorem statement is the perfectly saturated acceptance criterion — the boundary contains its own evaluator (see formal-foundations). A constraint with no evaluator attached is an exhortation, not a constraint, and MUST be either grounded or moved to the rubric as a qualitative goal.
Context MUST be supplied as pointers and verbatim excerpts — file paths, line ranges, exact commands, quoted spec clauses — never as paraphrase. The boundary author's job is selection; the walker reads primary sources directly. A summary written by a cheaper model injects its misreadings as ground truth, moving the hallucination upstream where the walker cannot detect it.
Every context pointer declares its edit status. A context_map entry
naming a file the walker may plausibly need to EDIT must be covered by the
node's declared file_surface; an entry that is context only carries an
explicit (read-only) marker. The mismatch — a file granted to the
walker's eyes but not its hands — is the most frequent IBC-authoring
defect observed in the field, and it fails at the worst point: the
walker's own commit gate, after the work is done. It is mechanically
checkable at authoring time (authorized.py --ibc-surface-check), and the
dispatching loop MUST run that lint before any dispatch
(orchestration §JIT authoring).
The IBC MUST partition its clauses into:
A boundary with no plastic region cannot survive contact with reality; a boundary with no load-bearing region is not a boundary. Amendments to plastic clauses MUST be logged where the dispatching loop can read them (see campaign RECONCILE).
Boundary mass MUST scale inversely with walker capability. Weaker walkers do not need fewer constraints — they need a smaller, prioritized boundary: rule overload causes silent prioritization failure (the walker drops invariants it cannot rank).
Prime Invariant 6 requires a sufficient, human-approved boundary before an expensive or autonomous walk. It does not say at what granularity that approval attaches, and this skill and orchestration had drifted apart in the gap — this document gating every IBC while the machinery that actually dispatches approves layer-0 in batch, authors later-layer IBCs just-in-time, and names pausing between layers approval theatre.
The head ruled the granularity (.ledger/state/decisions-dispatch-granularity.yaml,
DG1): approval attaches to the frame that was discussed and agreed,
never to each IBC. Inside an agreed frame, purely mechanical execution
proceeds autonomously and needs no further gate.
What escalates is divergence, not cost. "Expensive or autonomous" fires on every dispatch and therefore discriminates nothing. A seam is genuine when the work carries outstanding nuance, or when the path could depart from what was agreed — S3's RESERVED set is this same predicate stated per question. Encountering one is a halt, exactly as S3 says.
So the loop below runs where the frame itself is in question: the goal is open, the premises are unverified, or the walk could reasonably diverge from what was agreed. It does not run over a mechanical step inside a frame the human already approved — there the IBC is checked against the sufficiency conditions and dispatched.
/boundary manufactures $\text{IBC}^*$ as the fixed point of a cheap
contraction mapping. It is a meta-application of the
refine loop where CTX.TARGET_ARTIFACTS is the IBC
document itself; the machinery (ledger discipline, adversarial sweeps,
grounded critique, convergence bounds) is inherited rather than restated.
DRAFT ──→ ATTACK (adversarial sweep against S1–S7)
ATTACK ─→ REVISE (grounded objections found)
└─→ APPROVE (zero grounded objections; human gate)
REVISE ─→ ATTACK (loop)
APPROVE ─→ DISPATCH (human approves IBC*; expensive walk launches)
└─→ DRAFT (human rejects; reframe)
The ATTACK sweep argues about an IBC; the probe simulates its consumer. Before an IBC dispatches an autonomous worker (campaign worker IBCs especially — campaign §ORCHESTRATE, orchestration §JIT authoring), run a zero-context dry run:
Probe cost is a cheap-tier read; skipping it trades pennies now for a frozen worker later. For JIT-authored later-layer IBCs the probe runs at authoring time, against the tip the worker will actually see.
DG1 that
approval attaches to the agreed frame, not to each IBC: a walk executing
mechanically inside a frame the human approved carries it already, and a
walk that could diverge from that frame does not — the latter is the
seam, and dispatching it unapproved is the violation this directive
names.AGENTS.md is the persistent project-scope boundary: the durable anchor a zero-context agent orients from before any walk begins. It is the slow-changing record of goal, requirements, constraints, and known-unknowns that the per- dispatch IBC (S1–S7 above) is projected from.
.scratch and is promoted deliberately at reconcile boundaries.Unknowns and requirements both move forward via the same carrier stack:
| Carrier | Role | Cadence |
|---|---|---|
| AGENTS.md | Persistent anchor — goal, R/I/C, unknowns | Slow-changing; synced at reconcile |
| Nickel context-map | Live carrier — active requirements + unknowns with grounding, last_validated, signpost markers; fail-loud on omission (last_validated staleness is enforced against the HEAD commit date by tracker_fresh.sh) | Per-walk |
Flight log (.ledger/log/) | Narrative/history — decisions, findings, pivots and their why | Append-only |
.scratch + sync | Volatile draft; promotes validated changes → AGENTS.md | Ephemeral |
Boundary-setting is the recurring self-conditioning operation, not a pre-flight checklist run once per campaign. It operates at three cadences:
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub nrdxp/predicate --plugin predicate35 skills in this plugin
/ai-auditSOP for auditing AI-generated code.
Trigger when:
- Reviewing, refactoring, or cleaning up AI-generated code to prevent regressions or hallucinated APIs.
- Prompt contains: /ai-audit, code audit, AI cleanup, common flaws.
/api-auditProtocol for auditing API surface coherence and type safety.
Trigger when:
- Evaluating API designs, interface type safety, or design elegance.
- Prompt contains: /api-audit, API surface, API coherence, type safety.
/campaignSOP for the architect-tier campaign workflow (/campaign): exhaustive
survey, mitigation planning, tiered orchestration, and reconciliation.
Trigger when:
- Running a multi-workstream initiative where an expensive architect-tier
council surveys, plans, emits worker prompts, and judges landed work.
- Conducting production-readiness assessments that fan out into
autonomous mitigation dispatches across model tiers.
- Prompt contains: /campaign, campaign workflow, survey, orchestrate,
reconcile, premise freshness, tier routing, worker IBC, scratch.
Other plugins' skills for the same job