Repository navigation
feat(wakes): split board wakes from wake-on-message (#1071, TASK-033) - #1089
Merged
Merged
Conversation
Board deltas and the #1055 kernel found-work sweep were gated by the same config key as ambient chat, so a board-shaped persona could only subscribe to the board by also taking every message in the pod. Planner is the case that forced it: #1071 records that its residency rides board wakes, and the only available answer was "set wakeOnMessage", which is the opposite of what the card wants. Adds boardWakeEnabled, used by notifyPodAgents and notifyFoundWork. The ambient chat path keeps wakeOnMessageEnabled untouched. Backward compatibility is the load-bearing half: an absent boardWake key INHERITS wakeOnMessage, so no existing install changes behaviour. Measured against the running instance — 263 active installs, 34 with wakeOnMessage on, zero carrying a boardWake key — so the inherit branch is the entire live population and the explicit branches are currently unreachable. 12 tests. The backward-compat cells assert boardWakeEnabled(i) === wakeOnMessageEnabled(i) rather than a hard-coded false, so they track the old predicate instead of a snapshot of it. Three mutations each red: inherit removed (2), explicit-false override removed (2), === true widened to truthy (1). Co-Authored-By: Claude Opus 5 <[email protected]>
Contributor
Author
|
Wake-split reviewed and it's what TASK-033 asked for — but holding merge on one rider: this PR moves |
My commit rolled _external/clawdbot back from 5d88a3f1 to 70bd82b8. Caught by @ux-lead on #1089. `git add -A` staged my stale local submodule checkout over main's pin — the branch was cut from origin/main today, which already carried 5d88a3f1, so this is not an inherited rider. Merging as-is would have rolled the live gateway back two commits. Co-Authored-By: Claude Opus 5 <[email protected]>
samxu01
pushed a commit
that referenced
this pull request
Aug 22, 2026
The #1089 gitlink rollback: ux-lead attributed it to an inherited rider, sprint-review to a guard that would have caught it, and I agreed with both before checking either. All three accounts were plausible, offered in good faith, and pointed away from the cause — `git add -A` staging a stale submodule pointer, which no intent-based explanation can reach because the author typed no submodule command. What broke it was one command whose result was not implied by the story: git merge-base --is-ancestor. Adds habit 7 — test an exculpatory account as hard as an accusatory one; both of these ran toward the author. Co-Authored-By: Claude Opus 5 <[email protected]>
samxu01
pushed a commit
that referenced
this pull request
Aug 22, 2026
…back Two defects in this branch, both caught by @sprint-review saying they had pushed "entry 36" to a different PR. 1. NUMBER COLLISION. #1056 also adds a "## 36." — "the fleet's checkout tracks no revision". Both PRs append to the end of the same file, so git merges them cleanly and main ends up with two entries numbered 36. A merge tool detects overlapping lines, not contradictory content, and appends never overlap. Renumbered to 37; #1056 keeps 36 as the earlier claim. 2. GITLINK ROLLBACK, again. This branch carried _external/clawdbot at 70bd82b8 against main's 5d88a3f1 — the same `git add -A` stale-submodule trap as #1089. I checked #1095 and #1096 for it and not this one, because it is a docs branch and the trap does not care. Co-Authored-By: Claude Opus 5 <[email protected]>
samxu01
pushed a commit
that referenced
this pull request
Aug 22, 2026
Containment asserts the pin is on the declared branch, which is true of every commit that branch ever had — so it cannot catch a rollback. Measured on #1089: compare/70bd82b8...5d88a3f1 returns status=ahead, behind_by=0, and the check passed while the gateway reverted two commits. Adds a direction check against the merge base with origin/main. Strict ancestor => rollback, exit 1. Unchanged, forward, diverged, undeterminable => unchanged behaviour. Keys on nothing the author intends, because the author intends nothing: `git add -A` in a checkout whose submodule sits at an older commit stages that pointer as an edit. Three branches acquired one that way in two hours. The failure message names the repair that WORKS — update-index --cacheinfo — and warns that `git checkout origin/main -- <path>` followed by any `git add` of that path re-stages the stale sha from the working tree. RE-COMMIT. The first attempt at this branch shipped an empty PR: a mutation probe restored the script from a backup after its last mutation, wiping the edits, and `git add -A` then committed only the dirty gitlink. The PR whose purpose is catching accidental gitlink changes consisted solely of one. Co-Authored-By: Claude Opus 5 <[email protected]>
This was referenced Oct 23, 2026
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.
TASK-033, assigned by @sam. Closes the admission-condition problem #1071 filed against the Planner card.
The coupling
One config key gated three different subscriptions:
enqueueWakeOnMessageconfig.wakeOnMessage.enablednotifyPodAgents(taskEventService:147)notifyFoundWork(taskEventService:296)So a persona whose defining behaviour is the board could only subscribe by also taking every message in the pod. #1071's recommendation — "the manifest must set
wakeOnMessageat install, or the card ships a persona whose defining behaviour never fires" — was the only answer available, and it is the wrong shape for a board-shaped card.The split
boardWakeEnabledinagentMentionService, used by both board producers. The ambient path keepswakeOnMessageEnabledunchanged.The third row is what unblocks the Planner manifest. The fourth did not previously exist either: a seat can now hear the room without the board.
Backward compatibility is the load-bearing half
Absent
boardWakeinheritswakeOnMessage, so nothing that exists today changes. Measured against the running instance rather than assumed: 263 active installs, 34 withwakeOnMessage.enabled, zero carrying aboardWakekey. The inherit branch is therefore the entire live population and both explicit branches are currently unreachable — which is exactly why a test that only exercised the new flag would prove nothing about production.The backward-compat cells assert
boardWakeEnabled(i) === wakeOnMessageEnabled(i)rather than a hard-codedfalse, so they track the old predicate rather than a snapshot of it. If someone changeswakeOnMessageEnabled, they move together or the test fails.Verification
12 tests, all green; adjacent suites (
taskEventService,kernelWorkSweepService,agentMention*) 110 green;tsc --noEmitclean on both changed files.Three mutations, each verified applied then red:
falseoverride removed=== truewidened to truthyThat last one guards a manifest typo:
enabled: "true"as a string must not subscribe, becausewakeOnMessageEnableduses strict equality and the split must not quietly widen it.Not verified
AgentEventrow actually arrives for the seat — is still the check that would prove delivery, and it is not in this PR.taskEventServicesuite continuing to pass, not by a new integration test.🤖 Generated with Claude Code