feat: expand attention-filters from stub to full skill
This commit is contained in:
@@ -37,3 +37,73 @@ Verdict: APPROVED or REJECTED with findings."
|
|||||||
"Here is the full research, the full proposal, the full implementation,
|
"Here is the full research, the full proposal, the full implementation,
|
||||||
the full git log, and everything else we have..."
|
the full git log, and everything else we have..."
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Prompt Construction Templates
|
||||||
|
|
||||||
|
### Explorer
|
||||||
|
- **Receives:** Task description, file tree (max 200 lines), prior-cycle feedback (if cycle 2+)
|
||||||
|
- **Excludes:** Creator proposals, Maker diffs, reviewer outputs
|
||||||
|
- **Token target:** ~2000 tokens input
|
||||||
|
|
||||||
|
### Creator
|
||||||
|
- **Receives:** Task description, Explorer research (if available), prior-cycle feedback (if cycle 2+)
|
||||||
|
- **Excludes:** Maker diffs, reviewer outputs
|
||||||
|
- **Token target:** ~3000 tokens input
|
||||||
|
|
||||||
|
### Maker
|
||||||
|
- **Receives:** Creator's proposal (full), test strategy section, file list
|
||||||
|
- **Excludes:** Explorer research, reviewer outputs, prior-cycle feedback
|
||||||
|
- **Token target:** ~2500 tokens input
|
||||||
|
|
||||||
|
### Guardian
|
||||||
|
- **Receives:** Maker's git diff, proposal risk section, test results
|
||||||
|
- **Excludes:** Explorer research, Creator rationale, Skeptic/Sage outputs
|
||||||
|
- **Token target:** ~2000 tokens input
|
||||||
|
|
||||||
|
### Skeptic
|
||||||
|
- **Receives:** Creator's proposal (assumptions + architecture decision), confidence scores
|
||||||
|
- **Excludes:** Git diff details, Explorer raw research, other reviewer outputs
|
||||||
|
- **Token target:** ~1500 tokens input
|
||||||
|
|
||||||
|
### Trickster
|
||||||
|
- **Receives:** Maker's git diff only, attack surface summary (file types + entry points)
|
||||||
|
- **Excludes:** Proposal, research, other reviewer outputs
|
||||||
|
- **Token target:** ~1500 tokens input
|
||||||
|
|
||||||
|
### Sage
|
||||||
|
- **Receives:** Creator's proposal, Maker's implementation summary + diff, test results
|
||||||
|
- **Excludes:** Explorer raw research, other reviewer verdicts
|
||||||
|
- **Token target:** ~2500 tokens input
|
||||||
|
|
||||||
|
## Token Budget Targets
|
||||||
|
|
||||||
|
| Archetype | Fast | Standard | Thorough |
|
||||||
|
|-----------|------|----------|----------|
|
||||||
|
| Explorer | skip | 2000 | 3000 |
|
||||||
|
| Creator | 2000 | 3000 | 4000 |
|
||||||
|
| Maker | 2000 | 2500 | 3000 |
|
||||||
|
| Guardian | 1500 | 2000 | 2500 |
|
||||||
|
| Skeptic | skip | 1500 | 2000 |
|
||||||
|
| Trickster | skip | skip | 1500 |
|
||||||
|
| Sage | skip | 2500 | 3000 |
|
||||||
|
|
||||||
|
"skip" means the archetype is not spawned in that workflow tier.
|
||||||
|
|
||||||
|
## Cycle-Back Filtering
|
||||||
|
|
||||||
|
When injecting prior-cycle feedback into cycle 2+:
|
||||||
|
|
||||||
|
1. **Summary only** — pass the structured feedback table (issue, source, severity), not full reviewer artifacts
|
||||||
|
2. **Strip resolved items** — if a finding was marked Fixed in the Act phase, exclude it
|
||||||
|
3. **Compress context** — prior proposal diffs reduce to "What Changed" section only (not full re-proposal)
|
||||||
|
4. **Cap at 500 tokens** — if feedback exceeds this, summarize by severity (CRITICAL first, then WARNING, drop INFO)
|
||||||
|
|
||||||
|
## Filter Verification Checklist
|
||||||
|
|
||||||
|
Before spawning each agent, verify:
|
||||||
|
|
||||||
|
- [ ] Prompt contains ONLY the artifacts listed in that archetype's "Receives" above
|
||||||
|
- [ ] No cross-contamination from other reviewers' outputs
|
||||||
|
- [ ] Token count is within 20% of the target for the current workflow tier
|
||||||
|
- [ ] Prior-cycle feedback (if any) is summarized, not raw
|
||||||
|
- [ ] Excluded artifacts are genuinely absent (search for keywords like file paths from excluded sources)
|
||||||
|
|||||||
Reference in New Issue
Block a user