Repository navigation
fix(glados): make work board visible and clearable - #74
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
An empty GLaDOS project scope hid existing work from
work_readeven though clients still rendered the board, and the only cleanup path rotated the home thread. A deeper authority audit also found that a scoped GLaDOS could see only part of the board whileclear-boardarchived the entire environment.This keeps existing board work discoverable when project scope is empty without granting implementation or dispatch authority, and adds a typed
clear-boardoperation for elected GLaDOS at the user’s direction. Each clear durably snapshots the exact visible task, lead, and message IDs: a direct user clear targets the full board, while GLaDOS clears only its visible projection. Only those writers are stopped and drained; unrelated scoped work remains active, its authority generation is safely rebased, and its reports remain usable. The operation preserves remote ownership fences, coordinator identity, the journal, threads, worktrees, recipes, source configuration, idempotency, and revision/generation guards.Durable task tombstones plus journal-level message idempotency reject delayed or replayed messages for archived tasks while allowing fresh coordinator messages. Timed-out drains remain pending and retry safely. Focused coverage includes empty scope (including old leads), active and stopped tasks/messages, paused role, unauthorized actors, visible board after clear, remote writers, scoped non-target writers, timeout/retry, and late results/messages.
Verification:
PATH=/home/will/.nvm/versions/node/v24.19.0/bin:$PATH NODE_ENV=test node_modules/.bin/vp test run apps/server/src/pitboss/Work.test.ts apps/server/src/pitboss/WorkRuntime.test.ts apps/server/src/pitboss/WorkStore.test.ts packages/contracts/src/pitboss.test.ts apps/web/src/components/pitboss/workView.test.ts— 5 files, 104 tests passedprefer-array-findwarning inWorkRuntime.test.tsgit diff --checkpassedNo screenshots: this changes work contracts and server projection/authority behavior, with no visual layout change. No live database, browser session, server restart, merge, or deployment was performed.
Implemented by gpt-5.6-sol through the Codex harness.