hunt Claude Sonnet 5 commited on
Commit
7a90831
·
1 Parent(s): 90b2297

CAT-5 protocol: swap GLM-5→Nova Lite, DeepSeek 3.2→Nova Pro (Kiro tool-call fix)

Browse files

GLM-5 and DeepSeek 3.2 are blocked in Kiro's agentic mode because Kiro gates
tool-calling and image support together and those models don't pass the check.
Amazon Nova Lite (CAT 2) and Amazon Nova Pro (CAT 3) are Bedrock-native, support
full tool-calling in Kiro's agent flow, and maintain the same cost-control intent.

Updated: model-routing-protocol.md, cat-router-check.mjs, PROJECT_OVERVIEW.md,
MASTER_PROMPT.md, wo1 tasks.md (completed tasks, for accuracy).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

.kiro/specs/wo1-workspace-ipc-backbone/tasks.md CHANGED
@@ -56,10 +56,10 @@ Use **multi-session with explicit handoff blocks at each CAT transition**, not a
56
  **How the session boundaries work in Kiro:**
57
 
58
  1. **Qwen3 Coder Next** — paste MASTER_PROMPT.md, execute T1 and T2
59
- 2. **DeepSeek 3.2** — execute T3 (struct definitions)
60
  3. **Claude Opus 5** — paste the T4 handoff block below, execute T4 only
61
  4. **Claude Sonnet 5** (or stay on Opus 5 — acceptable superset) — execute T5
62
- 5. **GLM-5** — execute T6 (SAFETY comments)
63
  6. **Qwen3 Coder Next** — execute T7 (final verification + commit)
64
 
65
  Each switch is a 10-second dropdown change in Kiro. The handoff block in T4 is the paste that brings the new model up to speed.
@@ -87,8 +87,8 @@ Each switch is a 10-second dropdown change in Kiro. The handoff block in T4 is t
87
  | Task | CAT tier | Model |
88
  |---|---|---|
89
  | T1, T2, T7 | CAT 1 | Qwen3 Coder Next |
90
- | T6 | CAT 2 | GLM-5 |
91
- | T3 | CAT 3 | DeepSeek 3.2 |
92
  | T5 | CAT 4 | Claude Sonnet 5 (escalate to Opus 5 after 2 real failed verifications) |
93
  | T4 | **CAT 5** | **Claude Opus 5 — mandatory, no exceptions** |
94
 
@@ -298,9 +298,9 @@ Each switch is a 10-second dropdown change in Kiro. The handoff block in T4 is t
298
 
299
  ---
300
 
301
- - [x] [CAT 2] **T6 — Document every `unsafe` block — GLM-5**
302
 
303
- ⚠️ **Model check:** Switch to GLM-5.
304
 
305
  Scan `miranda-ipc/src/lib.rs` for every `unsafe` block or `unsafe` expression. For each one, add or verify a `// SAFETY:` comment explaining:
306
  - What the unsafe operation is
 
56
  **How the session boundaries work in Kiro:**
57
 
58
  1. **Qwen3 Coder Next** — paste MASTER_PROMPT.md, execute T1 and T2
59
+ 2. **Amazon Nova Pro** — execute T3 (struct definitions)
60
  3. **Claude Opus 5** — paste the T4 handoff block below, execute T4 only
61
  4. **Claude Sonnet 5** (or stay on Opus 5 — acceptable superset) — execute T5
62
+ 5. **Amazon Nova Lite** — execute T6 (SAFETY comments)
63
  6. **Qwen3 Coder Next** — execute T7 (final verification + commit)
64
 
65
  Each switch is a 10-second dropdown change in Kiro. The handoff block in T4 is the paste that brings the new model up to speed.
 
87
  | Task | CAT tier | Model |
88
  |---|---|---|
89
  | T1, T2, T7 | CAT 1 | Qwen3 Coder Next |
90
+ | T6 | CAT 2 | Amazon Nova Lite |
91
+ | T3 | CAT 3 | Amazon Nova Pro |
92
  | T5 | CAT 4 | Claude Sonnet 5 (escalate to Opus 5 after 2 real failed verifications) |
93
  | T4 | **CAT 5** | **Claude Opus 5 — mandatory, no exceptions** |
94
 
 
298
 
299
  ---
300
 
