Repository navigation
docs(sessions): record the sessions switch as a feature-flag chapter - #996
Merged
JSdotNet merged 1 commit intoOct 5, 2026
Conversation
The Turn the area off feature described one switch for the Sessions area that the devbook never recorded. Add a "Sessions area" feature-flag chapter to sessions/context.md (key sessions, DEV, default on) naming what it withdraws - the Home segment and list, the list_sessions and delivery-surface MCP tools, and the agent-activity hours - and point the feature's meta block at it. Refs #881 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
JSdotNet
marked this pull request as ready for review
October 5, 2026 19:51
JSdotNet
enabled auto-merge
October 5, 2026 22:24
JSdotNet
deleted the
schedule/issue-sweep/2026-10-05/881-sessions-turn-the-area-off-drift
branch
October 5, 2026 22:31
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.
Closes #881
What changed
I fixed the drift in issue #881 by editing the devbook only. The code on main is right and the chapter was behind. No source or test file changed. Nothing was committed.
D:/iswp/881-sessions-turn-the-area-off-drift/.devbook/domain/sessions/context.mdnow has a## Sessions areachapter after the boundary prose. Its meta block isstatus: draft,type: feature-flag,key: sessions,default: on, withrelatedpointing atfeatures.md#turn-the-area-off. The prose follows the Dashboard, Inbox pane and System tools chapters. It says:list_sessionsand the eight delivery-surface operations from the MCP endpoint, and stops the dashboard's hours worked and the roadmap's actual hours from reading agent activity;DEV;SessionFeatures.Sessionsin the Sessions module, and its string has not changed since it lived onDevPcFeatures;AppFeatures.cs, and the person's choice is kept infeatures.json;DEV.D:/iswp/881-sessions-turn-the-area-off-drift/.devbook/domain/sessions/features.md, only the## Turn the area offsection changed:feature-flag: .devbook/domain/sessions/context.md#sessions-area;tests:list naming the six existing tests that prove the switch-off behaviour;Verification:
build.mjs --checkexited 0 with 314 warnings.check-metadata.mjsexited 0 with 0 blocking and 287 advisory findings.feature-flagreference added,build.mjs --checkexited 1 with the expected error: thefeature-flagreference tocontext.md#sessions-areadoes not resolve.build.mjs --checkexited 0 with the same 314 warnings; comparing the warnings with line numbers ignored showed no difference.check-metadata.mjsoutput was identical to the baseline.DevbookBuilderParityTestspassed (2 of 2).Acceptance criteria
node .devbook/_tools/devbook-meta/build.mjs --check (failed on the unresolved feature-flag reference before the chapter was added, passes after)node .devbook/_tools/devbook-meta/build.mjs --check (exit 0, warnings identical to baseline) and node tools/devbook/check-metadata.mjs (exit 0, output identical to baseline); DevbookBuilderParityTests also passVerification
cd "D:/iswp/881-sessions-turn-the-area-off-drift" && dotnet build Backlog.sln && dotnet test Backlog.slnReview
What could not be proved
default: on, because the catalog entry has noEnabledByDefault: false.; Assumed the flag chapter is headed## Sessions(slugsessions), following the Dashboard precedent of naming it after the area.; Assumed the chapter carriesstatus: draftlike the sibling DEV flag chapters, since the key is still Status Dev.; Whether to also name in prose that the switch stops dashboard hours worked and roadmap actual hours from reading agent activity. These are real effects in the code that the issue does not list; assumed they may go in the flag chapter's prose without widening the change.; Whether to add atests:field to the feature and flag chapters. Assumed yes, using the HomeWorkspaceSurfaceTests and McpEndpointGateTests names, since the metadata rules allow it on feature-flag and feature chapters.; Thepull-requestskey (SessionFeatures.PullRequests, default off) also has no switch chapter. Left out of scope because the issue does not name it; it could be its own drift issue.; The chapter was behind and the code is right, so the verdict is code-ahead and no source change was made.; I headed the flag chapter## Sessions area(slugsessions-area) instead of## Sessions, so its slug cannot collide with the file's# Sessionstitle.; I gave the flag chapterstatus: draft, matching the precedent flag chapters (Dashboard, Inbox pane, System tools). The existingTurn the area offmeta block has no status, so I did not add one there.; The retirement condition, 'when the Sessions area leaves DEV', copies the Dashboard and System tools precedents. No code or ADR states when this flag is retired.; The separatepull-requestskey (SessionFeatures.PullRequests) also has no flag chapter. It is out of scope and was left alone.; Following the sweep's instructions, I did not invoke delivery:flow-spec in this subagent; the session running the sweep owns the flow and the git side effects.Assumptions
default: on, because the catalog entry has noEnabledByDefault: false.## Sessions(slugsessions), following the Dashboard precedent of naming it after the area.status: draftlike the sibling DEV flag chapters, since the key is still Status Dev.tests:field to the feature and flag chapters. Assumed yes, using the HomeWorkspaceSurfaceTests and McpEndpointGateTests names, since the metadata rules allow it on feature-flag and feature chapters.pull-requestskey (SessionFeatures.PullRequests, default off) also has no switch chapter. Left out of scope because the issue does not name it; it could be its own drift issue.## Sessions area(slugsessions-area) instead of## Sessions, so its slug cannot collide with the file's# Sessionstitle.status: draft, matching the precedent flag chapters (Dashboard, Inbox pane, System tools). The existingTurn the area offmeta block has no status, so I did not add one there.pull-requestskey (SessionFeatures.PullRequests) also has no flag chapter. It is out of scope and was left alone.Opened as a draft by an unattended run of
delivery-schedule:schedule-issue-sweep(2026-10-05).🤖 Generated with Claude Code