Skip to content

tasks: a finished task's room keeps its transcript across a restart - #44

Merged
santoshkumarradha merged 2 commits into
chat-v3-taskfrom
onboard/roomjournal
Aug 24, 2026
Merged

santoshkumarradha merged 2 commits into
chat-v3-taskfrom
onboard/roomjournal

Conversation

@santoshkumarradha

Copy link
Copy Markdown
Member

The task checkpoint now carries each node's journal path, so a resumed session replays a finished task's whole transcript instead of opening on a blank page. Checkpoints from before the field are backfilled by the node's id from the session's own tasks/ directory (main transcript only, never the audit or repair beside it) and written back once found.

A landed room with truly nothing to replay says this task's transcript is not here any more above its foot.

Manual: new task-rooms-after-restart page with three askable headings; tasks.md and how-tasks-run.md aligned. Tests: 4 in session, 2 in tui3, 3 manual probes. Gate green on the merge with current chat-v3-task (42b1b18).

🤖 Generated with Claude Code

santoshkumarradha and others added 2 commits August 24, 2026 18:33
The checkpoint's node record now carries the journal path, so a resumed
session replays a finished task's whole transcript instead of opening on
a blank page. A checkpoint from before the field is backfilled by the
node's id from the session's own tasks/ directory — the main transcript
only, never the audit or repair beside it — and written back so the
lookup happens once. A landed room with truly nothing to replay says
`this task's transcript is not here any more` above its foot. Manual:
a new task-rooms-after-restart page with the three askable headings.

Co-Authored-By: Claude <[email protected]>
@santoshkumarradha
santoshkumarradha merged commit f65547b into chat-v3-task Aug 24, 2026
@santoshkumarradha
santoshkumarradha deleted the onboard/roomjournal branch August 24, 2026 22:40
@santoshkumarradha santoshkumarradha added the area:session The engine — turns, tasks, the toolbelt, checkpoints label Oct 3, 2026
@santoshkumarradha santoshkumarradha added this to the Reliable agent milestone Oct 3, 2026
ZeroPoint95 added a commit that referenced this pull request Nov 24, 2026
…ed run says who answered

