Skip to content

Opening a job doesn't count as a person's touch - #2312

Merged
santoshkumarradha merged 25 commits into
app/v3from
c52/read-no-touch
Nov 3, 2026
Merged

santoshkumarradha merged 25 commits into
app/v3from
c52/read-no-touch

Conversation

@santoshkumarradha

Copy link
Copy Markdown
Member

What changes

Opening a job counted as a person's touch. factory.job_chats made the job's manager conversation, which marked the job as worked. So anyone who only looked at an imported issue switched off closed-issue handling for it.

  1. factory.job_chats now writes nothing. It returns the conversations already on the job. A job with no manager returns agent: "" and its existing steps, or steps: [].
  2. New factory.job_send, announced in hello as factory.job_send, takes factory, job, text and optional client_id. It makes the manager on the first send and returns agent and turn.
  3. A person's accepted message counts as a touch, through factory.job_send or agents.send.
  4. Making a conversation records no touch. An automatic brief write needs a manager, and it leaves the job untouched.
  5. System activity no longer marks a job as worked: a system-made manager conversation, briefs, and money spent on them.

Reads that do maintenance, such as reaping expired leases on a snapshot, are unchanged.

Validation

  • Red first through factory.job_chats: unworked=false touched=true version=3 want=1.
  • Red first for a machine-written brief, TestFactoryAutomaticBriefDoesNotTouchJob: unworked=false PersonTouched=true.
  • A person's first send and a later agents.send both still touch the job.
  • cmd/codeaf, internal/factory, internal/manual, go vet: pass.
  • No live model run.

Limits

  • A desktop without factory.job_send shows no manager chat or composer for a job with no manager, until it renders a composer for agent: "".
  • Jobs already marked by an earlier page view keep the mark. History can't separate viewing from work, so nothing is migrated.

🤖 Generated with Claude Code

santoshkumarradha and others added 23 commits November 3, 2026 07:27
FactoryJobChats called the mutating Talk seam; return the stored chats instead and expose first-send creation as a write.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
HTTP snapshots must not settle lifecycle transitions or reap leases. Keep recovery on writes, worker pulls and durable deadlines.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Existing managers bypass Talk creation; record personal ownership after accepted sends. Add HTTP regressions for publication and stop-choice checks.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Publication checks read the row without Update; stop-choice reads no longer renew leases. Startup and durable deadlines own settlement, and writes settle after version checks. Adjust lifecycle tests to explicitly restart rather than rely on browsing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Store.Get and List lazily repaired repository identities by writing new revisions. Normalize their returned values and leave persistence to actual writes. Keep lifecycle expiry on writes after version checks and avoid an extra idle-pull listing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Existing tests expected GET to settle merges, expire workers and persist identity repair. Trigger restart maintenance explicitly and assert normalization persists only on writes. Record touches at actual message acceptance, including saved status messages.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Keep lifecycle and storage maintenance unchanged. Advertise first-send capability and document older desktop incompatibility. Retain fixture manager creation because those tests require a conversation, independently of maintenance.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The full command suite caught brief writes relying on job_chats to create their manager. Preserve that write behavior without restoring read touches.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@santoshkumarradha
santoshkumarradha marked this pull request as ready for review November 3, 2026 15:25
@santoshkumarradha
santoshkumarradha merged commit 2a3c2eb into app/v3 Nov 3, 2026
@santoshkumarradha
santoshkumarradha deleted the c52/read-no-touch branch November 3, 2026 15:25
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