mirror of
https://github.com/rennf93/roboco.git
synced 2026-08-03 07:23:24 +02:00
Fleet behaves more like Fable 5 on existing model tiers, behind ROBOCO_FABLE_MODE_ENABLED (config default off; armed :-true on the NAS compose, absent from the registry compose). - Doctrine: vendored agents/prompts/doctrine/fable.md composed into every agent's system prompt via fable_doctrine_layer() after base.md. - Hooks (Claude Code): 4 non-overlapping hooks (stop-gate/bash-discipline/ honesty-nudge/precompact) appended per-agent via _fable_hook_groups(). The make-quality + lint-suppression duplicates are deliberately NOT added (already gate-enforced); session-start skipped. - Hooks (grok): conservative V1 — only the non-denying honesty-nudge, since a grok hook deny cancels the whole run. - Flag on the feature-flags card; hook scripts shipped into the agent image. Flag-off spawn path proven byte-identical (worktree diff, sha256 match); full suite green (2074 unit + e2e-smoke + hook harness), mypy/xenon/ruff clean. Fixed a real stdin bug in the vendored stop-gate hook (heredoc + pipe both claimed stdin). Distilled from rennf93/opus-fable-playbook (MIT).
15 lines
626 B
Bash
Executable File
15 lines
626 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Fable PreCompact guidance: shapes what survives conversation compaction.
|
|
# Ported from opus-fable-playbook hooks/precompact.sh (v0.1.3) — see
|
|
# docs/superpowers/plans/2026-07-04-v0.18.0-A-opus-fable-plan.md.
|
|
# Static output, no input parsing needed. Fail-open.
|
|
set -u
|
|
cat > /dev/null || true
|
|
cat <<'EOF'
|
|
Compaction guidance (fable-mode): the summary must preserve, outcome-first:
|
|
(1) current task state and remaining work, (2) what was verified, with the
|
|
actual results, (3) any failures not yet reported to the user, verbatim,
|
|
(4) pending user decisions, (5) paths of files being modified.
|
|
EOF
|
|
exit 0
|