stale-work-loop
Turn a fak stale-work packet into dedicated, contract-valid issue units, collision-safe dispatch waves, and witness-only reconciliation. PLAN by default; use when an operator asks to adjudicate stale-work candidates, file the dedicated issues, or launch fresh workers for already-filed stale-work issues.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-15
- Stars
- ★ 48
- Forks
- 16
01 前言 Front Matter
- name
- stale-work-loop
- metadata
- { "opencode": "claude-only", "canonical": "../../../.claude/skills/stale-work-loop/SKILL.md", "generated-by": "fak project-assets sync" }
- description
- Turn a fak stale-work packet into dedicated, contract-valid issue units, collision-safe dispatch waves, and witness-only reconciliation. PLAN by default; use when an operator asks to adjudicate stale-work candidates, file the dedicated issues, or launch fresh workers for already-filed stale-work issues.
- allowed-tools
- Read, Bash
03 SKILL.md 正文
/stale-work-loop
This skill operates the two-stage contract in docs/stale-work.md.
The discovery session never edits a candidate. A dedicated issue is the only authority for a
fresh worker to retain, update, or delete that candidate.
1. Plan first
Capture the #6613 packet and an issue read-back containing open plus recently closed rows, then run the loop without a live flag:
fak stale-work --json --limit 20 > packet.json
fak stale-work loop --packet packet.json --issues open-and-recent.json --json
Inspect every unit:
issue.contract.okmust be true before filing a generated body.dispatch.statusmust remainREFUSEwhile no dedicated issue exists.- every ready issue has a distinct
worker_id; - overlapping paths occupy different waves; and
counts.launchesis zero.
Do not edit candidate content during this phase.
2. Explicit live gates
No live action is implied by invoking this skill. Use a live flag only when the operator explicitly asked for that exact effect:
# GitHub mutation only. Requires the dedupe snapshot.
fak stale-work loop --packet packet.json --issues open-and-recent.json --live-issues --json
# Worker launch only. Re-read issues after filing and inspect contracts first.
fak stale-work loop --packet packet.json --issues refreshed-issues.json --live-launch --json
Never combine discovery and candidate mutation in one worker identity. The loop routes every
issue through fak dispatch tick with its own issue-derived identity and lease tree.
3. Reconcile from witnesses, not narration
Feed the dispatch/issue read-backs through --witnesses. SHIPPED requires all four:
- independent issue state is
CLOSED; dos commit-auditsaysOKwithdiff-witnessed;- the focused acceptance read-back is
CLAIM_TEST_GREEN; and - an independent source records
retained,updated, ordeleted.
Anything less is STILL_OPEN or ABSTAIN. A worker log or final message is never closure
evidence.
Persist only when requested:
fak stale-work loop --packet packet.json --issues refreshed-issues.json \
--witnesses witnesses.json --state prior.json --state-out next.json --json
The evidence digest invalidates a cached adjudication whenever the candidate evidence changes.
04 同仓库更多 Skills
serve-receipt
On-demand research protocol + deterministic receipt for serving a Hugging Face model on a concrete GPU target — fan out research lanes (model facts/files, engine support matrix, serving recipes, KV/state memory math), compute the tiered feasibility verdict with `fak serve-receipt` (never narrated math), and emit a witnessed launch receipt. Use when asked for an "initial config", "serving receipt", or "how do I serve <model> on <GPUs>".
caveman
Ultra-compressed communication mode. Cuts output tokens 65% (measured) by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman. Also auto-triggers when token efficiency is requested.
quality-report
Score the repo quality and emit a report card.
ctx-overlay
Compact the context window and prune the memory store when a session grows too long.
quality-report
Score the repo quality and emit a report card.
ctx-overlay
Compact the context window and prune the memory store when a session grows too long.