Skip to content

Thread goals: persistent objective with bounded auto-continuation and blocked detection #238

Closed

Description

@currentbits

Inspired by Synara's thread goals.

A persistent objective shown above the composer with an elapsed timer. While the goal is unmet, Solenta can auto-start bounded follow-up turns (the agent continues autonomously within a budget). After 3 consecutive turns blocked on the same condition, mark the goal blocked and stop instead of spinning. Achievement badge / completion state when the agent declares the goal met.

Activity

  1. added
    enhancement
    plan:todo
    on Aug 17, 2026
  2. currentbits commented on Aug 17, 2026

    @currentbits
    OwnerAuthor

    Research note (production multi-agent patterns): add loop guardrails to auto-continuation: hard iteration caps, and a forced reflection prompt before each retry ('What failed? What change fixes it? Am I repeating the same approach?'). Documented to substantially cut stuck agents in unattended runs.

  3. currentbits commented on Aug 17, 2026

    @currentbits
    OwnerAuthor

    Research note (Anthropic's long-running harness post, the practitioner standard): on goal creation, an initializer writes a feature_list.json-style goal file (JSON, not markdown — models tamper with it less) where ONLY the status field may be edited, plus a progress log. Each continuation turn reads the goal file and git log first, runs the app end-to-end before claiming progress, and works ONE item at a time. This directly fixes the four named failure modes: one-shotting, premature victory, done-without-e2e-testing, dirty environment.

  4. currentbits commented on Aug 17, 2026

    @currentbits
    OwnerAuthor

    Deep-dive detail (Synara thread goals): the stealable core is the priority state machine, not the timer. Continuation order: queued user work > pending approvals > plan decisions > auto-continuation. And 3 consecutive same-blocker turns classify the goal blocked with a mandatory pause. This makes autonomy safe WITHOUT a trust dial.

  5. currentbits commented on Aug 18, 2026

    @currentbits
    OwnerAuthor

    Round-19: Synara 0.7.2 turned goals from labels into durable objectives. Implementation details worth copying when this is built:

    • Stacked composer panel, elapsed-time, pause/resume, achievement history, message-footer badges, prompt injection, MCP read/write.
    • Autonomous continuation after a clean turn completion, with startup recovery.
    • Queued user input always outranks automatic continuation.
    • Plan and interaction gates; pause-on-interrupt or failure; terminal-session retries; an explicit blocked state so it cannot loop.
    • They replaced automation's single stop-on-error with a consecutive-failure threshold (default 3) — that part already lives on Automation failure circuit breaker: pause after N consecutive failures #160.

    Factory Droid Missions (multi-day goal pursuit) is the same product idea on the other side of the adapter. Do not special-case Droid; make goals work for every provider.

  6. currentbits commented on Aug 18, 2026

    @currentbits
    OwnerAuthor

    Round 20: Claude Code /goal grew two behaviors that belong on this ticket.

    • 2.1.234: /goal disarms itself with a notice when the turn dies on revoked auth, exhausted credits, or context overflow. It does not stay armed and retry a dead session.
    • 2.1.234: when background tasks keep a goal waiting 30+ minutes, Claude checks in on them instead of waiting forever (CLAUDE_CODE_GOAL_CHECKIN_MINUTES=0 to opt out).

    Round 19 already noted Synara's blocked state and user-queue priority. Add: (1) disarm on unrecoverable errors, (2) a bounded check-in so a goal waiting on a hung child does not look "working" for an hour. Pairs with #462 (quota-wait is a recoverable wait; revoked auth is not).

  7. added
    plan:doing
    plan:done
    and removed
    plan:todo
    plan:doing
    on Oct 9, 2026
  8. currentbits commented on Oct 9, 2026

    @currentbits
    OwnerAuthor

    Duplicate of #1531 (/goal end to end, with goal status). Fold bounded auto-continue into that item. Closing in the 2026-10-09 board cleanup (#1532).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementplan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions