@theihtisham/agent-shadow-brain 7.1.4 → 7.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (275) hide show
  1. package/CHANGELOG.md +478 -462
  2. package/README.md +97 -24
  3. package/dist/brain/auto-update.js +1 -1
  4. package/dist/brain/auto-update.js.map +1 -1
  5. package/dist/brain/brain-portability.js +1 -1
  6. package/dist/brain/brain-portability.js.map +1 -1
  7. package/dist/brain/client-integrations.js +1 -1
  8. package/dist/brain/client-integrations.js.map +1 -1
  9. package/dist/brain/context-assembly.d.ts +10 -0
  10. package/dist/brain/context-assembly.d.ts.map +1 -1
  11. package/dist/brain/context-assembly.js +15 -6
  12. package/dist/brain/context-assembly.js.map +1 -1
  13. package/dist/brain/context-efficiency.d.ts +48 -0
  14. package/dist/brain/context-efficiency.d.ts.map +1 -0
  15. package/dist/brain/context-efficiency.js +34 -0
  16. package/dist/brain/context-efficiency.js.map +1 -0
  17. package/dist/brain/context-request.d.ts +1 -1
  18. package/dist/brain/context-request.d.ts.map +1 -1
  19. package/dist/brain/context-request.js +4 -2
  20. package/dist/brain/context-request.js.map +1 -1
  21. package/dist/brain/context-retrieval.d.ts +1 -1
  22. package/dist/brain/context-retrieval.d.ts.map +1 -1
  23. package/dist/brain/context-retrieval.js +2 -1
  24. package/dist/brain/context-retrieval.js.map +1 -1
  25. package/dist/brain/feature-settings.d.ts +5 -0
  26. package/dist/brain/feature-settings.d.ts.map +1 -1
  27. package/dist/brain/feature-settings.js +8 -2
  28. package/dist/brain/feature-settings.js.map +1 -1
  29. package/dist/brain/global-brain.d.ts +1 -1
  30. package/dist/brain/global-brain.d.ts.map +1 -1
  31. package/dist/brain/global-brain.js +1 -0
  32. package/dist/brain/global-brain.js.map +1 -1
  33. package/dist/brain/managed-project-skills.d.ts +48 -0
  34. package/dist/brain/managed-project-skills.d.ts.map +1 -0
  35. package/dist/brain/managed-project-skills.js +230 -0
  36. package/dist/brain/managed-project-skills.js.map +1 -0
  37. package/dist/brain/mcp-presence.d.ts +50 -0
  38. package/dist/brain/mcp-presence.d.ts.map +1 -0
  39. package/dist/brain/mcp-presence.js +214 -0
  40. package/dist/brain/mcp-presence.js.map +1 -0
  41. package/dist/brain/mcp-server.d.ts +12 -0
  42. package/dist/brain/mcp-server.d.ts.map +1 -1
  43. package/dist/brain/mcp-server.js +177 -31
  44. package/dist/brain/mcp-server.js.map +1 -1
  45. package/dist/brain/mcp-stdio.d.ts +1 -1
  46. package/dist/brain/mcp-stdio.d.ts.map +1 -1
  47. package/dist/brain/mcp-stdio.js +19 -1
  48. package/dist/brain/mcp-stdio.js.map +1 -1
  49. package/dist/brain/memory-annotations.d.ts +2 -0
  50. package/dist/brain/memory-annotations.d.ts.map +1 -1
  51. package/dist/brain/memory-annotations.js +13 -0
  52. package/dist/brain/memory-annotations.js.map +1 -1
  53. package/dist/brain/memory-inspection.d.ts +1 -0
  54. package/dist/brain/memory-inspection.d.ts.map +1 -1
  55. package/dist/brain/memory-inspection.js +1 -1
  56. package/dist/brain/memory-inspection.js.map +1 -1
  57. package/dist/brain/memory-mcp-content.d.ts +4 -2
  58. package/dist/brain/memory-mcp-content.d.ts.map +1 -1
  59. package/dist/brain/memory-mcp-content.js +20 -16
  60. package/dist/brain/memory-mcp-content.js.map +1 -1
  61. package/dist/brain/model-registry.d.ts +4 -5
  62. package/dist/brain/model-registry.d.ts.map +1 -1
  63. package/dist/brain/model-registry.js +22 -207
  64. package/dist/brain/model-registry.js.map +1 -1
  65. package/dist/brain/model-usage.d.ts +66 -0
  66. package/dist/brain/model-usage.d.ts.map +1 -0
  67. package/dist/brain/model-usage.js +246 -0
  68. package/dist/brain/model-usage.js.map +1 -0
  69. package/dist/brain/native-codex.d.ts +105 -0
  70. package/dist/brain/native-codex.d.ts.map +1 -0
  71. package/dist/brain/native-codex.js +292 -0
  72. package/dist/brain/native-codex.js.map +1 -0
  73. package/dist/brain/native-session-import.d.ts +56 -0
  74. package/dist/brain/native-session-import.d.ts.map +1 -0
  75. package/dist/brain/native-session-import.js +307 -0
  76. package/dist/brain/native-session-import.js.map +1 -0
  77. package/dist/brain/orchestrator.js +1 -1
  78. package/dist/brain/orchestrator.js.map +1 -1
  79. package/dist/brain/project-feedback.d.ts +1 -1
  80. package/dist/brain/project-feedback.d.ts.map +1 -1
  81. package/dist/brain/project-feedback.js +19 -8
  82. package/dist/brain/project-feedback.js.map +1 -1
  83. package/dist/brain/project-hub-contract.d.ts +6 -0
  84. package/dist/brain/project-hub-contract.d.ts.map +1 -1
  85. package/dist/brain/project-hub-contract.js +2 -1
  86. package/dist/brain/project-hub-contract.js.map +1 -1
  87. package/dist/brain/project-hub-mcp.d.ts +14 -0
  88. package/dist/brain/project-hub-mcp.d.ts.map +1 -1
  89. package/dist/brain/project-hub-mcp.js +6 -1
  90. package/dist/brain/project-hub-mcp.js.map +1 -1
  91. package/dist/brain/project-hub-store.d.ts +14 -2
  92. package/dist/brain/project-hub-store.d.ts.map +1 -1
  93. package/dist/brain/project-hub-store.js +70 -2
  94. package/dist/brain/project-hub-store.js.map +1 -1
  95. package/dist/brain/project-hub.d.ts +5 -0
  96. package/dist/brain/project-hub.d.ts.map +1 -1
  97. package/dist/brain/project-hub.js +23 -1
  98. package/dist/brain/project-hub.js.map +1 -1
  99. package/dist/brain/project-kit.d.ts +10 -0
  100. package/dist/brain/project-kit.d.ts.map +1 -1
  101. package/dist/brain/project-kit.js +80 -16
  102. package/dist/brain/project-kit.js.map +1 -1
  103. package/dist/brain/project-policy-delivery.d.ts +8 -0
  104. package/dist/brain/project-policy-delivery.d.ts.map +1 -0
  105. package/dist/brain/project-policy-delivery.js +38 -0
  106. package/dist/brain/project-policy-delivery.js.map +1 -0
  107. package/dist/brain/project-policy.d.ts +88 -0
  108. package/dist/brain/project-policy.d.ts.map +1 -0
  109. package/dist/brain/project-policy.js +267 -0
  110. package/dist/brain/project-policy.js.map +1 -0
  111. package/dist/brain/project-session-contract.d.ts +180 -0
  112. package/dist/brain/project-session-contract.d.ts.map +1 -0
  113. package/dist/brain/project-session-contract.js +50 -0
  114. package/dist/brain/project-session-contract.js.map +1 -0
  115. package/dist/brain/project-session-mcp.d.ts +145 -0
  116. package/dist/brain/project-session-mcp.d.ts.map +1 -0
  117. package/dist/brain/project-session-mcp.js +58 -0
  118. package/dist/brain/project-session-mcp.js.map +1 -0
  119. package/dist/brain/project-sessions.d.ts +97 -0
  120. package/dist/brain/project-sessions.d.ts.map +1 -0
  121. package/dist/brain/project-sessions.js +223 -0
  122. package/dist/brain/project-sessions.js.map +1 -0
  123. package/dist/brain/project-source-contract.d.ts +109 -0
  124. package/dist/brain/project-source-contract.d.ts.map +1 -0
  125. package/dist/brain/project-source-contract.js +2 -0
  126. package/dist/brain/project-source-contract.js.map +1 -0
  127. package/dist/brain/project-source-intake.d.ts +26 -0
  128. package/dist/brain/project-source-intake.d.ts.map +1 -0
  129. package/dist/brain/project-source-intake.js +457 -0
  130. package/dist/brain/project-source-intake.js.map +1 -0
  131. package/dist/cli.js +1 -1
  132. package/dist/cli.js.map +1 -1
  133. package/dist/context-cli.d.ts.map +1 -1
  134. package/dist/context-cli.js +9 -3
  135. package/dist/context-cli.js.map +1 -1
  136. package/dist/dashboard/brain-hub-actions.d.ts.map +1 -1
  137. package/dist/dashboard/brain-hub-actions.js +232 -135
  138. package/dist/dashboard/brain-hub-actions.js.map +1 -1
  139. package/dist/dashboard/brain-hub-agent-dock.d.ts +2 -0
  140. package/dist/dashboard/brain-hub-agent-dock.d.ts.map +1 -0
  141. package/dist/dashboard/brain-hub-agent-dock.js +255 -0
  142. package/dist/dashboard/brain-hub-agent-dock.js.map +1 -0
  143. package/dist/dashboard/brain-hub-brand-icons.d.ts +2 -0
  144. package/dist/dashboard/brain-hub-brand-icons.d.ts.map +1 -0
  145. package/dist/dashboard/brain-hub-brand-icons.js +9 -0
  146. package/dist/dashboard/brain-hub-brand-icons.js.map +1 -0
  147. package/dist/dashboard/brain-hub-client.d.ts.map +1 -1
  148. package/dist/dashboard/brain-hub-client.js +433 -333
  149. package/dist/dashboard/brain-hub-client.js.map +1 -1
  150. package/dist/dashboard/brain-hub-context.d.ts +2 -0
  151. package/dist/dashboard/brain-hub-context.d.ts.map +1 -0
  152. package/dist/dashboard/brain-hub-context.js +37 -0
  153. package/dist/dashboard/brain-hub-context.js.map +1 -0
  154. package/dist/dashboard/brain-hub-controls.d.ts +2 -0
  155. package/dist/dashboard/brain-hub-controls.d.ts.map +1 -0
  156. package/dist/dashboard/brain-hub-controls.js +63 -0
  157. package/dist/dashboard/brain-hub-controls.js.map +1 -0
  158. package/dist/dashboard/brain-hub-exchanges.d.ts +2 -0
  159. package/dist/dashboard/brain-hub-exchanges.d.ts.map +1 -0
  160. package/dist/dashboard/brain-hub-exchanges.js +82 -0
  161. package/dist/dashboard/brain-hub-exchanges.js.map +1 -0
  162. package/dist/dashboard/brain-hub-graph.d.ts.map +1 -1
  163. package/dist/dashboard/brain-hub-graph.js +236 -74
  164. package/dist/dashboard/brain-hub-graph.js.map +1 -1
  165. package/dist/dashboard/brain-hub-html.d.ts.map +1 -1
  166. package/dist/dashboard/brain-hub-html.js +56 -1
  167. package/dist/dashboard/brain-hub-html.js.map +1 -1
  168. package/dist/dashboard/brain-hub-knowledge.d.ts +2 -0
  169. package/dist/dashboard/brain-hub-knowledge.d.ts.map +1 -0
  170. package/dist/dashboard/brain-hub-knowledge.js +33 -0
  171. package/dist/dashboard/brain-hub-knowledge.js.map +1 -0
  172. package/dist/dashboard/brain-hub-live.d.ts +2 -0
  173. package/dist/dashboard/brain-hub-live.d.ts.map +1 -0
  174. package/dist/dashboard/brain-hub-live.js +151 -0
  175. package/dist/dashboard/brain-hub-live.js.map +1 -0
  176. package/dist/dashboard/brain-hub-managed-skills.d.ts +2 -0
  177. package/dist/dashboard/brain-hub-managed-skills.d.ts.map +1 -0
  178. package/dist/dashboard/brain-hub-managed-skills.js +20 -0
  179. package/dist/dashboard/brain-hub-managed-skills.js.map +1 -0
  180. package/dist/dashboard/brain-hub-native.d.ts +2 -0
  181. package/dist/dashboard/brain-hub-native.d.ts.map +1 -0
  182. package/dist/dashboard/brain-hub-native.js +44 -0
  183. package/dist/dashboard/brain-hub-native.js.map +1 -0
  184. package/dist/dashboard/brain-hub-project-views.d.ts.map +1 -1
  185. package/dist/dashboard/brain-hub-project-views.js +78 -77
  186. package/dist/dashboard/brain-hub-project-views.js.map +1 -1
  187. package/dist/dashboard/brain-hub-sessions.d.ts +2 -0
  188. package/dist/dashboard/brain-hub-sessions.d.ts.map +1 -0
  189. package/dist/dashboard/brain-hub-sessions.js +40 -0
  190. package/dist/dashboard/brain-hub-sessions.js.map +1 -0
  191. package/dist/dashboard/brain-hub-usage.d.ts +2 -0
  192. package/dist/dashboard/brain-hub-usage.d.ts.map +1 -0
  193. package/dist/dashboard/brain-hub-usage.js +28 -0
  194. package/dist/dashboard/brain-hub-usage.js.map +1 -0
  195. package/dist/dashboard/brain-hub-views.d.ts.map +1 -1
  196. package/dist/dashboard/brain-hub-views.js +151 -146
  197. package/dist/dashboard/brain-hub-views.js.map +1 -1
  198. package/dist/dashboard/live-workspace-html.js +1039 -1039
  199. package/dist/dashboard/managed-project-skills-api.d.ts +29 -0
  200. package/dist/dashboard/managed-project-skills-api.d.ts.map +1 -0
  201. package/dist/dashboard/managed-project-skills-api.js +28 -0
  202. package/dist/dashboard/managed-project-skills-api.js.map +1 -0
  203. package/dist/dashboard/native-codex-api.d.ts +83 -0
  204. package/dist/dashboard/native-codex-api.d.ts.map +1 -0
  205. package/dist/dashboard/native-codex-api.js +91 -0
  206. package/dist/dashboard/native-codex-api.js.map +1 -0
  207. package/dist/dashboard/project-file-watch.d.ts +46 -0
  208. package/dist/dashboard/project-file-watch.d.ts.map +1 -0
  209. package/dist/dashboard/project-file-watch.js +221 -0
  210. package/dist/dashboard/project-file-watch.js.map +1 -0
  211. package/dist/dashboard/project-live-stream.d.ts +33 -0
  212. package/dist/dashboard/project-live-stream.d.ts.map +1 -0
  213. package/dist/dashboard/project-live-stream.js +233 -0
  214. package/dist/dashboard/project-live-stream.js.map +1 -0
  215. package/dist/dashboard/project-policy-api.d.ts +37 -0
  216. package/dist/dashboard/project-policy-api.d.ts.map +1 -0
  217. package/dist/dashboard/project-policy-api.js +31 -0
  218. package/dist/dashboard/project-policy-api.js.map +1 -0
  219. package/dist/dashboard/project-session-api.d.ts +28 -0
  220. package/dist/dashboard/project-session-api.d.ts.map +1 -0
  221. package/dist/dashboard/project-session-api.js +84 -0
  222. package/dist/dashboard/project-session-api.js.map +1 -0
  223. package/dist/dashboard/project-source-api.d.ts +11 -0
  224. package/dist/dashboard/project-source-api.d.ts.map +1 -0
  225. package/dist/dashboard/project-source-api.js +67 -0
  226. package/dist/dashboard/project-source-api.js.map +1 -0
  227. package/dist/dashboard/project-workspace.d.ts.map +1 -1
  228. package/dist/dashboard/project-workspace.js +18 -0
  229. package/dist/dashboard/project-workspace.js.map +1 -1
  230. package/dist/dashboard/server.d.ts.map +1 -1
  231. package/dist/dashboard/server.js +64 -25
  232. package/dist/dashboard/server.js.map +1 -1
  233. package/dist/dashboard/v6-dashboard-html.d.ts +1 -1
  234. package/dist/dashboard/v6-dashboard-html.d.ts.map +1 -1
  235. package/dist/dashboard/v6-dashboard-html.js +4261 -4309
  236. package/dist/dashboard/v6-dashboard-html.js.map +1 -1
  237. package/dist/dashboard/workspace-api.d.ts.map +1 -1
  238. package/dist/dashboard/workspace-api.js +105 -23
  239. package/dist/dashboard/workspace-api.js.map +1 -1
  240. package/dist/dashboard/workspace-status.d.ts +3 -0
  241. package/dist/dashboard/workspace-status.d.ts.map +1 -1
  242. package/dist/dashboard/workspace-status.js +4 -3
  243. package/dist/dashboard/workspace-status.js.map +1 -1
  244. package/dist/project-cli.js +1 -1
  245. package/dist/project-cli.js.map +1 -1
  246. package/docs/BRAND_ASSETS.md +36 -0
  247. package/docs/FEATURES_AND_LIMITS.md +29 -24
  248. package/docs/INTEGRATIONS.md +4 -2
  249. package/docs/LEARNING.md +1 -1
  250. package/docs/PROJECT_KIT.md +6 -1
  251. package/docs/QUICKSTART.md +62 -44
  252. package/docs/README.md +36 -33
  253. package/docs/SESSIONS.md +77 -0
  254. package/docs/SOURCE_INTAKE.md +33 -0
  255. package/docs/STATS.md +21 -21
  256. package/docs/VISUAL_GUIDE_v7.22.0.md +73 -0
  257. package/docs/WORKFLOW_INTEGRATION.md +3 -1
  258. package/docs/WORKSPACE.md +63 -37
  259. package/docs/assets/7.22.0-agent-dock-mobile.png +0 -0
  260. package/docs/assets/7.22.0-agent-dock.gif +0 -0
  261. package/docs/assets/7.22.0-agent-dock.png +0 -0
  262. package/docs/assets/7.22.0-hub-exchange.png +0 -0
  263. package/docs/assets/7.22.0-hub-exchanges.gif +0 -0
  264. package/docs/assets/7.22.0-hub-graph.png +0 -0
  265. package/docs/assets/7.22.0-hub-mobile-empty.png +0 -0
  266. package/docs/assets/7.22.0-managed-skills.png +0 -0
  267. package/docs/assets/7.22.0-plain-evidence.png +0 -0
  268. package/docs/assets/7.22.0-project-controls.png +0 -0
  269. package/docs/assets/7.22.0-sessions.png +0 -0
  270. package/docs/assets/7.22.0-teach-brain.png +0 -0
  271. package/docs/launch/RELEASE_ACCEPTANCE_v7.22.0.md +48 -0
  272. package/docs/launch/RELEASE_NOTES_v7.22.0.md +53 -0
  273. package/docs/launch/RESEARCH_AND_PLAN_v7.22.0.md +672 -0
  274. package/package.json +135 -130
  275. package/skills/shadow-workflow/SKILL.md +2 -0
package/docs/WORKSPACE.md CHANGED
@@ -1,37 +1,63 @@
1
- # Workspace guide
2
-
3
- Start a project-local Brain Hub from your project directory.
4
-
5
- ```bash
6
- shadow-brain project workspace . --port 62595
7
- ```
8
-
9
- Open [the project Hub](http://127.0.0.1:62595/hub). Keep the process running and reuse the same directory and port after restarting. `/workspace` opens the classic memory workspace; `/live` opens detailed activity diagnostics. The shared-store `shadow-brain dash . --no-analysis` opens an all-project view. Project-local PDF review, rooms, skills, and lesson promotion require the project workspace.
10
-
11
- ![Running Brain Hub with a replayed event](assets/7.1.4-hub-control-room.png)
12
-
13
- ## Inspect records and activity
14
-
15
- Select a project, agent, or memory node. For keyboard navigation, open **Node list**. The inspector shows record content, recorded source references, and explicit links. **Trace** shows the retained journal. Seek an event to inspect it and copy the event receipt. **Latest** returns to incoming records. **Pause motion** and reduced-motion settings suppress moving packets.
16
-
17
- Every graph node and relationship comes from the stored project, memory and author records. Cyan moving highlights mark fresh measured events and amber marks fresh reports when both recorded endpoints are present. Events without matching graph endpoints remain in the journal. The local workspace status, client file presence, observed tool activity, and model data each have independent evidence.
18
-
19
- ## Review and use knowledge
20
-
21
- Use **Knowledge** to upload a PDF and inspect extracted pages. Approving a page writes a source-backed project memory. Image-only pages require OCR. You can also save explicit text and a reference, inspect project markers, or preview and apply a project skill. [Project Kit](PROJECT_KIT.md)
22
-
23
- Use **Context** to enter a task, set a budget, compare profiles, and copy a pack. Review selected passages, reasons, and citations. The pack size is estimated. Tool timings and model token receipts are separate, and unavailable receipts stay visibly unavailable. [Context Lab](CONTEXT_LAB.md)
24
-
25
- ## Share a task and its evidence
26
-
27
- Create or open a **Collaboration** room. Post a proposal, critique, question, decision, or handoff. Add a task and claim it before attaching a project-relative file. The task’s lease and revision control ownership. Accept the current submitted artifact and record the result with its check and evidence. A participant can acknowledge another participant’s message or artifact. These operations are shared with project-local MCP clients. [Workflow integration](WORKFLOW_INTEGRATION.md)
28
-
29
- In **Learning**, propose a lesson from a recorded outcome. Record the baseline, candidate, controls, and evidence. Promotion is an explicit operator action. Rollback archives the promoted memory so it no longer influences normal retrieval. Use the classic workspace to manage separate task-scoped retrieval feedback. [Learning guide](LEARNING.md)
30
-
31
- ## Change runtime controls
32
-
33
- In **Setup**, manage context packs, activity display, and activity recording. The project portal stays pinned to its project, so cross-project context is unavailable here. Automatic briefing requires a legacy analysis session. Feature changes are revisioned and persist when the local process restarts. Disabling the activity display hides journal records in the Hub. Disabling recording stops new optional telemetry. Work-room records remain available.
34
-
35
- Setup can print native client recipes and diagnostic text. Recipes point to the selected local installation and store. To confirm the host actually uses the same project, call one of its project tools and inspect the journal. [Integrations](INTEGRATIONS.md)
36
-
37
- [Visual guide](VISUAL_GUIDE_v7.1.4.md) · [Troubleshooting](TROUBLESHOOTING.md)
1
+ # Workspace guide
2
+
3
+ Start a project-local Brain Hub from your project directory.
4
+
5
+ ```bash
6
+ shadow-brain project workspace . --port 62595
7
+ ```
8
+
9
+ Open [the project Hub](http://127.0.0.1:62595/hub). Keep the process running and reuse the same directory and port after restarting. `/workspace` opens the classic memory workspace; `/live` opens detailed activity diagnostics. The shared-store `shadow-brain dash . --no-analysis` opens an all-project view. Project-local PDF review, rooms, skills, and lesson promotion require the project workspace.
10
+
11
+ ![Running Brain Hub with stored memories and observed tool exchanges](assets/7.22.0-hub-graph.png)
12
+
13
+ ## Inspect records and activity
14
+
15
+ Select a project, agent, or memory node. **Find node** lists the displayed graph records and searches stored memories in the selected scope. Selecting a search result brings the exact record into the graph even when it falls outside the current sample. Use **+**, **−**, and **Fit** to adjust the view, or drag the zoomed canvas with a pointer. The relationship filters show project membership, recorded authors, or explicit memory links. The inspector shows the record, its recorded sources, and its links.
16
+
17
+ **MCP exchanges** shows recent measured client sessions even in a project with no stored memories. The request arrow points from client to workspace. The result arrow points from workspace to client when a handler completes, with the outcome shown on the receipt. A result-ready event records tool completion. Model consumption is unobserved. Select a lane, or open **Trace** and choose a journal record. The inspector links an exact matching request or result when both are retained in the loaded history. **Latest** returns to incoming activity. **Pause motion** and reduced-motion settings keep the display still.
18
+
19
+ ## Review and use knowledge
20
+
21
+ Use **Knowledge** to write an ordinary fact, paragraph or plan and click **Add to memory**. For longer notes or corrections, choose **Review first**. Optional PDFs provide extracted pages with source citations; image-only pages require OCR. You can also inspect project markers or preview and apply a project skill. [Plain-text guide](SOURCE_INTAKE.md) · [Project Kit](PROJECT_KIT.md)
22
+
23
+ Use **Context** to enter a task, set a budget, compare profiles, and copy a pack. Review selected passages, reasons, and citations. The pack size is estimated. Tool timings and model token receipts are separate, and unavailable receipts stay visibly unavailable. [Context Lab](CONTEXT_LAB.md)
24
+
25
+ ## Report optional model usage
26
+
27
+ A cooperating host can call `usage_report` with counters and metadata it already knows. For example, replace the project and session identifiers with the host's actual labels:
28
+
29
+ ```json
30
+ {
31
+ "operationId": "example-operation-1",
32
+ "projectId": "0123456789abcdef",
33
+ "sessionId": "example-host-session",
34
+ "agent": "codex",
35
+ "requestModel": "example-model",
36
+ "reasoningEffort": "high",
37
+ "inputTokens": 1200
38
+ }
39
+ ```
40
+
41
+ `reasoningEffort` is an optional short plain label reported by the host, not a value inferred from a model name. Omit it and any unknown counters when they are unavailable; zero means a reported zero. Receipts remain labelled **host-reported**, do not include prompts or credentials, and are not billing records. A receipt can be associated with a project session only when project ID, the host session ID and the agent label match exactly. Reuse the same operation ID for an identical retry.
42
+
43
+ ## Share a task and its evidence
44
+
45
+ Create or open a **Collaboration** room. Post a proposal, critique, question, decision, or handoff. Add a task and claim it before attaching a project-relative file. The task’s lease and revision control ownership. Accept the current submitted artifact and record the result with its check and evidence. A participant can acknowledge another participant’s message or artifact. These operations are shared with project-local MCP clients. [Workflow integration](WORKFLOW_INTEGRATION.md)
46
+
47
+ In **Learning**, propose a lesson from a recorded outcome. Record the baseline, candidate, controls, and evidence. Promotion is an explicit operator action. Rollback archives the promoted memory so it no longer influences normal retrieval. Use the classic workspace to manage separate task-scoped retrieval feedback. [Learning guide](LEARNING.md)
48
+
49
+ ## Change runtime controls
50
+
51
+ In **Setup**, manage context packs, activity display, and activity recording. The project portal stays pinned to its project, so cross-project context is unavailable here. Automatic briefing requires a legacy analysis session. Feature changes are revisioned and persist when the local process restarts. Disabling the activity display hides journal records in the Hub. Disabling recording stops new optional telemetry. Work-room records remain available.
52
+
53
+ **Project sharing** lets you set context ceilings, control tool participation, and turn off delivery for a conversation. An unshared chat and its inherited handoffs remain available for operator audit. Memories with explicit provenance linking them to that conversation are removed before retrieval ranks or merges candidates. Older memories without that linkage cannot be associated automatically. Tool limits follow the MCP client label; roles are coordination labels. **Context** previews the same limits, including its reference comparison.
54
+
55
+ Setup can print native client recipes and diagnostic text. Recipes point to the selected local installation and store. To confirm the host actually uses the same project, call one of its project tools and inspect the journal. [Integrations](INTEGRATIONS.md)
56
+
57
+ The project Hub uses a local event stream for store changes while the tab is visible. **Polling fallback** appears if the stream disconnects. A reconnect can replay retained notices or refresh the current snapshot when the replay window has expired. Earlier records do not start fresh activity animations.
58
+
59
+ Turn on **Project file activity** in Setup to see eligible relative paths and grouped filesystem notifications in **Sessions**. Watching runs while there is an open live subscription and both live display and recording are enabled. The watcher skips hidden, private, configuration, dependency, and build paths, and does not open file contents. It caps directory watches at 64 and shows at most 180 project paths and the 24 latest groups in the panel. File changes have an unknown actor. A grouped notification only establishes that the filesystem reported a change.
60
+
61
+ A local Windows fixture measured 30 writes through to the visible Chrome page. Ten independent MCP memory writes, ten session API writes, and ten allowed file creates delivered in 241 ms median and 386 ms p95, with an 888 ms maximum. Over 60 seconds idle on the same fixture and Node 24.15.0, workspace RSS moved from 82.33 to 82.21 MiB, average server CPU was 0.365% of one core, and the open Sessions page made no workspace API refetches.
62
+
63
+ [Visual guide](VISUAL_GUIDE_v7.22.0.md) · [Troubleshooting](TROUBLESHOOTING.md)
Binary file
Binary file
@@ -0,0 +1,48 @@
1
+ # 7.22.0 verification record
2
+
3
+ Checked on 2026-11-14 against the release candidate. The checks below describe observed behavior and its limits. The [CI workflow](https://github.com/theihtishaam/agents-brain/actions/workflows/ci.yml) separately runs the build, tests, type checks, retrieval diagnostics, dependency audit and fresh-package checks on Ubuntu and Windows with Node 22, 24 and 26.
4
+
5
+ The final local full-suite run passed **452 tests in 64 files**. Four public-metrics validation tests also passed. The matching commit's CI remains the authority for the complete current revision and its supported-platform package checks.
6
+
7
+ The fresh-consumer package check passed: archive allowlist and integrity, isolated installation, public exports, CLI, all four skill layouts, MCP resources/prompts, PDF extraction, plaintext memory with evidence and retry identity, checkpoint continuation, context ceilings and byte-exact skill restoration. It also verifies that README images are included in the package.
8
+
9
+ ## Practical outcomes
10
+
11
+ | User action | Evidence | Result |
12
+ | --- | --- | --- |
13
+ | Save “The cupboard is black” | Real portal HTTP, browser and two already-running independent MCP processes | Both clients retrieve the saved fact for a cupboard question; original line evidence resolves; another project cannot retrieve it. |
14
+ | Retry a note or preserve a correction | Source-intake regressions | Identical notes keep their memory IDs; an earlier approved edit is preserved. |
15
+ | Add PDF, JSON and transcript evidence | Real portal and independent MCP processes | Pending and rejected items stay out of retrieval. Approved records retain page/item locators and original versus edited text. |
16
+ | Continue another agent's work | Real MCP subprocess and portal session tests | A digest-verified checkpoint opens a new linked session; original history and ownership remain intact. |
17
+ | Hide a conversation | Warm-client policy tests | Tools, resources, prompts, direct evidence and inherited handoffs respect exclusions. Explicitly linked memories are filtered before ranking and duplicate collapse. |
18
+ | Change context ceilings | Portal, MCP and project CLI tests | Token and entry ceilings also constrain the reference comparison. Corrupt policy storage fails agent delivery closed. |
19
+ | Disable or remove a generated skill | Store tests and actual browser controls | Verified Project Kit files can be moved, restored or removed; edited and unowned files stay intact. Interrupted operations and abandoned locks are covered. |
20
+ | Inspect live work | Browser and real MCP requests | The graph follows observed exchanges; empty memory stays empty. Hidden/reduced-motion behavior, replay expiry and node search are checked. |
21
+ | Inspect models and usage | Real MCP and HTTP receipts | Missing counters remain unknown. Cache/reasoning subsets are not added twice; retries do not double-count. |
22
+ | Inspect tool and worker details | Browser plus exact-identity regressions | Local logos, separate worker models and effort, shared-host ambiguity, custom client identity, keyboard/touch access, and reduced motion are covered. |
23
+ | Count reporting MCP connections | Two independent owned stdio child processes and store/stream tests | No lease before readiness; clean closure removes it. A hard-killed child's retained lease expires under the tested clock. Disabling tool participation blocks recall while preserving the transport count. Recording off is unavailable. |
24
+
25
+ ## Browser and native integration evidence
26
+
27
+ - The final graph fixture contains **580 synthetic stored memories**, with **504 displayed nodes and 1,925 recorded relationships** in the captured desktop view. Its three client labels come from scripted MCP clients. Eleven graph browser checks passed with no page errors or external requests.
28
+ - Seven project-control browser checks passed, including keyboard-operated sliders, sharing, roles, tool participation and filtered context. Six managed-skill browser checks passed, including preserving an unrelated file.
29
+ - Eleven additional tool-panel browser checks passed with four initialized scripted MCP stream clients, five registered sessions and two synthetic model receipts. These exercised local logos, hover/focus/click details, distinct worker models and effort, source attribution, event-driven motion, reduced motion, narrow layout and session navigation. No page errors or external requests occurred. Expiry/offline counts and custom-client joins also have focused regressions.
30
+ - The plain-text, source-evidence, session paging and checkpoint paths were exercised in the running app. Native navigation and delayed disconnect responses were tested with controlled browser responses; server protocol tests use a separate owned process fixture.
31
+ - Installed **Codex CLI 0.145.0** completed a real initialize/list/disconnect cycle scoped to a newly created empty test workspace. It returned zero conversations. No personal history was read, created or resumed and no model request was sent. This verifies the handshake and empty indexed list, not personal-history paging or every installed-client variant.
32
+ - Claude Code, OpenCode and DeepSeek Harness imports are tested with supported native export fixtures. These do not establish automatic capture or native-client reconnection. MCP project memory and checkpoints are a separate shared interface.
33
+
34
+ ## Measured local cost
35
+
36
+ One Windows/Node 24.15.0 fixture measured 30 writes reaching the visible browser: ten MCP memory writes, ten session API writes and ten allowed file changes. Median latency was **241 ms**, p95 **386 ms**, maximum **888 ms**. Over a 60-second idle sample, workspace RSS moved from **82.33 to 82.21 MiB**, server CPU averaged **0.365% of one core**, and the page made **zero workspace API refetches**.
37
+
38
+ These figures describe a small local fixture on an i5-12450H, not a service-level guarantee, large-corpus benchmark or measurement of the optional native connector. Native metadata refreshes every ten seconds while its view is open; it is separate from local pushed activity.
39
+
40
+ The added MCP presence lease renews every ten seconds, with a thirty-second expiry. An 11.2-second browser observation containing actual fixture tool exchanges and heartbeats produced four telemetry reads and two presence reads, with zero graph, usage, session or overview reads. Heartbeats update presence independently and do not animate work. This is a targeted request-routing check, not a large-team capacity benchmark.
41
+
42
+ The 14 author-generated retrieval diagnostics passed for adaptive retrieval with no scoped-data leaks or budget violations. They test named retrieval behaviors, not model answer quality or superiority over other tools. The dependency audit reported no known vulnerabilities at the time of checking.
43
+
44
+ ## Boundaries that remain explicit
45
+
46
+ This is a local project service. Client labels and coordination roles are not authenticated enterprise identities. The service does not inspect hidden reasoning, train model weights, reopen native application tabs, guarantee every host will request memory, or prove reported outcomes true. Context reduction is estimated; provider billing and model execution time are not inferred from it. Previously delivered information cannot be withdrawn from another application.
47
+
48
+ Source code, installed-package behavior and UI captures are checked separately. Use the matching commit's CI result when assessing a published release.
@@ -0,0 +1,53 @@
1
+ # Agent Shadow Brain 7.22.0
2
+
3
+ Release date: 2026-11-14. See the [verification record](RELEASE_ACCEPTANCE_v7.22.0.md) for tested behavior and integration boundaries.
4
+
5
+ This release makes project knowledge easier to add, trace, share and correct. Save ordinary notes directly with **Add to memory**, or review longer notes and optional document imports before sharing them. Pending and rejected review items remain outside shared retrieval.
6
+
7
+ ## Knowledge and learning
8
+
9
+ - Paste a short fact or paragraph and save it with one click, retaining its original evidence and retry identity. Longer notes offer section review, correction and selective approval.
10
+ - Import text PDFs, knowledge JSON and simple transcript JSON. The source review keeps speaker attribution, original text, exact page or item locator, fingerprint and approved corrections.
11
+ - Inspect source evidence through the portal or the read-only `memory_evidence` MCP tool.
12
+ - Rate a retrieved memory for a task. Bounded feedback affects matching future queries; users can pause or remove this influence.
13
+ - Follow a lesson back to its recorded outcome and reported comparison. Promotion and rollback remain explicit.
14
+
15
+ ## Shared memory and handoffs
16
+
17
+ - Already-running independent project MCP servers refresh their read view before ordinary recall.
18
+ - Archived, contested and superseded records are excluded before project recall ranking. Audit views retain the historical record.
19
+ - `hub_artifact_read` retrieves the saved immutable UTF-8 artifact by room, artifact ID and SHA-256. It does not reread a changed workspace file.
20
+ - Duplicate collapse preserves conservative feedback attribution, and a supplied query without searchable terms no longer falls back to unrelated recent memories.
21
+
22
+ ## Portal and usage
23
+
24
+ - A tool activity panel uses locally bundled integration icons and accessible detail controls for reported sessions, models, coordination roles and latest observed actions. Fresh event indicators respect pause and reduced-motion settings.
25
+ - Initialized project MCP transports report bounded presence leases, with ten-second renewals, thirty-second expiry and clean-disconnect removal. Presence refreshes independently of the graph and never substitutes for evidence of model execution.
26
+ - Optional usage receipts accept a bounded `reasoningEffort` label. It remains host-reported, with unknown effort omitted; existing receipts keep their retry identity.
27
+ - The brain-shaped graph lays out actual stored records, with depth cues, quieter membership links, recorded relationship filters, search, pan, zoom and reduced motion.
28
+ - Observed client exchanges remain visible even when the memory graph is empty. Replay does not silently switch to a newer event after the selected record expires.
29
+ - Context shows candidates, selection reasons, exclusions, source navigation and the actual added/removed/shared records in a comparison.
30
+ - Cooperating hosts can send optional `usage_report` receipts. Input and output totals remain distinct from cached and reasoning subsets. Missing counts remain unknown and receipts stay labelled host-reported.
31
+ - Legacy model routes no longer discover host configuration files automatically, expose saved credential fields in JSON, or claim a successful provider test without testing it.
32
+
33
+ ## Compatibility and limits
34
+
35
+ Existing project memory and ActivityJournal v1 remain compatible. New source and usage records live in separate project-local SQLite stores. No external database service or model download is required. Feature data is bounded and project scoped.
36
+
37
+ Text organization is deterministic; it is not a separate model interpreting every paragraph. The connected agent reasons over the reviewed context it requests. Learning adapts stored memory and retrieval; it does not train model weights. Scanned PDFs need OCR, which is not included. Model reports do not establish billing or independently prove a proxy's upstream model. Native application connectivity requires that application's configuration and active use of the tools.
38
+
39
+ ## Conversation continuity
40
+
41
+ Connected tools can register project sessions, report progress, save immutable checkpoints and continue another tool's checkpoint in a new agent-owned session. History is paged and bounded; old checkpoints keep their exact digest. Imported conversation snapshots preserve original IDs, available titles, workspace identity and source locators. A changed export becomes a linked snapshot rather than overwriting the original.
42
+
43
+ The optional Codex history connection starts only after **Connect**. It uses the installed app-server's read interface, scopes the list to the current project, supports archived conversations and reads selected history in pages. Other supported tools use selected native exports. These interfaces do not reopen another application's native tab or transfer hidden model state.
44
+
45
+ ## Live updates and control
46
+
47
+ The portal receives bounded pushed invalidations from local stores, with reconnect and polling fallback. Optional file activity reports safe project-relative file metadata; a filesystem event alone cannot identify the editing agent. Graph motion follows observed activity and can be paused.
48
+
49
+ Project controls set tool participation, conversation sharing, coordination roles and context ceilings. Excluded conversations and their explicitly linked evidence are withheld from subsequent agent delivery, including inherited handoffs. Client labels are cooperative controls, not authenticated enterprise access control. Information already received by another process cannot be recalled.
50
+
51
+ Project Kit skills with intact ownership receipts can be disabled, restored or removed through an exact preview. Edited and unmanaged files remain protected. Disabling a skill changes future file discovery; a host may need to reload to discard instructions already in its context.
52
+
53
+ See the [research and acceptance plan](RESEARCH_AND_PLAN_v7.22.0.md), [source intake guide](../SOURCE_INTAKE.md), [sessions guide](../SESSIONS.md), and [visual guide](../VISUAL_GUIDE_v7.22.0.md).