301
+ - [x] [CAT 2] **T6 — Document every `unsafe` block — Amazon Nova Lite**
302
 
303
+ ⚠️ **Model check:** Switch to Amazon Nova Lite.
304
 
305
  Scan `miranda-ipc/src/lib.rs` for every `unsafe` block or `unsafe` expression. For each one, add or verify a `// SAFETY:` comment explaining:
306
  - What the unsafe operation is
.kiro/steering/model-routing-protocol.md CHANGED
@@ -13,8 +13,8 @@ Claude is reserved for CAT 4-5 only. CAT 1-3 run on cheaper, non-Claude models
13
  | CAT | Meaning | Model | Criteria |
14
  |---|---|---|---|
15
  | **1** | Easy button. Zero reasoning required. | **Qwen3 Coder Next** | Coding-specialized, cheapest tier. Mechanical: dependency additions, config, boilerplate, running a command and reporting output. |
16
- | **2** | Light reasoning, well-known patterns. | **GLM-5** | Wiring a documented library API, straightforward struct/state definitions, low risk of subtle bugs. |
17
- | **3** | Moderate engineering. Real decisions, established patterns. | **DeepSeek 3.2** | The workhorse tier — most tasks in this project land here. Strong reasoning-per-dollar. |
18
  | **4** | Hard. Real correctness risk, non-trivial reasoning, but bounded scope. | **Claude Sonnet 5 primary → escalate to Claude Opus 5 after 2 failed verification attempts** | FFI boundaries, real-time networking correctness, timing-sensitive sync. First tier where Claude is required. Escalation is evidence-triggered, not assumed up front. |
19
  | **5** | Cat-5-hurricane difficulty. Silent-failure risk. Top-tier reasoning mandatory. | **Claude Opus 5 only. No exceptions.** | Lock-free concurrency, unsafe memory/ABI correctness, real-time SIMD/DSP math, novel shader/graphics algorithms — domains where a wrong answer compiles clean, passes a shallow test, and corrupts data or renders garbage in production. |
20
 
@@ -32,7 +32,7 @@ Because every tier now names a specific model, moving between tasks of different
32
  5. **For CAT 4-5 specifically, the recruited Claude model is explicitly granted the turns/time it needs to run its own real verification** (tests, benchmarks, a reproducible failure case fixed and re-tested) before declaring the task done. Cost discipline governs *which* tasks reach Claude, never *how thoroughly* it verifies one it's actually working — cutting verification short to save credits is the single most expensive false economy available here.
33
  6. Once real, shown verification output confirms the task is done, the human switches the dropdown to whatever the next task's tier requires before continuing.
34
 
35
- **Practical note**: a Work Order's task list can span all five tiers in sequence (e.g. WO-1 is CAT 1,1,3,5,4,2,1 — Qwen→Qwen→DeepSeek→Opus→Sonnet→GLM→Qwen). That's real switching overhead. Where task order is flexible, batching same-tier tasks together within one sitting reduces dropdown switches without violating the protocol — the tier assignment is what's mandatory, not the original task ordering.
36
 
37
  ## CAT 4 escalation trigger (not automatic — evidence-based)
38
 
@@ -48,7 +48,7 @@ Full detail lives inline in each Work Order's `tasks.md` (every checkbox is tagg
48
  - **Work Order 4** (WebRTC transport/telemetry), 7 tasks: CAT 1, 1, 1, 1, 2, 4, 4 — no CAT 5; the DataChannel broadcast and audio-track sync are the two CAT 4s (real-time networking correctness).
49
  - **Work Order 5** (canvas UI/WebGPU renderer), 7 tasks: CAT 1, 1, 2, 3, 3, 3, 5 — the WebGPU/WGSL Gaussian-splat viewport is CAT 5, arguably the hardest single task across all five Work Orders: genuinely novel graphics-shader engineering with the least precedent to lean on.
50
 
51
- **Total CAT 5 tasks across the whole project: 3** — WO-1's ring buffer, WO-3's SIMD blendshape regression, WO-5's WebGPU viewport. **28 of the 36 total tasks are CAT 1-3 and never touch Claude at all** — Qwen3 Coder Next, GLM-5, and DeepSeek 3.2 carry the bulk of the build. Claude (Sonnet 5 then Opus 5) is confined to the 5 CAT 4 tasks plus the 3 CAT 5 tasks — 8 of 36, roughly 22% of the total task count, and typically the highest-value 22% to spend real reasoning on.
52
 
53
  ## The quad-test cost multiplier
54
 
 
13
  | CAT | Meaning | Model | Criteria |
14
  |---|---|---|---|
15
  | **1** | Easy button. Zero reasoning required. | **Qwen3 Coder Next** | Coding-specialized, cheapest tier. Mechanical: dependency additions, config, boilerplate, running a command and reporting output. |
16
+ | **2** | Light reasoning, well-known patterns. | **Amazon Nova Lite** | Bedrock-native, full tool-calling support in Kiro's agent flow. Wiring a documented library API, straightforward struct/state definitions, low risk of subtle bugs. |
17
+ | **3** | Moderate engineering. Real decisions, established patterns. | **Amazon Nova Pro** | Bedrock-native, full tool-calling support, strong reasoning-per-dollar. The workhorse tier — most tasks in this project land here. |
18
  | **4** | Hard. Real correctness risk, non-trivial reasoning, but bounded scope. | **Claude Sonnet 5 primary → escalate to Claude Opus 5 after 2 failed verification attempts** | FFI boundaries, real-time networking correctness, timing-sensitive sync. First tier where Claude is required. Escalation is evidence-triggered, not assumed up front. |
19
  | **5** | Cat-5-hurricane difficulty. Silent-failure risk. Top-tier reasoning mandatory. | **Claude Opus 5 only. No exceptions.** | Lock-free concurrency, unsafe memory/ABI correctness, real-time SIMD/DSP math, novel shader/graphics algorithms — domains where a wrong answer compiles clean, passes a shallow test, and corrupts data or renders garbage in production. |
20
 
 
32
  5. **For CAT 4-5 specifically, the recruited Claude model is explicitly granted the turns/time it needs to run its own real verification** (tests, benchmarks, a reproducible failure case fixed and re-tested) before declaring the task done. Cost discipline governs *which* tasks reach Claude, never *how thoroughly* it verifies one it's actually working — cutting verification short to save credits is the single most expensive false economy available here.
33
  6. Once real, shown verification output confirms the task is done, the human switches the dropdown to whatever the next task's tier requires before continuing.
34
 
35
+ **Practical note**: a Work Order's task list can span all five tiers in sequence (e.g. WO-1 is CAT 1,1,3,5,4,2,1 — Qwen→Qwen→Nova Pro→Opus→Sonnet→Nova Lite→Qwen). That's real switching overhead. Where task order is flexible, batching same-tier tasks together within one sitting reduces dropdown switches without violating the protocol — the tier assignment is what's mandatory, not the original task ordering.
36
 
37
  ## CAT 4 escalation trigger (not automatic — evidence-based)
38
 
 
48
  - **Work Order 4** (WebRTC transport/telemetry), 7 tasks: CAT 1, 1, 1, 1, 2, 4, 4 — no CAT 5; the DataChannel broadcast and audio-track sync are the two CAT 4s (real-time networking correctness).
49
  - **Work Order 5** (canvas UI/WebGPU renderer), 7 tasks: CAT 1, 1, 2, 3, 3, 3, 5 — the WebGPU/WGSL Gaussian-splat viewport is CAT 5, arguably the hardest single task across all five Work Orders: genuinely novel graphics-shader engineering with the least precedent to lean on.
50
 
51
+ **Total CAT 5 tasks across the whole project: 3** — WO-1's ring buffer, WO-3's SIMD blendshape regression, WO-5's WebGPU viewport. **28 of the 36 total tasks are CAT 1-3 and never touch Claude at all** — Qwen3 Coder Next, Amazon Nova Lite, and Amazon Nova Pro carry the bulk of the build. Claude (Sonnet 5 then Opus 5) is confined to the 5 CAT 4 tasks plus the 3 CAT 5 tasks — 8 of 36, roughly 22% of the total task count, and typically the highest-value 22% to spend real reasoning on.
52
 
53
  ## The quad-test cost multiplier
54
 
MASTER_PROMPT.md CHANGED
@@ -19,8 +19,8 @@ Every task in every Work Order under `.kiro/specs/` is tagged `[CAT 1]` through
19
  | CAT | Model | Why |
20
  |---|---|---|
21
  | **1** | Qwen3 Coder Next | Mechanical — boilerplate, scaffolding, adding deps, confirming builds. Zero reasoning required. |
22
- | **2** | GLM-5 | Light reasoning — well-known patterns, simple data structures, basic tests. |
23
- | **3** | DeepSeek 3.2 | Workhorse — non-trivial logic, third-party integrations, behavioral tests. Most tasks land here. |
24
  | **4** | Claude Sonnet 5 | Real risk — networking correctness, SIMD math, security-sensitive code. Escalate to Opus 5 after 2 real failed verifications. |
25
  | **5** | Claude Opus 5 only — no exceptions | Silent-failure risk — lock-free concurrency, unsafe memory/ABI, real-time SIMD, novel shader math. Wrong code compiles and fails in production. |
26
 
 
19
  | CAT | Model | Why |
20
  |---|---|---|
21
  | **1** | Qwen3 Coder Next | Mechanical — boilerplate, scaffolding, adding deps, confirming builds. Zero reasoning required. |
22
+ | **2** | Amazon Nova Lite | Light reasoning — well-known patterns, simple data structures, basic tests. |
23
+ | **3** | Amazon Nova Pro | Workhorse — non-trivial logic, third-party integrations, behavioral tests. Most tasks land here. |
24
  | **4** | Claude Sonnet 5 | Real risk — networking correctness, SIMD math, security-sensitive code. Escalate to Opus 5 after 2 real failed verifications. |
25
  | **5** | Claude Opus 5 only — no exceptions | Silent-failure risk — lock-free concurrency, unsafe memory/ABI, real-time SIMD, novel shader math. Wrong code compiles and fails in production. |
26
 
PROJECT_OVERVIEW.md CHANGED
@@ -52,8 +52,8 @@ Every task in every Work Order is tagged `[CAT 1]` through `[CAT 5]`. This gover
52
  | CAT | Model | Why |
53
  |---|---|---|
54
  | 1 | **Qwen3 Coder Next** | Coding-specialized, cheapest tier — mechanical, zero reasoning required |
55
- | 2 | **GLM-5** | Light reasoning, well-known patterns |
56
- | 3 | **DeepSeek 3.2** | The workhorse — most tasks land here, strong reasoning-per-dollar |
57
  | 4 | **Claude Sonnet 5**, escalate to Opus 5 after 2 real failed verification attempts | Real risk, bounded scope — first tier where Claude is required |
58
  | 5 | **Claude Opus 5 only, no exceptions** | Silent-failure-risk engineering: lock-free concurrency, unsafe memory/ABI correctness, real-time SIMD math, novel shader algorithms |
59
 
 
52
  | CAT | Model | Why |
53
  |---|---|---|
54
  | 1 | **Qwen3 Coder Next** | Coding-specialized, cheapest tier — mechanical, zero reasoning required |
55
+ | 2 | **Amazon Nova Lite** | Light reasoning, well-known patterns |
56
+ | 3 | **Amazon Nova Pro** | The workhorse — most tasks land here, strong reasoning-per-dollar |
57
  | 4 | **Claude Sonnet 5**, escalate to Opus 5 after 2 real failed verification attempts | Real risk, bounded scope — first tier where Claude is required |
58
  | 5 | **Claude Opus 5 only, no exceptions** | Silent-failure-risk engineering: lock-free concurrency, unsafe memory/ABI correctness, real-time SIMD math, novel shader algorithms |
59
 
scripts/cat-router-check.mjs CHANGED
@@ -12,8 +12,8 @@ const SPECS_DIR = join(import.meta.dirname, '..', '.kiro', 'specs');
12
 
13
  const MODEL_BY_CAT = {
14
  1: 'Qwen3 Coder Next',
15
- 2: 'GLM-5',
16
- 3: 'DeepSeek 3.2',
17
  4: 'Claude Sonnet 5 (escalate to Opus 5 after 2 failed verifications)',
18
  5: 'Claude Opus 5 — MANDATORY, no exceptions',
19
  };
 
12
 
13
  const MODEL_BY_CAT = {
14
  1: 'Qwen3 Coder Next',
15
+ 2: 'Amazon Nova Lite',
16
+ 3: 'Amazon Nova Pro',
17
  4: 'Claude Sonnet 5 (escalate to Opus 5 after 2 failed verifications)',
18
  5: 'Claude Opus 5 — MANDATORY, no exceptions',
19
  };