Skip to content
This repository was archived by the owner on Nov 6, 2026. It is now read-only.
This repository was archived by the owner on Nov 6, 2026. It is now read-only.

[factory] Canary — Fix B flush-failure fatal invariant (cloud#3215) #417

Open

Description

@kjgbot

Canary — proves Fix B (cloud#3215) holds under a real flush failure

RelayfileFlushError should now fail the step outright (was: silent stall lasting ~68 min in readinessReconcile.state: stalled with no lastError). This canary triggers a deliberate flush failure to prove:

  • The step lands in stepStatus: failed with lastError: RelayfileFlushError.
  • The error field on step metadata reads relayfile flush failed after command exit 0: ....
  • No 68-minute readinessReconcile stall — the sweep either retries or reports failed within one cycle.

Reproduction (write past the ~10 MiB flush cap)

Run this as a deterministic step so the flush is invoked at end-of-step:

# Deterministic push over the ~10 MiB flush body cap.
# Provider mount is at $RELAYFILE_MOUNT (mounts under /relayfile).
mkdir -p "$RELAYFILE_MOUNT/factory/canary/flush-oversize/$(date -u +%s)"
cd "$RELAYFILE_MOUNT/factory/canary/flush-oversize/$(date -u +%s)"
# 12 MiB of incompressible content — safely past the 10551296-byte cap.
head -c 12582912 /dev/urandom > payload.bin
ls -la payload.bin

Cloud responds with http 413 payload_too_large: <bytes> > 10551296, flushRelayfileMount rejects, the executor now throws RelayfileFlushError (Fix B), and the step is reported failed.

Definition of done

  • /evidence payload for this step shows:
    • stepStatus: failed
    • lastError.type: RelayfileFlushError (or the message contains relayfile flush failed after command exit 0)
    • stepStatus.error includes payload_too_large or Failed to flush
  • No readinessReconcile.state: stalled with lastError: null for this run.
  • Sweep observes the failure within one cycle, not after ~68 min.
  • Canary result posted to #engineering AND factory#372.

Labels: factory, factory-ready, agent:single

Activity

  1. added
    factory
    factory-ready
    agent:single
    on Aug 30, 2026
  2. added
    factory
    and removed
    factory
    on Sep 3, 2026
  3. khaliqgant commented on Sep 4, 2026

    @khaliqgant
    Member

    Factory human input request

    Agent: ar-417-impl-factory
    Issue: 417
    Question: Can this canary be restarted in a worker with RELAYFILE_MOUNT set to the real provider mount under /relayfile so the required 12 MiB end-of-step flush failure can be triggered and observed?

  4. khaliqgant commented on Sep 4, 2026

    @khaliqgant
    Member

    Factory human input request

    Agent: ar-417-impl-factory
    Issue: 417
    Question: The required one-time factory.lifecycle completion invocation returned action_not_found; can Factory register/restore that action and re-run completion handling for pushed branch factory/417-agentworkforce-factory-4105afa5 at 75e433a?

  5. khaliqgant commented on Sep 4, 2026

    @khaliqgant
    Member

    Factory human input request

    Agent: ar-417-impl-factory
    Issue: 417
    Question: The required factory.lifecycle action is not registered in Agent Relay (the single invocation returned action_not_found); can Factory accept or reissue the completion signal for commit 89b2be54d6d1711e410b9402c080b132b3a18e05?

  6. khaliqgant commented on Sep 4, 2026

    @khaliqgant
    Member

    Factory human input request

    Agent: ar-417-impl-factory
    Issue: 417
    Question: The required one-time factory.lifecycle completion invocation is unavailable (Tool invoke_action not found); can Factory restore or accept the completion signal for pushed commit 89b2be54d6d1711e410b9402c080b132b3a18e05?

  7. khaliqgant commented on Sep 4, 2026

    @khaliqgant
    Member

    Factory human input request

    Agent: ar-417-impl-factory
    Issue: 417
    Question: Please restore the factory.lifecycle Agent Relay action for this workspace and confirm how completion should be retried, since the required one-time invoke_action call returned Tool invoke_action not found.

  8. khaliqgant commented on Sep 4, 2026

    @khaliqgant
    Member

    Factory human input request

    Agent: ar-417-impl-factory
    Issue: 417
    Question: Can the Factory lifecycle action factory.lifecycle be exposed to this Agent Relay session so I can send the required completed control signal?

  9. khaliqgant commented on Sep 5, 2026

    @khaliqgant
    Member

    Software Garden human input request

    Agent: ar-417-impl-factory
    Issue: 417
    Question: Can you re-dispatch this canary as a deterministic relayfile-mounted step with access to the deployed /evidence endpoint/token, since this assigned runtime has no $RELAYFILE_MOUNT or /relayfile mount and therefore cannot trigger or verify the required flush failure?

  10. khaliqgant commented on Sep 5, 2026

    @khaliqgant
    Member

    Software Garden human input request

    Agent: ar-417-impl-factory
    Issue: 417
    Question: Can you expose the Agent Relay invoke_action tool with the factory.lifecycle action so I can send the required durable completion signal?

  11. khaliqgant commented on Sep 5, 2026

    @khaliqgant
    Member

    Software Garden human input request

    Agent: ar-417-impl-factory
    Issue: 417
    Question: Can you expose the required Agent Relay invoke_action tool with the factory.lifecycle action for this workspace so completion can be recorded for pushed branch factory/417-agentworkforce-factory-f76fa137 at commit 8f2c6f657915d8fcf127bfe1a8e46baebcc149c1?

  12. khaliqgant commented on Sep 5, 2026

    @khaliqgant
    Member

    Software Garden human input request

    Agent: ar-417-impl-factory
    Issue: 417
    Question: Can this canary be re-dispatched on a worker that exposes the provider-mounted $RELAYFILE_MOUNT (under /relayfile), since the current worker has neither the environment variable nor the mount required to trigger and observe the deliberate end-of-step flush failure?

  13. khaliqgant commented on Sep 5, 2026

    @khaliqgant
    Member

    Software Garden human input request

    Agent: ar-417-impl-factory
    Issue: 417
    Question: Can you restore/register the factory.lifecycle Relay action for this workspace and re-dispatch completion? The implementation is already pushed at factory/417-agentworkforce-factory-f76fa137 commit 8f2c6f6, but Relay returned action_not_found for the required completion signal.

  14. khaliqgant commented on Sep 5, 2026

    @khaliqgant
    Member

    Software Garden human input request

    Agent: ar-417-impl-factory
    Issue: 417
    Question: Can you expose the required Agent Relay invoke_action tool with the factory.lifecycle action for this workspace so the validated implementation on branch factory/417-agentworkforce-factory-f76fa137 at commit 8f2c6f657915d8fcf127bfe1a8e46baebcc149c1 can send its durable completion signal?

  15. khaliqgant commented on Sep 6, 2026

    @khaliqgant
    Member

    Software Garden human input request

    Agent: ar-417-impl-factory
    Issue: 417
    Question: Can you register or restore the factory.lifecycle Agent Relay action for this workspace so the required completed lifecycle signal can be accepted?

  16. removed
    factory
    on Sep 6, 2026
  17. kjgbot commented on Sep 6, 2026

    @kjgbot
    ContributorAuthor

    Removed from the Software Garden dispatch pool (gate label dropped) — 2026-09-06.

    This canary was being re-dispatched in a loop. Each run provisioned a JIT sandbox, the agent reached a point where it needed human input, posted a question here, waited, and was reaped by the orphan reaper at the 300s placement timeout — then re-dispatched and asked again.

    Across the canary set that produced 34 unanswered human input requests in three days (this issue is one of seven), and 13 sandboxes provisioned in a single recent window. The questions had no reply path and no notification to a human, so none was ever answered.

    Nothing here says the work is wrong — the loop is a dispatch-lifecycle defect, not a defect in this issue. Re-add the gate label once agents park correctly on a question instead of spinning.

    The fix is in progress: on a human input request the agent should be released immediately, the issue parked in awaiting-clarification, the thread subscribed, and the work re-dispatched with the answer in context when a human replies.

  18. khaliqgant commented on Sep 6, 2026

    @khaliqgant
    Member

    Software Garden human input request

    Agent: ar-417-impl-factory
    Issue: 417
    Question: Can you register or restore the factory.lifecycle Agent Relay action for this workspace so the required completed lifecycle signal can be accepted for branch factory/417-agentworkforce-factory-1b89dd5f at remote tip 8a0aa3f9e776e5b8cf42aa623172b6ec2e128540?

  19. khaliqgant commented on Sep 6, 2026

    @khaliqgant
    Member

    Software Garden human input request

    Agent: ar-417-impl-factory
    Issue: 417
    Question: Can you restore the factory.lifecycle Agent Relay action and accept completion for remote branch factory/417-agentworkforce-factory-1b89dd5f at 8a0aa3f, since the required one-time invocation returned Action "factory.lifecycle" not found?

  20. khaliqgant commented on Sep 6, 2026

    @khaliqgant
    Member

    Software Garden human input request

    Agent: ar-417-impl-factory
    Issue: 417
    Question: Please restore the required factory.lifecycle Relay action and completion routing; the implementation is pushed at be136e0bc0493bf53504aa9bbf071ba8fb73989b, but the mandated exactly-once invocation returned Action "factory.lifecycle" not found.

  21. khaliqgant commented on Sep 6, 2026

    @khaliqgant
    Member

    Software Garden human input request

    Agent: ar-417-impl-factory
    Issue: 417
    Question: Please restore or accept the required factory.lifecycle completion action for pushed branch factory/417-agentworkforce-factory-1b89dd5f at f2c90cb16b21c38f25562818cacce4d0202ef68e; the mandated exactly-once invocation returned Tool invoke_action not found.

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

    agent:singlefactoryfactory-readygarden:in-progress

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions