Repository navigation
Department notebook: each department remembers what it learned - #248
Merged
Merged
Conversation
…arned them Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
DecisionEntry.dept (nil = company-wide), stamped through normalize and merge. Identity stays scope|topic: one truth per topic, so a department re-recording another's topic replaces it and takes the tag. Cap 30 -> 60 now that eight departments share the store (~42 KB of 1 MiB). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
remember_fact stamps the turn's deptKey (the one the request was sent with, threaded through handleDoneAction, never re-derived); approval extraction stamps the deliverable's department, which it already resolved for the prompt and then dropped. Room lock-in stays company-wide. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Up to 8 decisions tagged with the department, newest first, under '<Dept> has noted:'. They leave the general decisions block so none is said twice; older ones stay there rather than vanish. Memory off composes neither. The desk reads only the applicable decisions compose is handed, so another project's note cannot reach it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…entity Review findings on the notebook branch: - Moving a department's own notes to its desk took them out from under the decisions block's 'never contradict' line, so the one fact Finance was not told to stand by was Finance's own. The desk now carries it. - Excluding desk notes by identity also hid a second entry with the same identity (assignDecision can create one) from the prompt entirely. The exclusion now matches the entries themselves. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Collaborator
Author
|
Checked in the running app at
Side observation, not from this PR: the reply put the 8-month deadline at "June 2026", which should be ~June 2027. The model seems not to know today's date in Ask. |
This was referenced Oct 9, 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.
Stacked on #247. Merge that first; this PR's base will then move to
main.What
Each department now remembers what it learned.
company.decisionsalready was the company's notebook:remember_fact, approval extraction, room lock-in, and the Memory panel. It just didn't know which department a fact belonged to.DecisionEntry.dept(nil means company-wide). Identity staysscope|topic, so there is one truth per topic: when Sales re-records the price, it replaces Finance's and takes the tag. The cap goes from 30 to 60 because eight departments now share it (~42 KB of the 1 MiB doc).remember_factuses the turn'sdeptKey, the same one sent on the request;<Dept> has noted:, which is up to 8 of the department's own decisions, newest first. It carries the same "never contradict" instruction as the decisions block, and those entries aren't repeated there. With memory off, neither block is composed.runway · Finance · Codepet.Spec:
docs/superpowers/specs/2026-10-09-department-notebook-design.md· Plan:docs/superpowers/plans/2026-10-09-department-notebook.mdVerified
DepartmentNotebookTests: the department is stamped, carried through normalize, and re-tagged when another department re-records; old docs withoutdeptround-trip unchanged; the cap is 60.CompanyStoreChatTests,CompanyStoreRunTaskTests,ApprovalParityTests,CompanyStoreChatRunTests,VirtualCompanyDecisionTests,MemoryToggleTests. The one host restart is the known 26.2 isolated-deinit crash.runway · Finance.Deferred
🤖 Generated with Claude Code