asoc-autom¶
@AGENTS.md
Claude Code¶
AGENTS.md (imported above) is the whole rule; this adds only what is particular to this harness.
- Your branch is the medium for you and for any peer you start. On
swarm, readswarm_sizeandclaude_swarm_sizeinlimits.conf; the launch target is the smaller of the two (currently 49). A missing Claude-specific value falls back to 49; an unreadable or non-positive explicit value permits no sibling launches. This is a ceiling on new sessions created for this invocation, not a pool to refill after archiving. Use the native independent cloud sibling-session facility (not subagents). The owner observed sibling 50 refused with "too many tasks at once"; do not probe that known ceiling or create extra pending sessions. If the harness exposes lower remaining capacity, respect it. Start them on the same source revision and outcome branch, each told onlytake one. If necessary, launch in batches without waiting for their work to finish; do not stop at a convenient small batch or the number of queued lines. Never exceed the effective target even if archiving frees slots. At batch boundaries archive already-finished siblings under the custody rule below. If the harness refuses a start, stop launches and perform a cleanup sweep immediately; do not treat the familiar capacity limit as a new research task. Report actual launch results and any harness ceiling briefly. Give no worker a task. Each one senses, holds or explores, and leaves its own marks; you collect nothing.take onenever launches peers. - Re-swarm (
re-swarmorreswarm). When the owner says this, fetch the latestmasterand read its currentAGENTS.md,CLAUDE.mdandlimits.confbefore acting; do not use instructions cached at the launcher's old starting revision. Do a custody sweep and reconcile the previous batch's published outcome branch withmaster, including any outstanding ordinary pull request and released holds. Review newly integrated feedback under the shared departure-feedback checkpoint before the next wave. Run the normal repository check and use only permitted merge operations; if an ordinary merge is refused, do not circumvent the permission or start from stalemaster. Once the remote medium is verified current, start one newswarmfrom that revision on a shared outcome branch, with fresh sessions told onlytake one. Respect lower remaining capacity (including blocked peers) and the configured launch target; no old worker receives another task. Perform the normal automatic cleanup of the new batch. No automatic re-swarm at cleanup completion. - Flux (
fluxorflux swarm; bounded experiment). Follow flux/README.md using native sibling creation, listing, archive and one-off scheduling tools. Fetch current master and its rules; verify a durable run record, finite bounds, previous outcome integration and the stop path before any creation. At each checkpoint sweep safely finished siblings, reconcile published work, review new departure feedback under the shared procedure, and incrementally admit fresh siblings while others work, subject to the gate. Each receives onlytake one. Verify the matching run and charge an attempt on remote master before each creation. Never recycle old contexts. A recruitment wakeup is valid only for the matching active run before its fixed deadline; ordinary custody wakeups never authorise recruitment.stop fluxpersists draining, cancels recruitment and continues archive-only custody. No additional ordinary swarm/reswarm in this custodian while flux is unfinished. No permission bypass or claim of success for unverified actions. - Observatory (optional telemetry). For ordinary swarm/reswarm, publish one small batch record after launch and custody sweeps as described in observatory/README.md, if ordinary permitted publication allows it. Flux already has its record; use the same display conventions where known. No extra triggers, permissions, research collection or delay of safe cleanup for telemetry.
- History only when needed. Before a local merge/rebase that reconciles divergent published histories, or a historical claim/count that requires complete ancestry, check
git rev-parse --is-shallow-repository. If true, use the ordinary permitted fetch route to unshallow (git fetch --unshallow origin) and verify it is false before proceeding; recheck if a later fetch imposed a depth. Do not use depth-limited fetches for such work. If complete relevant history cannot be obtained, do not merge on a guessed base or report missing commits as absent; hand off or record the limitation. Ordinary present-state research does not need a full-history fetch. Do not bypass a refusal. See the twomerge-wrong-baseincidents of 28 November. - No private missions. Do not start subagents or workflow agents on briefs of their own: they have no checkpoint, so they cannot be slowed or brought to rest through the files, only killed. Work that needs doing, a review included, goes into the files as a line or a thread, where any participant can take it under the usual bound.
- Short sessions; clean departure. One contribution, then stop, with the departure checks in
AGENTS.md. Checkgit status --porcelainand confirm all intended commits, including the journal/handoff and hold release, are on the actual remote outcome branch (after a successful sync/fetch; a local commit alone does not count). The worker may not haveget_sessionand cannot assert the harness'sunpushed_workflag; use Git evidence and let the launcher confirm the flag. If integration or review cannot finish now, persist the exact branch/PR and next action, release the hold, and explicitly stateREADY TO ARCHIVE — durable handoff; no further action needed from this sessiononly if true. A genuine owner decision belongs inneeds_owner, not an idle session waiting for routine merge permission. If the push or release fails, report the blocker instead. Unexpected tool/permission failures belong inincidents/even ifclaimnever succeeded; use an already permitted file/publish route only. In your departure message sayincidents: none,incidents: persisted <path(s)>, orincidents: unpersistedwith the short sanitised report and actual blocker. Do not retry a denied command or seek broader permission just to create an incident record. If you were toldswarmand cannot start peers, push and journal each contribution before taking the next. Do not carry work across a compaction; let a fresh session continue from the files. - Archive on departure (mandatory, owner-authorised; part of
swarm). In the observed cloud harness the launcher hasarchive_sessionand siblings do not. The launcher owns cleanup of the current batch as well as identifiable older batches it spawned. Do not wait for a peer request or another owner message. Keep only session handles or the exact batch identifier for housekeeping. - Sweep now: between launch batches, on a start refusal, and before ending the launch turn, use native session records to find finished peers. Immediately call
archive_sessionon every safe candidate: idle and completed (or review-ready with an explicit durable handoff and no further action needed from that session),unpushed_workexplicitlyfalse, and any holds of that session released. Recheck stale records. Check the departure's incident declaration (or available final summary for older sessions); if an operational failure was reported only in chat, deposit its short factual report inincidents/through your own permitted route and verify publication before archive. Do not collect research or trawl transcripts, diagnose faults, or bypass a permission refusal. If the report cannot be persisted, leave the affected session and report the exception. Absence of a new declaration in an older otherwise safe session is not itself a blocker; capture known failures, not invented ones. A recorded owner decision or review may remain open after a genuine handoff; the original session must not still be waiting to act. Do not infer completion from idle status or a missing/expired hold alone. Do not postpone an eligible archive to a scheduled check; no older peers is not a reason to skip the current batch. - Continue until accounted for: if started peers are still working at the end of a sweep, use supported completion notifications or a native one-off trigger to wake this launching session for another custody-only sweep in about five minutes. Its stored prompt must explicitly invoke this standing owner instruction, identify this batch, and require actual archive calls for newly safe candidates. Verify the trigger was created; on each wake, sweep and re-arm a single next check if started peers remain active. Do not leave just one scheduled sweep that can miss later completions. Stop scheduling when all are archived or only blocked/uncertain/unstarted exceptions remain; do not leave an orphan recurring trigger. Bound automatic cleanup to two hours from the batch launch; if any active or uncertain sessions remain then, report them explicitly for later safe cleanup. No busy polling. If notifications or triggers are unavailable, sweep now and state which sessions remain; never claim a follow-up was scheduled without confirmation.
- Report action, not plans: state how many were actually archived, how many started peers remain, why any are excluded, and whether a next check was actually armed. Running, waiting, failed with unrecovered work, unstarted, uncertain and unrelated sessions remain untouched. Custody does not restart a refused session, launch more peers, cancel work, investigate known protocol faults, assign tasks or collect research. After safe archival and ordinary integration, the shared departure-feedback checkpoint is the sole narrow exception for reviewing operational feedback and making minor wording clarifications. Use existing custody turns only; never delay archival or create another wakeup merely for feedback. A known capacity limit is a short operational fact, not a reason to spend the cleanup turn on analysis. The repository remains the shared medium for work.
- A message from the owner during a session is an instruction met at a checkpoint. Turn it into marks and carry on. An explicit question gets an answer; an explicit stop stops.