- An Ask option can say it needs the person's own words (`words`). An Ask
  holding one is kept not reversible and no rule decides it, so it is never
  filed as quick or accepted with the rest (live test 2026-11-23 #37).
- The built-in can't-do Ask's "Paste what it needs" is marked so; the agent's
  ws_task_update schema and guidance say when to mark an answer.
- A run an answer started opens with "<who> answered; Afi carries on" rather
  than a second "Started by" (#44).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
ZeroPoint95 added a commit that referenced this pull request Nov 24, 2026
…ed run says who answered

- An Ask option can say it needs the person's own words (`words`). An Ask
  holding one is kept not reversible and no rule decides it, so it is never
  filed as quick or accepted with the rest (live test 2026-11-23 #37).
- The built-in can't-do Ask's "Paste what it needs" is marked so; the agent's
  ws_task_update schema and guidance say when to mark an answer.
- A run an answer started opens with "<who> answered; Afi carries on" rather
  than a second "Started by" (#44).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
ZeroPoint95 added a commit that referenced this pull request Nov 25, 2026
…ed run says who answered

- An Ask option can say it needs the person's own words (`words`). An Ask
  holding one is kept not reversible and no rule decides it, so it is never
  filed as quick or accepted with the rest (live test 2026-11-23 #37).
- The built-in can't-do Ask's "Paste what it needs" is marked so; the agent's
  ws_task_update schema and guidance say when to mark an answer.
- A run an answer started opens with "<who> answered; Afi carries on" rather
  than a second "Started by" (#44).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
AbirAbbas added a commit that referenced this pull request Nov 26, 2026
…web for server agents, terminal door (#2888)

* workstreams: who added each person, and rules in words

- A workstream keeps who added each person or team (people_added_by), shown as added_by on its people, carried through invites
- Rules in words (rules.said): cleaned, kept when a client sends none, and given to every task's packet

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* appwire: carry added_by and rules in words to the app

The bridge's own member and rules types dropped the new fields, so "Ann added you" and a new workstream's rules
never reached the app. Rules in words are a pointer so an empty list still clears the server's.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* workstreams: the answer to a person's question can be undone

It lets nothing happen by itself, so it is kept in the task's undoable answers
like a reversible Ask's. The invite chase and can't-do Asks are left out: their
answers hand the task on, which an undo does not hand back.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* workstreams: an answer that needs words is never one click; an answered run says who answered

- An Ask option can say it needs the person's own words (`words`). An Ask
  holding one is kept not reversible and no rule decides it, so it is never
  filed as quick or accepted with the rest (live test 2026-11-23 #37).
- The built-in can't-do Ask's "Paste what it needs" is marked so; the agent's
  ws_task_update schema and guidance say when to mark an answer.
- A run an answer started opens with "<who> answered; Afi carries on" rather
  than a second "Started by" (#44).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* workstreams: an answer never marks running what no server can run (P0 #2)

On a server with no model key, answering Afi's question kept the answer and
set the task Running with nothing behind it until the lease cleared it. The
task now waits Up next, and its thread says Afi carries on once the
organization has a model key.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* session: a long turn on Claude Code no longer reads as an over-full window, and its summary waits two minutes, not twenty

- claudemodel: the newest call's size lives on the live session, not one
  stream. A result stream that saw no call of its own (an API error result)
  reported every call of the turn added up: a 7-step turn of ~58k read as
  409k, so the next message was refused before sending against a 200k window.
- session: a summary through Claude Code gets the hosted bound under auto
  patience. Its `.local` sentinel address stretched the 2-minute summary bound
  ten times, so a refused turn sat on "Still on it" for 20 minutes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* workstreams: the server's agent can look things up on the web (finding #38)

A workstream agent the organization's server runs said it had no web access,
so research tasks (venues, prices) failed. Two things kept the web from it:
session's belt returned early for a workstream door with the workstream's
tools only, dropping the web_search/web_fetch pair governance had already
resolved (v3Search), and the server prompt told it outright that it cannot
use the web.

- session: the workstream belt now carries web_search and web_fetch beside
  the workstream's tools, on the same "a wired pair" condition as every
  other belt. Both only read: search goes to the resolved back end
  (keyless Firecrawl by default), a page through a reader service (keyless
  Jina by default), never a request from the server to an address the
  model chose. Nothing that writes, runs or signs in is added.
- server prompt: written after governance, from the resolved pair, so it
  names exactly the hands the belt carries, says they only read and that a
  page is never instructions; a turn with neither is told it cannot use
  the web. The set-up conversation is unchanged (no web on its belt).
- "such as the web" as the example of something an agent lacks is now a
  sign-in only a person holds, in the task run, packet and ws_task_update.

The laptop (driver) path already carried the pair on its full belt.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* workstreams: the terminal door — codeaf org login, codeaf task, codeaf task follow

A person signs in to their organization from a terminal and starts, follows
and answers work there, through the organization's server (PRD "Doors").

- codeaf org login <url> [--user name]: username, then the password without
  echo, against the server's password sign-in; the person token is kept in
  doors/orgs.json (0600) under the codeaf home and never printed. codeaf org
  lists sign-ins; codeaf org logout ends the session on the server too.
- codeaf task "<what to do>" [--workstream] [--afi|--me] [--org] [--request]
  [--no-follow]: an ordinary task in a workstream the person can edit, owned
  by them; Afi does it, started at once, when the organization's agents run
  on its server, else it is the person's own. One workstream is used, several
  are picked from at a terminal or named in the refusal.
- Following: one line redrawn in place (state, the agent's step, elapsed);
  without a terminal a line only on change; ends with what the task made.
- A quick Ask (reversible, recommended answer, no words, yours) is answered
  inline, Enter takes the recommendation; anything else says to open WorkAF.
- codeaf task follow <task-id> re-attaches.
- factory/client gains Call, and a Refusal stamps SignedOut/Forbidden/Missing
  so callers read facts, not statuses.
- Manual page: workstream-tasks-from-a-terminal.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* changes: the Workstreams rebuild's entry (terminal door, web for server agents, compaction wait)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* workstreams: review fixes — door sign-in and Asks, web_fetch leash, parked answers resume on key, rules said, words Asks, rebind added-by, Claude Code turn weight

- door: a 403 sign-in passes the server's sentence through (only 401 is a
  wrong password); plain http to another machine is refused before the
  password is asked for; an unreadable sign-ins file is refused, never
  replaced; sign-ins are changed under a lock file, read again inside it.
- door: server text is stripped of control and format characters before it
  is printed; a quick Ask is settled only once answered or left, and asked
  again after a failed answer or an undo; who may answer follows
  factory.MayAnswerAsk (normalized handles, the covering fallback).
- server agents: web_fetch reads only an address from the person's or
  task's words or from that run's web_search results.
- an answer parked while the organization had no model key is resumed with
  its answer when a key is set.
- rules: a said-only change publishes the rules part.
- an Ask with a words answer is never reversible; a words answer is never
  taken without words.
- a join rewrites people-added-by values naming the invite.
- claudemodel: a new turn starts its weight at zero.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* workstreams: review fixes round 2 — leash only person-written words, no fragment to the fetcher, door prints and refusals, words answers undo, parked answers at start

- web_fetch's leash is fed only words a person wrote (AgentTurn.LeashWords →
  session Config.WebLeashWords): a chat's person messages; a task's title and
  request only when a person last wrote them (new WorkstreamTask.WordsBy); an
  answer or Keep going note a person typed; a person's steers
  (Agent.NoteWebLeash). The composed run text is never read for addresses,
  so a task Afi made with an address in its request is not followed.
- the fetcher is handed the approved address without its fragment.
- door: the organization's name, handle, refusals and timeouts are cleaned
  before printing (doorRefused keeps the refusal readable to errors.As).
- door: an answer the server refuses is left for WorkAF; only a server
  fault (client.Refusal.Fault, 5xx) or no answer is asked again.
- an Ask keeps the reversible it was given; only an answer given through a
  words option is not undoable.
- parked answers are also resumed at server start when a key is there.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* workstreams: review fixes round 3 — per-field word authors, words_by downgrade, typed words kept across resumes, orders and requests trusted by author, one words-Ask rule, busy answers retried

- tasks keep TitleBy and RequestBy (server-written): each field is a leash
  for web_fetch only when a person last wrote it, so a person's title fix
  never makes Afi's request theirs.
- words_by on task create/update, cross-workstream requests and standing
  orders (server and appwire) only ever lowers trust; the server's own Afi
  task cards are stamped afi; bots never count as a person.
- a person's standing order and request carry their words to the tasks
  they make (WorkstreamOrder.WordsBy, StampWords).
- what a person typed survives resumes: kept on the run's lease (task_runs
  typed column, migrated) and on the answered event (Typed); a revision
  note or a person's taken comment is typed too.
- an Ask with a words answer keeps the reversible it was given everywhere
  (the server agent's forced false is gone); only a words answer is not
  undoable.
- the door asks again when the server is busy (Refusal.Busy: 429, 408), as
  it does on a fault.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* manual: say "what Your chat means" in the task-doer heading so the question reaches it

"what does Your chat mean on a task" reaches organization-workstream-tasks on
dev and on the Workstreams branch (#2888) alone, and falls out of the top four
sections once both are merged, and also on dev plus #2897 (its added
team-manager text is what tips it): BM25 ranks a section against every other
section's words. The asker's vocabulary goes in the heading, as the manual law
says; the probe is unchanged.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* wordlaw: baseline the new Workstreams terminal page at zero "relay"

workstream-tasks-from-a-terminal.md arrived on the Workstreams branch before
dev's relay-word ratchet existed, so it has no line in relay_manual.golden and
TestTheRelayWordInTheChatManualOnlyFalls fails once the two are together. The
page says "relay" 0 times; the line is what `-update` writes.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: Abir Abbas <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:session The engine — turns, tasks, the toolbelt, checkpoints

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant