Skip to content
Back to skills

Ibn Goal Loop Watcher

ASecurity

Finish a long IBN task list with a goal, a bounded loop and watchers so no agent, subagent or helper hangs or drifts. Use for any multi-step IBN job (finish list, design of a floor, a project, a learning round) and for every job delegated to another agent.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 24, 2026
ai-agentspythongoshell

Security analysis

A100/100

Scanned November 26, 2026

npx -y skills add abram7200/ibn-office --skill ibn-goal-loop-watcher --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ibn Goal Loop Watcher?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ibn Goal Loop Watcher
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/abram7200-ibn-goal-loop-watcher/badge)](https://www.skillsdirectory.com/skills/abram7200-ibn-goal-loop-watcher)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ibn-goal-loop-watcher
description: Finish a long IBN task list with a goal, a bounded loop and watchers so no agent, subagent or helper hangs or drifts. Use for any multi-step IBN job (finish list, design of a floor, a project, a learning round) and for every job delegated to another agent.
---

# IBN goal + loop + watcher (owner rule 2026-11-17)

Smart, accurate, bounded. Never endless, never idle, never by hand when IBN already has the tool.

## 1. One goal, one loop file
- The loop state is ONE file: `<IBN folder>/evidence/mission_audit/FINISH_LOOP.md` (one row per finish item: state, round 1-3, owner, evidence; a cycle log; the line `LOOP COMPLETE` ends it). The plan line it serves is in `IBN_MASTER_PLAN.md`.
- Order work by the owner's timeline: foundations first (block identity, host-aware placement, visual check, apply proof, drawing quality), then systems, then wiring, then projects, then the portable bundle.

## 2. One cycle
dispatch -> collect -> test -> independent check (Fable 5.2 runs the Ponytail audit skill + the tests; every fix it lists, nice-to-have included, is applied and re-checked) -> fix at the root -> record.
- At most 3 rounds per item; what is left goes to the engineer packet (state DONE-WITH-PACKET).
- After every cycle: FINISH_LOOP row + cycle log, the plan line, the logs (`log_note.py`), memory. Show measured facts and say plainly what is not met.

## 3. Delegation contract (every agent, subagent and helper)
Every delegated job gets, in its brief:
1. one goal line and a done-test that a checker can run;
2. a tool-call budget (about 22) and a HARD STOP at call 28: write the result and reply, even if partial;
3. a stub result file written FIRST, so a dead job still leaves a trace;
4. one owner per file set (no two writers on one file);
5. a stop rule: finished = result file + tests; blocked = say what blocks and stop. Three attempts with no new result = stop and report (metacognition), never retry blindly.
Template: `<IBN folder>/evidence/cycles/ENGINEER_BRIEF_TEMPLATE.md`.

## 4. Watchers (no hang, focus on the goal)
- `hang_watch.py` runs every 3 minutes (scheduled task "IBN Task Watcher"):
  A dispatcher past its timeout -> killed; B orphan one-shot worker -> killed; C quiet unfinished subagent -> flagged; D `FINISH_LOOP.md` unchanged 45 min without `LOOP COMPLETE` -> GOAL_STALL.
- Events go to `<IBN folder>/evidence/mission_audit/watch_events.log`; status in `HANG_STATUS.md`. The lead reads them and acts: stop the job, message it, or run the next cycle step.
- Heartbeat each turn: `agent_alive.py beat "<what>"`. Pause at 96 % of the 5-hour limit with checkpoints.

## 4b. Checkpoints, pause and the 5-hour limit (owner 2026-11-17)
- `<IBN folder>/evidence/mission_audit/checkpoint.py` runs every 30 min (scheduled task "IBN Checkpoint 30min"): a small RESUME_HERE.md / HANDOFF.md (< 16 KB: state, finish items, in-flight jobs, resume prompt) + a snapshot in <IBN folder>/evidence/checkpoints/. History logs live in <IBN folder>/evidence/history/.
- The 5-hour hook (five-hour-pause.mjs) takes a SAFE checkpoint itself at 90 % (once per window) and runs `checkpoint.py pause` itself at 96 %, then tells the agent to stop.
- When the owner says pause / puse / stop: run `python <IBN folder>/evidence/mission_audit/checkpoint.py pause`, start nothing new, give the owner the snapshot name.

## 4c. Every check = Fable 5.2 + Ponytail, never alone (owner 2026-11-17)
- Secretary first (owner 2026-11-18, N156): run `fable_secretary.py` (tools/agents) to write CHECK_PACK.md (diffs, scans, tests on new AND old code, claims, fix list, free-model notes); hand Fable the pack path; Fable judges, it does not do the legwork.
- Every independent check of engines, workflow, files, results or a delegated job is done by Fable 5.2 (Agent model "fable", Agent general-purpose with model "fable" (shell + Skill tool), running the local ponytail-audit skill and the tests, with ponytail:ponytail-audit as the fallback if the local skill is missing; never the read-only task-router:checker) WITH a Ponytail audit (dead code, duplicates / one producer per fact, over-engineering, unsourced numbers, fixed paths, swallowed errors, tests that pass on old code, 'strong body - child engine'). Never a check by one of them alone, never a self-check by the maker.

## 4d. Turn limits: no job ends without a report (owner 2026-11-17)
- Budget = 60 % of the agent type's turn limit (worker 25 -> 15 calls, stop at 18; engineer 40 -> 24, stop at 28).
- Result file written INCREMENTALLY (each finding appended at once); runs longer than 2 min are started in the background and collected by the lead, never waited on inside the job.
- On a turn-limit stop the lead resumes the SAME agent with "write the result now" (SendMessage), never a fresh one.

## 4e. Standard contract on everything (owner 2026-11-17, must)
- STANDARD CONTRACT (owner 2026-11-17, every agent / subagent / helper / background job - never alone): 1) Ponytail: smallest complete change, reuse what exists (IBN brain / skills / engines first), no dead code, one producer per fact, end with what you skipped and the risk. 2) Token Optimizer: read in slices, big outputs to files, never re-read. 3) Task Router: one narrow job; life-safety work stays advisory. 4) Advisor: on the single hardest judgment use an advisor if you have one, else write 'advisor skipped: <reason>'. 5) ibn-goal-loop-watcher: goal line + done-test; budget 60 % of your turn limit; result written first and updated after every finding; 3 attempts with no new result = stop and report. 6) Checks are done by Fable 5.2 + Ponytail, never by the maker. Nothing without a source (project, guideline with page, office projects, else needs_input). Reply: what is NOT met first, then measured facts with file:line. Your answer is a claim: it will be tested and checked independently.
- Enforced: Claude agents by the PreToolUse hook ~/.claude/hooks/agent-contract.mjs; helpers by the CONTRACT header of codex_task.py.
- All owner notes in time order: <IBN folder>/evidence/mission_audit/OWNER_NOTES_REGISTER.md, each with its enforcer and state.

## 4f. RAM watcher
- RAM stop at the PC line (lead rule text on pkg/docs/RESOURCE_POLICY.md:24, owner law N151, lead decision 2026-11-18; "frees >= 1 GB" is measured as helper RSS >= 1 GB): at >= 90 % the watcher may stop the biggest IBN helper even if healthy, but only one whose stop frees >= 1 GB, never a protected / user app, one per tick, and it logs RAM_STOP with the reason "PC >= 90 %".

## 5. Full IBN power, nothing by hand
- First ask IBN: `ibn-brain plan/find "<outcome>"`, then the matching IBN skill, then the existing engine / library / LISP / .NET (`ibn_first.py` lists what is ALREADY IN IBN). Reuse or extend; a new module only with a stated reason.
- Skills, libraries, add-ons and mods change only through the package's own tools (`installer/ibn_apply.py` plan -> apply --confirm APPLY, `install_addon.py fixes`, `lazy_migrate.py`), with a backup and an undo transaction. Never hand-edit an installed skill or library folder.
- No absolute drive path in engine code (use env / relative paths); a new tool gets its twin in the package.
- Nothing without a source: project -> guideline with page -> ten office projects -> Needs Input. Life-safety results are advisory; an engineer verifies.

## Goal and notes in every brief (owner 2026-11-19)
- Every job brief starts with the goal line from GOAL_AND_NOTES.md plus notes_for(brief) (<IBN folder>/evidence/mission_audit/goal_notes.py).
- Every FINISH_LOOP.md row carries the requirement it serves (1-4 / N177) and the note ids.
- Each cycle starts by reading <IBN folder>/evidence/mission_audit/WATCH_STATUS.md (first line = goal %, stages, notes open, brain guard).
- Checks: Judge against the goal and the notes in the pack first (owner N178 / Ponytail priority 1 = exact requirements); a result that passes its tests but misses a listed note is NOT accepted.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.