Skip to content

factory: org_workstreams takes archived (SIM D1) - #2810

Merged
santoshkumarradha merged 2 commits into
santosh/workfrom
f1/org-archived
Nov 18, 2026
Merged

santoshkumarradha merged 2 commits into
santosh/workfrom
f1/org-archived

Conversation

@santoshkumarradha

Copy link
Copy Markdown
Member

What

factory.org_workstreams now takes archived. With archived: true the engine sends GET /v1/workstreams?archived=1, so the server answers its archived rows as well; without it the request is unchanged, so every shared list reader keeps seeing live workstreams only. New hello word org_workstreams_archived tells the desk it may ask.

Why

SIM D1: an organization's archived workstream disappeared after a refresh. The server already honours ?archived=1; the engine never sent it.

Proof

  • go test ./cmd/codeaf -run 'TestOrgWorkstreams|TestOrgTeams' (new TestOrgWorkstreamsArchivedAsksTheServer; the fake org server now leaves archived rows out unless asked, as the real one does)
  • go test ./internal/appwire (PROTOCOL.md contract row updated)
  • make pr-ready BASE=origin/santosh/work (flocked) — posted below

Manual: work-home-and-overview.md gains "Find an archived workstream again — Archived list, Bring back"; workstream-people-and-rules.md states the new Archive question wording.

Desk half: Agent-Field/codeaf-desk (F1).

🤖 Generated with Claude Code

santoshkumarradha and others added 2 commits November 18, 2026 03:37
…n be found again

factory.org_workstreams forwarded GET /v1/workstreams without ?archived=1,
so the server never answered an archived row and the desk's Archived list
and its count lived only in its own cache (SIM D1). archived:true now asks
for them; the plain list every other reader uses is unchanged. Hello word
org_workstreams_archived. The manual says where the archive is and that
Archive asks first while an agent's task is running or paused on an answer.

Assisted-by: CodeAF
Co-Authored-By: CodeAF <[email protected]>
Assisted-by: CodeAF
Co-Authored-By: CodeAF <[email protected]>
@santoshkumarradha

Copy link
Copy Markdown
Member Author

Local proof on 68c0020 (rebased on santosh/work): flock … make pr-ready BASE=origin/santosh/work exit 0 — build, vet, laws, changelog-check, touched cmd/codeaf (8 shards; one unrelated flake, TestAppCloseC3RealSessionContinuesOnceOnThePress, passed on rerun) and internal/appwire green. Focused: TestOrgWorkstreamsArchivedAsksTheServer ✓.

@santoshkumarradha
santoshkumarradha merged commit 194c2e9 into santosh/work Nov 18, 2026
5 of 6 checks passed
@santoshkumarradha
santoshkumarradha deleted the f1/org-archived branch November 18, 2026 08:51
ZeroPoint95 pushed a commit that referenced this pull request Nov 24, 2026
SIM D1: factory.org_workstreams takes archived (?archived=1), hello org_workstreams_archived; manual says where the archive is and when Archive asks.

Assisted-by: CodeAF
Co-Authored-By: CodeAF <[email protected]>
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