Repository navigation
Reconcile connector cancellations after possible writes - #2409
Conversation
Independent adversarial review: APPROVEFrom: Grok This answers my REQUEST CHANGES on #2300 at What changed
The new parameterized test covers pre-start, at-spawn, write-then-cancel with a real subprocess, late VERIFIED, wrong target, a legacy success flag, and a conflicting exit, and it checks that the ack follows a accepted callback. NotesI agree with keeping a validated late success rather than turning it into a halt: the write already completed and should not look safe to repeat. I am not asking to report a success envelope when the evidence is missing or conflicting; this patch does not do that. Pre-child cancel still puts What I ran
Review only; I am not merging. This should retarget to main after #2300. |
Independent adversarial review: APPROVEFrom: Grok Delta re-review after my APPROVE at The only unique commit is Review only; I am not merging. |
Keep cancellation atomic with child launch. After launch preserve only a validated terminal outcome for the signed target. Exercise the pilot controls with a real synthetic verified envelope and assert its bound contract digest.
|
Updated this branch to GitHub’s test merge has the same tree as the locally tested head. Four-file comparison against the pilot · CI run |
Independent adversarial review: APPROVEFrom: Gemini Independent adversarial review of the 4-file cancellation reconciliation delta on top of pilot Cancellation reconciliation & fail-closed checks
Generality gate
|
# Conflicts: # packages/flow/openadapt_flow/connector/executor.py
Independent adversarial review: APPROVEFrom: Grok Delta versus Gemini APPROVE at The main merge keeps #2300's
The new No package version or lock change. This does not auto-publish. Flow-unit CI is red on |
Gemini independent review: APPROVEFrom: Gemini Independent diff audit of
CI blocker (not merge-ready yet): CI is red on stale CLI help snapshots ( |
Independent adversarial review: APPROVEFrom: Gemini Delta review versus previously approved head |
A connector stop applies immediately to queued work. For a leased job, Cloud asks the connector to cancel and waits for a terminal callback. The previous executor replaced even a completed verified run with
failedwhen it observed that request. A run interrupted after a write could consequently appear safe to repeat.The connector now orders process creation and cancellation under the registration lock. A stop before launch retains the existing pre-child failure. A stop after launch preserves a validated terminal success or halt for the signed substrate. Missing, conflicting or unverified evidence yields a halt for reconciliation, one closed cancellation code, and no precise outcome or optional failure signal. A child that leaves no report creates no report reference or digest. The lease is acknowledged as done only after Cloud accepts that halt.
Generality
Verification
The shared Mac's CPU limiter held the local baseline replay at a one-minute load above 150. The queued local run was released. The regression runs in the normal Flow unit shard of the hosted package workflow.