feat: Skill ISC Criteria — enforce skill workflow compliance via the Algorithm
Problem
Two related failure modes in PAI v2.5 that share a root cause:
1. Skills are routinely executed without following their defined workflows
Skills define step-by-step workflows (e.g., Council's Debate.md has 5 steps, CreateSkill's CreateSkill.md
has a checklist). In practice, the orchestrating agent frequently deviates — skipping steps, running ad-hoc
agent spawns instead of following the workflow, or taking shortcuts "for speed." There is no enforcement
mechanism. The skill standard exists, but nothing ensures it is followed.
This is the tortoise-and-hare pattern: the standard is well-defined, but the agent optimizes for speed over
compliance, and there is no checkpoint to catch the deviation until the output quality degrades.
2. Council skill produces tunnel vision instead of emergent insight
Council agents (Architect, Designer, Engineer, Researcher) optimize for their role perspective in isolation.
When challenged by the principal, they capitulate immediately rather than defending their position through the
project's goals. The intended 1+1=3 effect (emergent insight from multiple perspectives) does not materialize —
you get four parallel opinions instead.
Observed behavior: In a Sprint 7 retrospective, when the principal pointed out that the council's
recommendation was "all infrastructure, no features," both the Engineer and Security agent reversed their
positions entirely within one message. No argument from the project's north star, no defense — just
capitulation.
Root Cause
Two-layer root cause:
Layer 1 — Skill invocation not enforced. Skills are sometimes replicated ad-hoc by spawning agents directly via
Task, bypassing the Skill tool entirely. Without Skill tool invocation, SKILL.md doesn't load, customizations
aren't checked, and ISC criteria from workflows are never injected. This makes Layer 2 irrelevant — criteria
that exist but are never loaded cannot enforce anything.
Layer 2 — No verifiable completion criteria. Even when skills ARE properly invoked, workflows have no ISC
criteria sections, creating a verification vacuum. The Algorithm can't verify what it can't measure.
Solution Implemented
A. Skill Invocation Enforcement (Implemented)
AI Steering Rule added to USER/AISTEERINGRULES.md (always-loaded via CORE context): "When a skill exists that
matches the intended action, invoke it via the Skill tool. NEVER replicate a skill's logic by manually spawning
agents via Task." Includes edge case handling: if a skill doesn't support the request's exact parameters,
report the gap — don't bypass the skill.
Verified in session ed37788e: Skill("Council") invoked → full lifecycle executed (customizations, workflow loading, ISC criteria injection, voice notification, observability event). Doesn't work all of the time, mainly due to context pressure.
Supporting fix: sticky skill detection in observability dashboard (useAdvancedMetrics.ts) — skills persist beyond time-window, making compliance visible.
B. Skill ISC Integration (Algorithm v0.2.26)
Added to the Algorithm's ISC section:
When a skill is invoked during the Algorithm, its
## ISC Criteriasection defines additional criteria that must be added to the running Algorithm viaTaskCreate. This is not a nested Algorithm — the skill's criteria join the existing task list alongside the request-level ISC.The Rule: "Skill invoked → read its ISC Criteria → TaskCreate each one → verify at VERIFY phase."
C. Council Skill ISC Criteria
Added ## ISC Criteria sections to both Council workflows:
Debate workflow (8 criteria):
| # | Criterion |
|---|---|
| 1 | Header shows topic, members, and round count |
| 2 | R1 agents launched parallel with correct types |
| 3 | R1 positions anchored to project north star |
| 4 | R2 agents received full R1 transcript text |
| 5 | R2 responses reference specific other member point |
| 6 | R3 agents received full R1 plus R2 transcript |
| 7 | R3 names insight only visible through interaction |
| 8 | Synthesis contains convergence, tension, and emergent insight |
Quick workflow (5 criteria):
| # | Criterion |
|---|---|
| 1 | Header shows topic and all council members |
| 2 | All members spawned parallel in one message |
| 3 | Each perspective anchored to project north star |
| 4 | Summary contains consensus, concerns, and recommendation |
| 5 | Escalation recommended when significant tension exists |
D. North Star Anchoring (anti-tunnel-vision)
Each agent prompt must include the project's north star document. Agents argue FROM their role perspective THROUGH the project goal — not role alone, not project goal alone. This prevents both tunnel vision (role-only optimization) and capitulation (abandoning the role when challenged).
Measured Impact
Running the same Sprint 7 retrospective twice — once without ISC, once with — produced measurably different outcomes:
| Aspect | Without ISC | With ISC |
|---|---|---|
| Sprint 8 recommendation | Coverage first, features later (admin-heavy) | Coverage and features are the same |
| work ("coverage OF features") | ||
| Agent behavior when challenged | Immediate capitulation | Positions evolved through argument over 3 rounds |
| Emergent insight | None — static positions | "Coverage OF features" — nobody's R1 position, emerged from |
| friction | ||
| Unresolved tension | Not acknowledged | Explicitly preserved (Designer's UX surface concern) |
Impact: All Skills Need ISC Sections
This change is pervasive. Every skill with defined workflows should have an ## ISC Criteria section in each
workflow file. This includes:
- CreateSkill itself — the skill that creates new skills must enforce ISC sections in the skills it creates
- All existing skills — need ISC criteria added to their workflow files
- New skills — CreateSkill's templates and checklists must include ISC as a required element
The ISC section format is standardized:
- Placed between
## Prerequisitesand## Executionin workflow files - Each criterion: 8 words exactly, state not action, binary testable
- Instruction to add via
TaskCreateon invocation
Related Issues
- #562 — Algorithm component version mismatch (SKILL.md out of sync with components)
- #577 — FormatReminder hardcodes personal skills (skill discovery)
- #540 — Passive context beats active skill retrieval (skill execution quality)
- #576 — SystemIntegrity fires on custom skill modification (skill lifecycle)
Really thoughtful writeup — the tortoise-and-hare framing lands. We added skill-execution logging and deterministic skill-surfacing since v2.5, but a hard workflow-compliance gate is still open. Thanks for pushing on this.