Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

9.3 KB
Raw Blame
version: 1
capability: message_delivery
observations:
  - id: OBS-MESSAGE-DELIVERY-010
    source: avibe_agent_phase1_e2e_acceptance
    related_scenarios:
      - MESSAGE-DELIVERY-322
    summary: After a restart, the interruption notice asked the user to resend a command recovery had already handed to a Watch.
    previous_assumption: An interrupted Turn always lost its work, so a resend or Retry was the safe next step.
    observed_behavior: The Watch finished and reported back, while the notice and its Retry offered to run the side effects again.
    required_updates:
      - run the Avibe Agent's tool-call settlement before Turn recovery at startup (T2 before T4)
      - branch the shared restart notice on the hand-over record T2 commits, not on text
      - name the Watch and suppress Retry in both the Web action and the server admission
  - id: OBS-MESSAGE-DELIVERY-009
    source: issue_2049_and_hermetic_native_reproduction
    related_scenarios:
      - MESSAGE-DELIVERY-031
      - MESSAGE-DELIVERY-032
      - MESSAGE-DELIVERY-033
      - MESSAGE-DELIVERY-034
    summary: Large Codex resume responses caused unlimited prewrite retries and collateral shared-process restarts.
    previous_assumption: A no-write receipt proved that another automatic retry would succeed and every connection error justified process replacement.
    observed_behavior: Resume exceeded the 128 MiB stdout frame limit, lost its failure identity, and repeatedly restarted other accepted turns in the same cwd.
    required_updates:
      - exclude unused response turns without truncating stored or model-visible context
      - retain typed framing failures and hold definite resume failures for explicit recovery
      - bound generic prewrite attempts using durable history and preserve original queued input
      - do not spend or reset that budget on concurrency refusal
      - gate failure replacement on existing durable ownership and forbid ambiguous input replay
      - project the existing explicit-retry hold to CLI and the Web queue strip
  - id: OBS-MESSAGE-DELIVERY-008
    source: user_feedback_and_read_only_runtime_diagnosis
    related_scenarios:
      - MESSAGE-DELIVERY-320
    summary: Harness-owned restart notifications still lacked Retry after ordinary restart notifications gained it.
    previous_assumption: Preserving the existing Harness notification owner also preserved the failed-Turn action contract.
    observed_behavior: The accepted failed Turn and owed notice were durably linked in one Session, but the replay emitter omitted turn_id and historical Activity provenance.
    required_updates:
      - carry the owed notice's authoritative Turn only to the Run's own explicit Session
      - mark replayed notifications as historical without supplying a live context token
      - reuse Web Retry admission and one continue Delivery without rerunning Tasks or Watches
      - retain unlinked and cross-Session fallback reports as informational notices
      - cover real Run settlement, delivery, persistence, Web/controller admission, and existing frontend rendering
  - id: OBS-MESSAGE-DELIVERY-007
    source: user_feedback
    related_scenarios:
      - MESSAGE-DELIVERY-030
    summary: Service-restart interruption notifications lacked the Retry action offered for backend failures.
    previous_assumption: All accepted failed Turns emitted the shared failure-notice metadata.
    observed_behavior: Restart recovery settled the correct durable Turn but emitted an unlinked text-only notification.
    required_updates:
      - preserve the original Turn and backend through transport readiness and failed-send retries
      - emit the existing non-settling failure-notice contract rather than a second retry mechanism
      - mark already-ended recovery notices as replayed so delayed delivery cannot settle newer UI Activity or hide thinking
      - exercise recovery, real message persistence, Web admission, draft preservation, and duplicate clicks together
      - keep unknown acceptance, user Stop, restored live runtimes, and unlinked historical notices unchanged
  - id: OBS-MESSAGE-DELIVERY-006
    source: user_feedback
    related_scenarios:
      - MESSAGE-DELIVERY-026
      - MESSAGE-DELIVERY-027
      - MESSAGE-DELIVERY-028
    summary: A terminal backend-failure notice left Web users typing continue manually.
    previous_assumption: Backend-native retry was needed to offer a retry action.
    observed_behavior: The three backends share durable ordinary-input admission but no verified universal native retry protocol.
    required_updates:
      - bind a Retry action to the exact failure notice and Turn
      - continue accepted work through one canonical continue Delivery
      - reuse retained unwritten inputs and their attachments only with definitive negative delivery evidence
      - recheck ownership at reservation and queue drain and preserve the composer draft
  - id: OBS-MESSAGE-DELIVERY-001
    source: live_local_diagnosis
    related_scenarios:
      - MESSAGE-DELIVERY-005
    summary: Structured Run output fan-out injected Activity summaries and duplicate finals into the callback Session.
    previous_assumption: Every user-visible full-duplex Run output should become its own callback turn.
    observed_behavior: Callback Sessions received Claude Activity labels, command fragments, and both explicit and automatic copies of the final report.
    required_updates:
      - retain intermediate outputs only in the Run output ledger and originating Session
      - keep result_text terminal-only and enqueue one terminal callback
      - keep explicit child delivery independent from the parent's automatic callback
      - persist harness-originated prompts with a non-user author and message type
  - id: OBS-MESSAGE-DELIVERY-002
    source: live_local_diagnosis
    related_scenarios:
      - MESSAGE-DELIVERY-007
    summary: A terminal report containing the literal silent directive in inline Markdown code was truncated before persistence and callback delivery.
    previous_assumption: Silent directive parsing could safely inspect raw Markdown because literal examples would only appear in non-terminal helper output.
    observed_behavior: Run 6915939fd9e9, its persisted result message, and callback Run 8476952624d1 all stopped at the inline code opener and lost the substantial trailing report.
    required_updates:
      - recognize silent directives only outside Markdown inline and fenced code
      - preserve code examples byte-for-byte while retaining real silent-block semantics
      - prove the BaseAgent terminal path, message persistence, Run output ledger, and callback payload together
  - id: OBS-MESSAGE-DELIVERY-003
    source: live_local_diagnosis
    related_scenarios:
      - MESSAGE-DELIVERY-008
    summary: Queued directed child Runs were recorded as completed parent callbacks even though they had not started.
    previous_assumption: Any explicit child Run targeting the callback Session could satisfy the parent callback.
    observed_behavior: Parent callback ledgers inherited the child Run id while the child stayed queued, and direct cross-Session database inspection consumed an intermediate preamble instead.
    required_updates:
      - derive callback payloads only from the parent Run terminal result
      - keep directed child Runs as separate durable queue objects with their own callback policy
      - preserve intermediate assistant and tool activity in the target Session only
  - id: OBS-MESSAGE-DELIVERY-004
    source: live_local_diagnosis
    related_scenarios:
      - MESSAGE-DELIVERY-314
    summary: Four Agent Runs accepted into one callee Turn produced four identical callbacks to one callback Session.
    previous_assumption: Callback idempotency belonged to each parent Run and its source actor.
    observed_behavior: The four parent Runs settled from the same terminal Turn and each created a separate callback Run carrying the same terminal result.
    required_updates:
      - identify callback events by callee terminal Turn and callback Session
      - point every participating parent Run ledger to the shared callback Run
      - keep callbacks for different terminal Turns or callback Sessions independent
  - id: OBS-MESSAGE-DELIVERY-005
    source: live_local_diagnosis
    related_scenarios:
      - MESSAGE-DELIVERY-023
      - MESSAGE-DELIVERY-024
      - MESSAGE-DELIVERY-025
    summary: A prewrite Web Stop left the OpenCode runtime gate owned while the replacement input vanished from the recovered transcript.
    previous_assumption: The generic cancellation terminal tidy would always release the runtime gate quickly, and optimistic input rendering was sufficient until native acceptance.
    observed_behavior: The first Turn stopped 134 milliseconds after admission before native write; its asynchronous terminal tidy retained the gate, the next Turn waited before entering OpenCode, and its claimed Delivery was absent after Chat reloaded from materialized Messages.
    required_updates:
      - release the runtime gate synchronously when the durable prewrite Stop owns terminalization
      - prevent a send click burst from activating the destructive control rendered at the same pointer target
      - project the active claimed Delivery into Workbench tail and bootstrap reads until native acceptance materializes it
      - log Workbench Stop request and settlement boundaries for future source attribution