forked from bchanot/claude
Merge feature/routing-audit-phase into develop
# Conflicts: # .claude/memory/journal.md # .claude/memory/learnings.md # .claude/tasks/TODO.md
This commit is contained in:
commit
b961ce6b98
18 files changed
+259
-39
No files matched your search
@@ -47,7 +47,8 @@ JUDGMENT — the challengers are routed to the `judge` row (opus) by the model-r
|
||||
the `model: opus` frontmatter being the off-state floor: a big tier, off
|
||||
the session model. The session model (Fable)
|
||||
keeps only this loop — synthesis, RE-THINK, gate. Never sonnet: that would
|
||||
silently downgrade the judgment. (The executor gates stay sonnet.)
|
||||
silently downgrade the judgment. (The executors stay sonnet; the two merge
|
||||
gates sit on the `audit` row, Fable with an opus floor.)
|
||||
|
||||
**Lens framing by `KIND`** (the agent's three lenses, read against the artifact):
|
||||
- `build-plan` — will it WORK / will it BREAK / is it needlessly COMPLEX.
|
||||
|
||||
@@ -52,12 +52,19 @@ code_phase() {
|
||||
awk '/^ phases: \{/{f=1;next} f&&/^ \},?$/{f=0} f' "$REG" \
|
||||
| sed -nE "s/^ *$1: \{ tier: '([a-z]+)', effort: '([a-z]+)' \},?$/\1 \2/p"
|
||||
}
|
||||
# tier_floor <file> <tier> -> the model: floor of a tier's agents
|
||||
# a best-tier row floors on its 2nd alias: inTier keeps the frontmatter when the head is down (Fable credits, BLK-030); a fable floor would spawn the gates on a dead model
|
||||
tier_floor() {
|
||||
if [ "$2" != best ]; then tier_head "$1" "$2"; return; fi
|
||||
awk '/^ tiers: \{/{f=1;next} f&&/^ \},?$/{f=0} f' "$1" \
|
||||
| sed -nE "s/^ *best: \['[a-z]+', '([a-z]+)'.*$/\1/p"
|
||||
}
|
||||
# field_of <dump> <phase> <effort|model> -> that phase's frontmatter value
|
||||
field_of() {
|
||||
local pe tier
|
||||
pe="$(phase_effort "$1" "$2")"
|
||||
if [ "$3" = effort ]; then printf '%s\n' "${pe#* }"; return; fi
|
||||
tier="${pe% *}"; tier_head "$REG" "$tier"
|
||||
tier="${pe% *}"; tier_floor "$REG" "$tier"
|
||||
}
|
||||
# verdict <dump> <kind> <name> <effort|model> <got> <phase>: ok when the
|
||||
# frontmatter equals the row's phase; warn when the row was changed through
|
||||
@@ -87,6 +94,7 @@ RD="$(dump "$RJ")"
|
||||
FIX="$(mktemp -d)"; trap 'rm -rf "$FIX"' EXIT
|
||||
cat > "$FIX/reg.ts" <<'FX'
|
||||
tiers: {
|
||||
best: ['fable', 'opus', 'sonnet'],
|
||||
big: ['opus', 'fable'],
|
||||
},
|
||||
FX
|
||||
@@ -110,6 +118,8 @@ FD="$(dump "$FIX/routing.json")"
|
||||
[ "$(phase_effort "$FD" judge)" = "big xhigh" ] && ok || ko "flip: phase"
|
||||
[ -z "$(phase_effort "$FD" nothere)" ] && ok || ko "flip: ghost phase"
|
||||
[ "$(tier_head "$FIX/reg.ts" big)" = "opus" ] && ok || ko "flip: tier head"
|
||||
[ "$(tier_floor "$FIX/reg.ts" best)" = opus ] && ok || ko "flip: best floors on its 2nd alias"
|
||||
[ "$(tier_floor "$FIX/reg.ts" big)" = opus ] && ok || ko "flip: big floors on its head"
|
||||
[ "$(changed_of "$FD" skills feat)" = "reflect implement" ] && ok || ko "flip: changed entry"
|
||||
[ -z "$(changed_of "$FD" skills doc)" ] && ok || ko "flip: ghost changed entry"
|
||||
# the drift verdicts (high = reflect's effort, medium = implement's)
|
||||
@@ -147,7 +157,7 @@ check_skill() {
|
||||
while IFS= read -r f; do check_skill "$f"; done < <(
|
||||
cd "$R" && git ls-files 'skills/*/SKILL.md' 'skills-external/*/SKILL.md')
|
||||
|
||||
# ── (c) tracked agents with a row: tier head == model:, effort == effort: ─
|
||||
# ── (c) tracked agents with a row: tier floor == model:, effort == effort: ─
|
||||
NO_ROW_AGENTS=" interviewer client-handover-writer "
|
||||
check_agent() {
|
||||
local f="$1" name phase
|
||||
|
||||
@@ -20,8 +20,8 @@ done
|
||||
# 3) executor + gate pins
|
||||
has "agents/feater.md" 'model: sonnet'
|
||||
has "agents/hotfixer.md" 'model: sonnet'
|
||||
has "agents/verifier.md" 'model: sonnet'
|
||||
has "agents/security-auditor.md" 'model: opus' # judge row since 2026-10-11 (user first-use decision)
|
||||
has "agents/verifier.md" 'model: opus' # audit row (best tier, opus = outage floor; BLK-032 policy 2026-10-21)
|
||||
has "agents/security-auditor.md" 'model: opus' # audit row since 2026-10-21 (was judge since 2026-10-11)
|
||||
has "agents/analyzer.md" 'model: opus'
|
||||
# 4) /feat executor shape
|
||||
has "skills/feat/SKILL.md" 'subagent_type="feater"'
|
||||
|
||||
Reference in new issue
Block a user