Skip to content

F121 — a kept session is owned by the conversation that started the run - #126

Merged
munchist merged 3 commits into
mainfrom
aflow/f121-session-owned-by-conversation
Oct 17, 2026
Merged

munchist merged 3 commits into
mainfrom
aflow/f121-session-owned-by-conversation

Conversation

@munchist

Copy link
Copy Markdown
Contributor

F121 (Plan 315 §6): a fix round commissioned from the same Helmsman conversation continues the coding agent's session instead of starting cold on a branch it has already analysed. The HarnessSession ownership key becomes the starting conversation's id, carried onto the step's context by the orchestrator as data; runs with no conversation keep run-id ownership so a workflow's own tasks still share a session. ownedSession and the logicalExecutionId retry path read the key; the refusal states the conversation rule with the endings sentence intact. Four tests pin the behaviour; the Commission Change skill text and the plan's F121 row match what is built. 20 files, applies clean against e154e5a.

- The ownership key of a HarnessSession is the id of the conversation that started the workflow run where there is one, carried onto the step's context by the orchestrator so the executor reads it as data and never infers it; a run started from no conversation keeps the run id as owner, so a workflow's own tasks still share a session
- ownedSession and the retry path by logicalExecutionId read that key; the refusal states the conversation rule and keeps the sentence listing how a kept session ends, including the failed re-preparation of the checkout
- Tests: a second run by the same conversation continues the session; a run from another conversation is refused with the same text a missing session gets; a run with no conversation falls back to run ownership; the existing retry-continues test still holds
- The Commission Change skill text and the plan's F121 row match what is built
…, the retry and poll stamping sites are tested, and the stale ownerRunId literal goes
@munchist
munchist merged commit cddc8f0 into main Oct 17, 2026
3 checks passed
@munchist
munchist deleted the aflow/f121-session-owned-by-conversation branch October 17, 2026 15:01
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