Agent Task Triage Policy
This document is the single, tool-neutral canon for how any agent working in this repository - Claude Code, Codex, or anything else named in docs/governance/AI_AGENT_WORKFLOW.md - decides how much model, reasoning effort, delegation, and token budget a task deserves before starting it. The rubric, thresholds, and gate commands below have exactly one home: here. Each tool carries only a short pointer to this file in its own instruction surface (see "Carriers, per tool"), never a copy of the table - copies drift, and the drift is invisible until two agents disagree about the same task.
Scope note. This is dev-tooling for agents working on Intentloom's own codebase - which coding-agent model and effort to spend on a given task. It is unrelated to docs/governance/PROJECT_INCEPTION_MODEL_AND_NX_PRINCIPLES.md §10-13, which defines "model / reasoning effort / provider" as product-facing concepts Intentloom (via Neutron) exposes to its own end users. Do not conflate the two when reading either document.
Relationship to aif-task-router. catalog/skills/aif-task-router answers "which Intentloom skill/workflow route does this request need" (direct/clarify/discover/plan/implement/review/adopt). This document answers a different question - "which model, effort, subagent plan, and budget does the chosen work deserve." The two run side by side; neither replaces the other.
Rubric (Intentloom-specific axis wording)
| Axis | 0 | 1 | 2 |
|---|---|---|---|
| Blast radius | one file, or text only | 2-5 files | 6+ files, or a change to catalog/ (canonical spec, ADR-0001), a package's public barrel (packages/*/src/index.ts and equivalent entry points), the local daemon protocol (ADR-0008), the MCP stdio boundary (ADR-0017), or apps/desktop/src-tauri capability/IPC surface |
| Ambiguity | one honest reading | small gaps, safe defaults exist | two readings that lead to materially different work |
| Risk | none | user-visible behaviour | privacy, security, a migration, money, irreversible, or outward-facing (release, publish, adapter export) |
| Verification | nothing to run | pnpm typecheck, pnpm lint (oxlint), or a scoped pnpm test | the full pnpm verify gate (typecheck && lint && format:check && test && build && git diff --check), Rust checks (cargo fmt/cargo test/Clippy) for apps/desktop/src-tauri, or a manual walkthrough |
| Unknowns | area known, paths given | a few targeted reads | needs discovery or a map before planning (matches aif-task-router's discover route) |
Routing table (portable, by role)
| Score | Model tier | Effort | Delegation | Budget |
|---|---|---|---|---|
| 0-2 | cheapest | lowest | none | small |
| 3-4 | mid | medium | none | moderate |
| 5-6 | mid | high | at most one read-only scout, if the tool has delegation | larger |
| 7-8 | frontier | high | scout + reviewer, read-only, if the tool has delegation | large |
| 9-10 | frontier | highest | decision gate first, then scout and reviewer, if available | announce it up front |
Role names, not vendor model names. This table stays true across tools. The canonical role identifiers are cheapest, mid, and frontier. Owner-facing names for the same roles are Economy / cheapest, Mid-tier, and Frontier. Do not invent a fourth role. Each carrier below maps a role to model identifiers that the environment actually exposes.
Carriers, per tool
Claude Code (verified from this session's own Agent tool schema, not memory): carrier is ~/.claude/skills/task-triage/SKILL.md, a global skill (applies to every project on this machine, not versioned in this repository). Model tiers: haiku = cheapest, sonnet = mid, opus = frontier, fable = cheapest-low-latency alternate. Agent's model param sets a subagent's model per call; there is no effort param on Agent - effort is fixed per subagent-type definition or set via Workflow's agent(prompt, {effort}). The main session's own model and effort are the user's to change, not the agent's. Enforcement mechanism: see "Enforcement" below.
Codex (per Codex's documented AGENTS.md convention - unverified in this session, since this session runs as Claude Code, not Codex; confirm against Codex's own docs before relying on it): carrier is this repository's AGENTS.md itself, read automatically at session start. Placement matters more than wording - state the triage step near the top of AGENTS.md, since Codex has no per-prompt injection point to fall back on if attention drifts over a long session. Codex chooses its model and effort at launch, not at runtime, so its output here is a recommendation the human acts on, not a setting the agent applies to itself.
Google Antigravity (AGY) (verified from this session running as Antigravity): carrier is this repository's AGENTS.md and default system instructions loaded at session start. Model tiers map to available LLM offerings (e.g. Gemini Flash/Flash-Lite = cheapest/mid, Gemini Pro = frontier). invoke_subagent handles delegation. The triage rubric and routing table serve as the authoritative standard for model tier selection, subagent orchestration, and verification gate execution before committing.
Cursor (verified from this repository's .cursor/rules/*.mdc): always-apply carriers are .cursor/rules/session-start.mdc, .cursor/rules/task-triage.mdc, and .cursor/rules/grilling.mdc. The first two point at this file and at AGENT_START_HERE.md; they must not copy the rubric or routing table. grilling.mdc points at .agents/skills/grilling/SKILL.md and must not copy that interview. Model and effort are the user's picker. The agent prints the required verdict above, including the role (cheapest, mid, or frontier), and continues. Cite a concrete model identifier only when this session's tool schema lists it. Do not assume a context-window size. Do not spawn subagents unless the user asked. Do not switch the session model.
Copilot / anything else: no .github/copilot-instructions.md exists at the time of this carrier update. If one is added, give it a short pointer to this same canon rather than duplicating the table.
Required verdict
Print this block before planning or editing, and again after a material scope change. Carriers point here. They do not keep a second copy of the rubric or the routing table.
Task:
Environment:
Score: X/10
Blast Radius:
Ambiguity:
Risk:
Verification:
Unknowns:
Recommended Model:
Reasoning Effort:
Context Budget:
Delegation:
Approval Required:
Stop Condition:Recommended Model is the role (cheapest, mid, or frontier), plus a concrete model identifier only when the current environment lists that identifier. Reasoning Effort is lowest, medium, high, or highest, matching the routing table. Context Budget uses the table’s budget column. Do not invent a context-window size, a reasoning setting, or a model id.
Identify the environment from the session (Cursor, Claude Code, Codex, Copilot, Antigravity, or another named agent). If the session does not show which environment it is, ask the owner before naming a model that belongs to one environment. Do not ask again once the environment is known. If the known environment does not expose its model list, say so and leave the recommendation at the role so the owner can select a model. The owner’s selection is separate from executing the task. Do not silently switch models.
The routing table states the largest delegation a score allows. It does not authorize launching an agent. An additional agent, including a read-only scout, starts only after the owner explicitly authorizes it. If delegation is unavailable or not authorized, investigate inside the current session, keep that reading bounded, and record what was not covered.
Model availability
Verify identifiers against the current tool schema or the vendor’s documentation in that session. A list recorded in a past Duty Watch entry is evidence for that session, not a catalog for the next one. This policy intentionally does not freeze model names or context limits.
Adjustments specific to this repository
- Ambiguity = 2 -> decision gate = project
grilling(.agents/skills/grilling/SKILL.md) for work on this repository. Useaif-feature-discoverywhen the needed output is an Intentloom product feature brief for catalog/harness flows. Do not run both interviews in one session. Bounded one-reading work still skips the gate. - Risk = 2 -> name the specialist review:
aif-security-reviewfor security/auth-boundary changes,aif-privacy-reviewfor data-handling changes,aif-extension-reviewbefore adopting any external skill or plugin. All three are required byAGENTS.mdregardless of triage score. - Verification axis 2 -> run
pnpm verifylocally..githooks/pre-pushruns that command:typecheck,lint,format:check,test,build, andgit diff --check, as defined inpackage.json. The Governance workflow does not run it. Governance validates the commit range and the diff (whitespace and production-file budgets) throughscripts/validate-commit-range.mjsandscripts/validate-diff.mjs. Compatibility CI runs typecheck, lint, format check, build, and test on its matrix. It does not rungit diff --check. Manual quality checks, including accessibility, and the release checks indocs/releases/are separate again. Triage does not invent a gate and does not collapse these into one workflow. - Unknowns = 2 -> investigate before planning, and do not read
packages/application/src/index.ts(a known oversized file) end to end. The routing table may name one read-only scout as the maximum. That name is not permission to launch one. Without explicit owner authorization, do the bounded reading in the current session and record the limit.
Enforcement
Deterministic for one person, advisory for the repository. In Claude Code, a UserPromptSubmit hook already fires on every prompt and injects a short reminder to run this triage - confirmed live in this session. That hook lives in the user's own ~/.claude/settings.json (global, personal), not in this repository, so it is real and deterministic for that one person on that one machine, and invisible to any other contributor or a fresh checkout. Absent that personal hook, enforcement falls back to the skill's own trigger description (description: frontmatter in ~/.claude/skills/task-triage/SKILL.md) - a well-attended prompt, not a guarantee.
No repository-versioned hook exists. AGENTS.md forbids introducing "automatic hooks... without explicit authorization," and a project-level UserPromptSubmit hook is exactly that kind of mechanism. When authorized, it would live in a versioned .claude/settings.json at the repo root (none exists today - only a personal, non-authoritative .claude/settings.local.json) and would make triage deterministic for every contributor, not just whoever already has a personal hook. Until that authorization is given, treat repository-wide enforcement as advisory.
Codex has no per-prompt injection point at all (per Codex's own convention - unverified in this session). Its only lever is placement: state the triage step as one of the first things AGENTS.md says, since there is nothing to re-inject it mid-session if attention drifts.
Worked example
Triage 4/10 (radius 1 · ambiguity 0 · risk 1 · verify 2 · unknowns 0)
Harness: Claude Code · Model: sonnet · Effort: medium
Subagents: none · Gate: none · Context: this file + the two files it edits
Budget: ~60k output · Stop when: docs written, cross-link added, live triage pastedCheapest thing that would lower this further: nothing - ambiguity and unknowns are already at floor.