Skip to content

fix(loop): reliable steering, bounded validation and event-driven supervision - #497

Merged
huichen merged 3 commits into
mainfrom
claude/loop-reliability
Sep 6, 2026
Merged

huichen merged 3 commits into
mainfrom
claude/loop-reliability

Conversation

@huichen

@huichen huichen commented Sep 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Replace new single-slot steering writes with UUID instructions and recipient-scoped, post-writeback acknowledgements; routine guidance waits for the next boundary and --interrupt is explicit. Preserve legacy event replay.
  • Run validators asynchronously with independent timeouts, drained/bounded diagnostics, cancellation cleanup, platform-appropriate shells, and inconclusive infrastructure classification. Mark manual completion provenance.
  • Add an independently detached, non-LLM watchdog and durable immutable notification batches with retry/deduplication. Detect death of the last worker and wall-clock-overdue verification without paid polling.
  • Preserve every upstream source in fan-in envelopes, expose acceptance/validation contracts and milestone claims, distinguish activity from progress, and honor reverse/global gate edges consistently.
  • Align English/Chinese architecture and operating docs; ship proportional loop/research skills with explicit budgets, evidence handoffs and honest non-success stop states.

Skills / single-PR integration

The skills source is a separate repository. To retain the requested single PR, this PR pins the published future-skills feature commit 799c9b8 rather than opening another PR or modifying its main branch directly. Keep its source branch reachable while this gitlink is used.
Full skills diff

Validation

  • cargo fmt -p future-loop --check
  • cargo clippy -p future-loop --all-targets -- -D warnings
  • cargo test -p future-loop: 955 passed
  • cargo clippy -p future-loop --target x86_64-pc-windows-msvc --all-targets -- -D warnings (cross-compilation, not Windows runtime testing)
  • Skill frontmatter/metadata and git diff --check
  • Fault coverage includes sole-worker SIGKILL notification, durable batch retry across reconnect/reopen, steering acknowledgement after successful writeback, wide fan-in, gate scope, output-pipe saturation, inherited-pipe timeout and validator cancellation.

Operational notes

  • Existing callers wanting immediate interruption must add supervisor steer --interrupt; update the executable together with the skills.
  • Watchdog is an independent local process, not an automatically installed boot service. Host reboot recovery requires re-registration or a service manager running supervisor watch.
  • Steering is at-least-once guidance, not exactly-once external effects. Notification receipt means queue acceptance, not supervisor action.
  • No new hard token/currency cap is claimed; budgets and evidence-driven stopping remain explicit orchestration policy.

@huichen
huichen enabled auto-merge (squash) September 6, 2026 16:43
@huichen
huichen merged commit 16134a7 into main Sep 6, 2026
12 checks passed
@huichen
huichen deleted the claude/loop-reliability branch September 6, 2026 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant