instar 1.3.2004 → 1.3.2006

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 (120) hide show
  1. package/dashboard/console/work-model.js +2 -7
  2. package/dashboard/console/work.js +11 -4
  3. package/dist/core/AppConversationStore.d.ts +2 -0
  4. package/dist/core/AppConversationStore.d.ts.map +1 -1
  5. package/dist/core/AppConversationStore.js +6 -2
  6. package/dist/core/AppConversationStore.js.map +1 -1
  7. package/dist/core/ChiefOfStaffPrSearch.d.ts +92 -0
  8. package/dist/core/ChiefOfStaffPrSearch.d.ts.map +1 -0
  9. package/dist/core/ChiefOfStaffPrSearch.js +295 -0
  10. package/dist/core/ChiefOfStaffPrSearch.js.map +1 -0
  11. package/dist/core/ConversationUnreadService.d.ts +2 -0
  12. package/dist/core/ConversationUnreadService.d.ts.map +1 -1
  13. package/dist/core/ConversationUnreadService.js +3 -1
  14. package/dist/core/ConversationUnreadService.js.map +1 -1
  15. package/dist/core/PostUpdateMigrator.d.ts.map +1 -1
  16. package/dist/core/PostUpdateMigrator.js +17 -18
  17. package/dist/core/PostUpdateMigrator.js.map +1 -1
  18. package/dist/core/WorkBoardPickupController.d.ts +1 -1
  19. package/dist/core/WorkBoardPickupController.d.ts.map +1 -1
  20. package/dist/core/WorkBoardPickupController.js +2 -2
  21. package/dist/core/WorkBoardPickupController.js.map +1 -1
  22. package/dist/core/WorkBoardRuntime.d.ts +3 -1
  23. package/dist/core/WorkBoardRuntime.d.ts.map +1 -1
  24. package/dist/core/WorkBoardRuntime.js +21 -4
  25. package/dist/core/WorkBoardRuntime.js.map +1 -1
  26. package/dist/core/WorkBoardService.d.ts +1 -1
  27. package/dist/core/WorkBoardService.d.ts.map +1 -1
  28. package/dist/core/WorkBoardService.js +3 -3
  29. package/dist/core/WorkBoardService.js.map +1 -1
  30. package/dist/core/WorkCardStore.d.ts +2 -0
  31. package/dist/core/WorkCardStore.d.ts.map +1 -1
  32. package/dist/core/WorkCardStore.js +18 -0
  33. package/dist/core/WorkCardStore.js.map +1 -1
  34. package/dist/core/githubRuntime.d.ts +6 -0
  35. package/dist/core/githubRuntime.d.ts.map +1 -1
  36. package/dist/core/githubRuntime.js +74 -6
  37. package/dist/core/githubRuntime.js.map +1 -1
  38. package/dist/core/workBoardViews.d.ts +6 -4
  39. package/dist/core/workBoardViews.d.ts.map +1 -1
  40. package/dist/core/workBoardViews.js +13 -8
  41. package/dist/core/workBoardViews.js.map +1 -1
  42. package/dist/core/workFrontDoorsGraph.d.ts +1 -1
  43. package/dist/core/workFrontDoorsGraph.d.ts.map +1 -1
  44. package/dist/core/workFrontDoorsGraph.js +2 -2
  45. package/dist/core/workFrontDoorsGraph.js.map +1 -1
  46. package/dist/core/workSourceCards.js +2 -2
  47. package/dist/core/workSourceCards.js.map +1 -1
  48. package/dist/data/standards-guard-index.json +1 -1
  49. package/dist/data/standards-guard-index.meta.json +2 -2
  50. package/dist/data/standards-registry.meta.json +1 -1
  51. package/dist/memory/MemoryIndex.d.ts.map +1 -1
  52. package/dist/memory/MemoryIndex.js +2 -12
  53. package/dist/memory/MemoryIndex.js.map +1 -1
  54. package/dist/memory/SemanticMemory.d.ts.map +1 -1
  55. package/dist/memory/SemanticMemory.js +3 -33
  56. package/dist/memory/SemanticMemory.js.map +1 -1
  57. package/dist/memory/TopicMemory.d.ts.map +1 -1
  58. package/dist/memory/TopicMemory.js +2 -11
  59. package/dist/memory/TopicMemory.js.map +1 -1
  60. package/dist/memory/ftsQueryTerms.d.ts +5 -0
  61. package/dist/memory/ftsQueryTerms.d.ts.map +1 -0
  62. package/dist/memory/ftsQueryTerms.js +12 -0
  63. package/dist/memory/ftsQueryTerms.js.map +1 -0
  64. package/dist/native/InstarWedgeCanary.app/Contents/MacOS/InstarWedgeCanary +0 -0
  65. package/dist/native/instar-desktop-host +0 -0
  66. package/dist/scaffold/conversationSearchGuidance.d.ts +10 -0
  67. package/dist/scaffold/conversationSearchGuidance.d.ts.map +1 -0
  68. package/dist/scaffold/conversationSearchGuidance.js +49 -0
  69. package/dist/scaffold/conversationSearchGuidance.js.map +1 -0
  70. package/dist/scaffold/templates.d.ts.map +1 -1
  71. package/dist/scaffold/templates.js +8 -13
  72. package/dist/scaffold/templates.js.map +1 -1
  73. package/dist/server/AgentServer.d.ts.map +1 -1
  74. package/dist/server/AgentServer.js +31 -3
  75. package/dist/server/AgentServer.js.map +1 -1
  76. package/dist/server/ConversationGraphSurface.d.ts +1 -0
  77. package/dist/server/ConversationGraphSurface.d.ts.map +1 -1
  78. package/dist/server/ConversationGraphSurface.js +7 -0
  79. package/dist/server/ConversationGraphSurface.js.map +1 -1
  80. package/dist/server/chiefOfStaffPrSearchRoutes.d.ts +9 -0
  81. package/dist/server/chiefOfStaffPrSearchRoutes.d.ts.map +1 -0
  82. package/dist/server/chiefOfStaffPrSearchRoutes.js +39 -0
  83. package/dist/server/chiefOfStaffPrSearchRoutes.js.map +1 -0
  84. package/dist/server/conversationGraphViewer.d.ts +2 -0
  85. package/dist/server/conversationGraphViewer.d.ts.map +1 -1
  86. package/dist/server/conversationGraphViewer.js +3 -2
  87. package/dist/server/conversationGraphViewer.js.map +1 -1
  88. package/dist/server/conversationMeaningSearch.d.ts.map +1 -1
  89. package/dist/server/conversationMeaningSearch.js +3 -1
  90. package/dist/server/conversationMeaningSearch.js.map +1 -1
  91. package/dist/server/mobileConversationRoutes.d.ts.map +1 -1
  92. package/dist/server/mobileConversationRoutes.js +202 -176
  93. package/dist/server/mobileConversationRoutes.js.map +1 -1
  94. package/dist/server/mobileConversationSearchRoutes.d.ts.map +1 -1
  95. package/dist/server/mobileConversationSearchRoutes.js +96 -87
  96. package/dist/server/mobileConversationSearchRoutes.js.map +1 -1
  97. package/dist/server/routes.d.ts.map +1 -1
  98. package/dist/server/routes.js +8 -0
  99. package/dist/server/routes.js.map +1 -1
  100. package/dist/server/workBoardRoutes.d.ts +2 -0
  101. package/dist/server/workBoardRoutes.d.ts.map +1 -1
  102. package/dist/server/workBoardRoutes.js +11 -4
  103. package/dist/server/workBoardRoutes.js.map +1 -1
  104. package/package.json +1 -1
  105. package/src/data/awareness/agent-work-cards.md +1 -1
  106. package/src/data/awareness/chief-of-staff-find-prior-work.md +11 -0
  107. package/src/data/builtin-manifest.json +66 -66
  108. package/src/data/standards-guard-index.json +1 -1
  109. package/src/data/standards-guard-index.meta.json +2 -2
  110. package/src/data/standards-registry.meta.json +1 -1
  111. package/src/scaffold/conversationSearchGuidance.ts +57 -0
  112. package/src/scaffold/templates.ts +8 -13
  113. package/upgrades/1.3.2005.md +20 -0
  114. package/upgrades/1.3.2006.md +38 -0
  115. package/upgrades/eli16/conversation-search-pointers.md +7 -0
  116. package/upgrades/side-effects/chief-of-staff-pr-discovery.md +87 -0
  117. package/upgrades/side-effects/chief-of-staff-pr-public-visibility.md +7 -0
  118. package/upgrades/side-effects/conversation-search-pointers.md +13 -0
  119. package/upgrades/side-effects/internal-work-owner-surfaces.eli16.md +9 -0
  120. package/upgrades/side-effects/internal-work-owner-surfaces.md +72 -0
@@ -1,3 +1,4 @@
1
+ import { CONVERSATION_SEARCH_CAPABILITY_ROW, CONVERSATION_SEARCH_LOOKUP, CONVERSATION_SEARCH_PROACTIVE, CONVERSATION_SEARCH_REGISTRY_ROW, SEMANTIC_LEARNINGS_REGISTRY_ROW, conversationSearchGuide } from './conversationSearchGuidance.js';
1
2
  import { recoveryAwareness } from '../recovery/RecoveryAwareness.js';
2
3
  import { failureCalloutAwareness } from '../core/failureCalloutAwareness.js';
3
4
  /**
@@ -411,7 +412,7 @@ Server: curl http://localhost:${port}/health | Capabilities: curl -H "Authorizat
411
412
  | Multi-machine / pairing | \`instar machines --help\` |
412
413
  | Architecture / how I work | \`curl -H "Authorization: Bearer $AUTH" http://localhost:${port}/context/dispatch\` |
413
414
  | Someone I've interacted with | \`GET /relationships\` |
414
- | Something I wrote before | \`GET /memory/search?q=...\` |
415
+ ${CONVERSATION_SEARCH_REGISTRY_ROW}
415
416
  | Writing code / debugging | Read \`.instar/context/development.md\` if it exists |
416
417
  | Managing context / knowledge | \`instar playbook status\` or \`instar playbook doctor\` |
417
418
  | Deploying / building | Read \`.instar/context/deployment.md\` if it exists |
@@ -1078,13 +1079,7 @@ ${remoteDesktopBullet(port)}
1078
1079
  - **Automatic safety**: Restore is blocked while sessions are active and creates a pre-restore backup first.
1079
1080
  - **When to use proactively**: Before applying dispatches that modify config, before updating agent identity, before any experiment that touches state files.
1080
1081
 
1081
- **Memory Search** — Full-text search over all indexed memory files using SQLite FTS5. Find anything you've ever written to MEMORY.md, handoff notes, or state files.
1082
- - Search: \`curl -H "Authorization: Bearer $AUTH" "http://localhost:${port}/memory/search?q=QUERY&limit=10"\`
1083
- - Stats: \`curl -H "Authorization: Bearer $AUTH" http://localhost:${port}/memory/stats\`
1084
- - Reindex: \`curl -X POST -H "Authorization: Bearer $AUTH" http://localhost:${port}/memory/reindex\`
1085
- - Sync (incremental): \`curl -X POST -H "Authorization: Bearer $AUTH" http://localhost:${port}/memory/sync\`
1086
- - **Auto-sync**: Search automatically syncs before querying, so results are always current.
1087
- - **When to use**: When looking for something you know you wrote but can't remember where. When a user asks "didn't we discuss X?" When building context for a task from past learnings.
1082
+ ${conversationSearchGuide(port)}
1088
1083
 
1089
1084
  **Anthropic Subscription-Path Routing (June-15 readiness)** — Your internal background LLM calls (sentinels, gates, extractors) AND your headless job / agent-to-agent / dispatch spawns normally run as \`claude -p\` one-shots, which bill the Agent SDK credit pot after 2026-06-15. The subscription-path lever routes BOTH through interactive Claude sessions instead — the path that keeps working when the pot is empty. (Internal calls use a pooled REPL; rerouted job/A2A spawns run as normal interactive sessions with a completion marker, a concurrency cap, and quota backpressure — each session's \`launchLane\` in \`GET /sessions\` shows which billing lane it used.)
1090
1085
  - What's actually wired in: \`curl -H "Authorization: Bearer $AUTH" http://localhost:${port}/providers/registry\` → registered provider adapters + capability flags. Both \`anthropic-headless\` and \`anthropic-interactive-pool\` listed = the escape hatch is installed.
@@ -1449,7 +1444,7 @@ ${jobTransferGuide(port).registry.trimEnd()}
1449
1444
  | How full is each machine's disk? / why was an upload refused? | \`GET /disk-steward?scope=pool\` — each machine's free space, forecast and last cleanup, read live (→ Lookup details) |
1450
1445
  | My configuration? | \`.instar/config.json\` |
1451
1446
  | My identity/principles? | \`.instar/AGENT.md\` |
1452
- | My past learnings about X? | \`GET /memory/search?q=X\` |
1447
+ ${SEMANTIC_LEARNINGS_REGISTRY_ROW}
1453
1448
  | My context items / playbook? | \`instar playbook status\` or \`instar playbook list\` |
1454
1449
  | My backup history? | \`GET /backups\` |
1455
1450
  | My state change history? | \`GET /git/log\` |
@@ -1548,7 +1543,7 @@ When asked for something I can't do yet, I build it:
1548
1543
  2. **Need periodic checks?** Create a job in \`.instar/jobs.json\`. If it reports to the user, ask whether they want to see its reports; otherwise they stay quiet.
1549
1544
  3. **Need a new integration?** Write a script in \`.claude/scripts/\`.
1550
1545
  4. **Need to remember something?** Write to \`.instar/MEMORY.md\`.
1551
- 5. **Need to find something I wrote before?** Use memory search (\`GET /memory/search?q=...\`).
1546
+ ${CONVERSATION_SEARCH_LOOKUP}
1552
1547
  6. **Need to protect state before a risky change?** Create a backup (\`POST /backups\`).
1553
1548
  7. **Need to notify the user?** Use the messaging API.
1554
1549
  8. **Need external API access?** Write a script that calls the API.
@@ -1693,7 +1688,7 @@ ${DOC_DELIVERY_ROW_PRODUCE_SHORT}
1693
1688
  - User says **"you keep doing X"** / asks **what I've learned to do** → check \`GET /skills/learned\` and surface any proposal still without a verdict — never claim a learned skill from memory (→ Lookup details).
1694
1689
  - A learned skill sits in **\`pending[]\`** → tell the operator in plain words what it does and what triggered it; the one tap that confirms or rejects it is theirs, never mine (→ Lookup details).
1695
1690
  - User asks me to **remember something** → Write it to MEMORY.md and explain it persists across sessions.
1696
- - User asks **"didn't we talk about X?"** or **"where did I put that?"** → Use memory search (\`GET /memory/search?q=...\`). The full-text index covers everything I've written.
1691
+ ${CONVERSATION_SEARCH_PROACTIVE}
1697
1692
  - Before any **risky operation** (config changes, updates, experiments) → Create a backup snapshot first (\`POST /backups\`). Mention that you did it — the user should know their state is protected.
1698
1693
  - User asks about **other agents on this machine** → Check the agent registry (\`GET /agents\`). Share what's running and on which ports.
1699
1694
  - After **major state changes** → Commit to git (\`POST /git/commit\`); the \`git-sync\` job only covers the routine hourly sync (→ Lookup details).
@@ -2628,7 +2623,7 @@ Before answering ANY question about my capabilities or architecture from memory
2628
2623
  | Multi-machine / pairing | \`instar machines --help\` |
2629
2624
  | Architecture / how I work | \`curl -H "Authorization: Bearer $AUTH" http://localhost:${port}/context/dispatch\` |
2630
2625
  | Someone I've interacted with | \`GET /relationships\` |
2631
- | Something I wrote before | \`GET /memory/search?q=...\` |
2626
+ ${CONVERSATION_SEARCH_REGISTRY_ROW}
2632
2627
  | Writing code / debugging | Read \`.instar/context/development.md\` if it exists |
2633
2628
  | Managing context / knowledge | \`instar playbook status\` or \`instar playbook doctor\` |
2634
2629
  | Deploying / building | Read \`.instar/context/deployment.md\` if it exists |
@@ -2758,7 +2753,7 @@ One-line awareness of every capability. For full docs, query the Self-Knowledge
2758
2753
  | **Event Stream (SSE)** | Real-time server events |
2759
2754
  | **Dashboard** | Web UI for session monitoring and file browsing |
2760
2755
  | **Backup System** | Snapshot and restore agent state |
2761
- | **Memory Search** | Full-text search over all memory files (FTS5) |
2756
+ ${CONVERSATION_SEARCH_CAPABILITY_ROW}
2762
2757
  | **Git Sync** | Automatic version-control and multi-machine sync |
2763
2758
  | **Agent Registry** | Discover all agents on this machine |
2764
2759
  | **Skills** | Reusable behavioral capabilities as slash commands |
@@ -0,0 +1,20 @@
1
+ # Upgrade Guide — vNEXT
2
+
3
+ <!-- assembled-by: assemble-next-md -->
4
+ <!-- bump: patch -->
5
+
6
+ ## What Changed
7
+
8
+ Agent instructions now point to captured app, Telegram, and Slack conversation history when looking for earlier discussions. The same instructions reach existing agents through the CLAUDE.md migration. Memory and Telegram keyword searches now safely handle text containing dots, hyphens, and apostrophes.
9
+
10
+ ## What to Tell Your User
11
+
12
+ "When you ask if we discussed something before, I will search the conversation history and check how much the search covered. Names such as instar.sh and IDs such as SEC-123 also work in the older memory and Telegram search routes."
13
+
14
+ ## Summary of New Capabilities
15
+
16
+ The agent can look up captured discussions across machines using the conversation search route.
17
+
18
+ ## Evidence
19
+
20
+ Regression coverage in memory-index, semantic-memory, topic-memory, and conversation-search-guidance unit tests, plus the Telegram search HTTP and CLAUDE.md reference-layout tests.
@@ -0,0 +1,38 @@
1
+ # Upgrade Guide — vNEXT
2
+
3
+ <!-- assembled-by: assemble-next-md -->
4
+ <!-- bump: patch -->
5
+
6
+ ## What Changed
7
+
8
+ The development Chief of Staff can search open Instar pull requests and recent merged work through the local server. It searches descriptions and branch names as well as titles. The lookup returns evidence links and shows which parts of GitHub it could read. Existing and new agents receive instructions to use the lookup before answering whether work exists or assigning a new design.
9
+
10
+ The Chief of Staff pull request lookup now requires GitHub to confirm the repository is public. When GitHub reports private or unverified visibility, the service clears both cached views before serving another result.
11
+
12
+ Purely internal agent cards no longer populate the owner's ordinary work board, Projects, Conversations, pins, search, unread or Needs-you counts. A deliberate agent-only board view retains access. Internal history is created when execution or an allowed note needs it; existing history is preserved. Status wording describes agent execution without inventing an owner approval request. Genuine person-facing requests remain visible. Enabled hierarchy reads apply the same presentation boundary without removing graph records or owner authority.
13
+
14
+ ## What to Tell Your User
15
+
16
+ When you ask me whether something was already planned, I can look for the work where it actually lives, including an open pull request. I can point you to the original work and say if I could only check part of the record.
17
+
18
+ The public work lookup now checks that its source is still public. It reports missing coverage when it cannot verify that.
19
+
20
+ Routine work the agent manages stays out of your conversations and Needs you. You can inspect it through “View the agent’s internal cards.” Real questions and approvals still appear where you expect them.
21
+
22
+ ## Summary of New Capabilities
23
+
24
+ | Capability | How to Use |
25
+ |---|---|
26
+ | Prior pull request lookup in the development Chief of Staff | Ask whether an Instar change already exists or bring up a proposed new design. The Chief of Staff can look up the public repository and cite what it finds. |
27
+
28
+ Public source coverage uses verified GitHub repository visibility.
29
+
30
+ The board's explicit agent view and additive classification fields let clients distinguish internal work without guessing from titles. Ordinary reads remain the owner projection.
31
+
32
+ ## Evidence
33
+
34
+ The focused run passed 87 tests, including a production server startup test and a replay where the relevant pull request appears after the first 100 open results. An authenticated cold probe completed both the open scan and the recent merged scan, and returned the open pull request in 8.30 seconds. Owner-channel replies, assignments and deployment still need separate verification.
35
+
36
+ HTTPS fixtures cover a previously public snapshot followed by private and missing visibility responses. An earlier captured byte fixture remains intact and is exercised without its new proof, then with a separate unchanged live public GitHub response that explicitly includes visibility.
37
+
38
+ Focused unit, real HTTP and production initialization checks cover classification, genuine approvals, cuts, pins, pooled older-computer rows, search, unread and retained note history. Four normal Chrome sample-data cases cover phone and desktop owner/agent views, with no application writes. Complete verification and installed readiness are separate requirements.
@@ -0,0 +1,7 @@
1
+ # Finding earlier conversations
2
+
3
+ When you ask whether we discussed something before, the agent now starts with conversation search. It can look through captured app, Telegram, and Slack messages it has access to and ask the agent's other machines to search their copies. It checks whether the search covered all the sources before reporting what it found. If conversation search is unavailable, the agent can check captured Telegram history.
4
+
5
+ The old instructions often sent the agent to a search that reads a small set of memory files. That explains how the agent could say it found nothing about permanent agent links while the earlier conversation was still there. Pull requests, branches, specs, and work cards have their own records, so the agent checks those when the question is about work that may already exist.
6
+
7
+ The search used by the older memory and Telegram routes now accepts text such as `instar.sh`, `SEC-123`, and contractions. A hyphen could previously produce an error and a dot could make an existing result disappear. Existing agents get the corrected instructions when they update.
@@ -0,0 +1,87 @@
1
+ # Side-Effects Review — Find existing pull requests before starting work
2
+
3
+ **Version / slug** `chief-of-staff-pr-discovery`
4
+ **Date** 2026-11-23
5
+ **Author** Echo
6
+ **Second-pass reviewer** Pending independent review of this artifact
7
+
8
+ ## Summary of the change
9
+
10
+ Tier 2 due to the new authenticated API surface. The provider and HTTP route give the development Chief of Staff one lookup for open pull requests and the last 30 days of merged activity in the public Instar repository. The change touches the shared GitHub transport, a process-local cache and its route, the awareness registry and three proof tiers. Six specification review rounds and zero commit attempts. Review focused on source coverage, stale or contradictory evidence, credential controls and what the conversational replay can prove.
11
+
12
+ ## Decision-point inventory
13
+
14
+ - Route admission adds an existing master bearer check, explicit denial for scoped devices and an existing development Chief of Staff enablement check.
15
+ - Provider validation adds cursor, payload, deadline and request scope checks. Credential denial evicts the affected cache generation. Identified rate limiting sets a retry cooldown.
16
+ - Search adds case-insensitive literal matching, ranked results and a snapshot-bound continuation. The conversational agent assesses overlap and decides what to answer or assign.
17
+ - The shared GraphQL adapter adds typed failures with existing message strings and an opt-in decoded-body limit. Its default body-reading contract stays in use for existing callers.
18
+
19
+ ## 1. Over-block
20
+
21
+ A scoped dashboard or signed device cannot call this agent-only route, even for a public pull request. A caller without both a configured master bearer and a matching bearer is denied. GitHub GraphQL errors without a recognized throttle classification invalidate cached evidence. That choice can drop a useful lead after an ambiguous upstream error. A prior pull request already known by number remains reachable through its canonical GitHub link.
22
+
23
+ ## 2. Under-block
24
+
25
+ An unchanged provider token can lose access remotely between cache refreshes. Existing fresh results can remain visible inside the stated two-minute cache window until the next refresh observes the denial. A literal-only search can miss paraphrases or work in another store. The advisory instruction can be missed. The route cannot stop a duplicate assignment and reports scoped coverage instead of broad absence.
26
+
27
+ ## 3. Level-of-abstraction fit
28
+
29
+ The shared transport owns HTTPS, credentials, response size and provider failure shape. The provider derives a disposable GitHub view. The route enforces caller scope. The conversational agent weighs matches alongside other evidence and uses the existing request and assignment workflow.
30
+
31
+ ## 4. Signal vs authority compliance
32
+
33
+ - [x] The retrieval result is an advisory signal.
34
+
35
+ The route enforces structured credential and request facts. Query terms and result ranking carry no authority over an answer, assignment or conversation delivery. [Signal vs. Authority](../../docs/signal-vs-authority.md)
36
+
37
+ ## 4b. Judgment-point check
38
+
39
+ A current or previous pull request may use the same words for different work. The implementation returns both when available, with observation bounds and a canonical URL. The conversational agent judges whether a match is relevant. Credential, cursor and continuation facts are deterministic floors.
40
+
41
+ ## 5. Interactions
42
+
43
+ - The new read does not shadow Chief of Staff project status, evidence checks, or the path-based claim checker.
44
+ - Concurrent requests on one server share a refresh. Parallel state scans preserve separate quality statuses. Provider denial clears the active generation before its sibling can publish. Partial scans can expose earlier validated positives with their own observation times.
45
+ - A current row supersedes older evidence for the same number before searching. Validated merged evidence wins over contradictory open evidence. Continuation rejects changes to the source coverage, query, expiry and underlying revision.
46
+ - Requests trigger refreshes. No timer, write-back, notification or action dispatch starts from a search result.
47
+
48
+ ## 6. External surfaces
49
+
50
+ The route calls the public GitHub repository with the existing server credential. It returns canonical URLs, bounded quoted excerpts and coverage. It sends no owner query to GitHub. It writes no new database or durable records. The conversation remains the operator-facing surface. There is no new approval or other operator action.
51
+
52
+ ## 6b. Operator-surface quality
53
+
54
+ The existing conversational surface carries the answer and a phone-openable GitHub link. This change adds no dashboard page, approval action or form.
55
+
56
+ ## 7. Multi-machine posture
57
+
58
+ Machine-local by design. Each machine rebuilds a short-lived GitHub view using its own server credential. The observed repository scope and times apply to that request's machine. A cold or unauthorized machine reports unavailable coverage. No durable state follows the conversation, and the canonical GitHub URLs work on other machines. The provider emits no notices.
59
+
60
+ ## 8. Rollback cost
61
+
62
+ Revert the route, provider, opt-in transport extension and awareness entry, then deploy the patch. A restart drops the in-memory view. There are no records to migrate or repair. Callers temporarily lose the pull request lookup while the revert propagates.
63
+
64
+ ## Conclusion
65
+
66
+ The provider and route passed the focused tests and cold authenticated source probe. Independent side-effects review and the owner-facing incident, assignment and unavailable-source replays still need evidence before release.
67
+
68
+ ## Second-pass review
69
+
70
+ Independent review pending.
71
+
72
+ ## Evidence pointers
73
+
74
+ - Unit `tests/unit/chief-of-staff-pr-search.test.ts` and `tests/unit/github-runtime.test.ts`.
75
+ - HTTP `tests/integration/chief-of-staff-pr-search.test.ts`, including captured public GitHub response bytes.
76
+ - Production AgentServer route lifecycle `tests/e2e/chief-of-staff-alive.test.ts`.
77
+ - TypeScript compiled successfully. The focused run passed 87 tests in five files, covering the provider, shared transport, awareness registry, HTTP route, and production AgentServer lifecycle.
78
+ - The compiled provider queried GitHub on November 23 after a direct check confirmed pull request 3342 was open. The open scan completed in 1.88 seconds. The merged scan completed with coverage from October 25 at 03:53 UTC. The cold query returned the open pull request in 8.30 seconds, and the repeat used the cache.
79
+ - The production AgentServer test proves that the HTTP route can return the link. The three normal owner-channel replays remain separate release evidence.
80
+
81
+ ## Class-Closure Declaration
82
+
83
+ The change adds a read-through source for an information gap. It does not edit a defective existing agent-authored artifact or add an autonomous controller.
84
+
85
+ ## Class-Closure Declaration
86
+
87
+ - `unbounded-self-action` is not applicable. The lookup starts on an authenticated request. Bounded pagination and in-flight sharing terminate each attempt. A cooldown limits a later request and schedules no future work.
@@ -0,0 +1,7 @@
1
+ # Side-effects review for public pull request visibility
2
+
3
+ The shared Chief of Staff PR transport requests GitHub's repository visibility field and serves rows only on explicit public evidence. A previously public result can become unavailable after the next refresh observes private or uncertain visibility. The existing authorization-loss path clears both the live and fallback observations in either PR stream. Authentication failures disclose only unavailable coverage. Public rows retain their existing response shape and retention. The production HTTPS fixture now carries visibility. The old captured fixture remains unchanged and demonstrates the refusal without the new field.
4
+
5
+ The two-hour investigation of the permanent-links incident uses one public repo. This guard prevents credentials that can see a newly private repository from widening that public search scope. Tests cover private and missing visibility after a warm cache, the existing complete public response, and the real production server route against a mock of GitHub transport.
6
+
7
+ Independent review rechecked public-only scope, mixed-stream authorization denial and warm-cache eviction. Twelve focused HTTP tests passed against the new raw public response. Two production-boot cases passed against the controlled transport.
@@ -0,0 +1,13 @@
1
+ # Side-effects review for finding earlier conversations
2
+
3
+ **Scale and tier.** Tier 1, 18 files. The change updates lookup instructions and literal query construction using existing routes, stores, and authorization. One independent review round checked freshness and migration parity, the visibility boundary, and matching against the stores' tokenizer. It prompted the coverage guidance and a regression for contractions.
4
+
5
+ **Readers and writers.** New agents get the lookup wording through the scaffold. Existing reference-layout agents regenerate managed guidance from the scaffold. The legacy patch recognizes the shipped lines and exact shipped capability block. It preserves other text. All three existing FTS stores use the shared literal-term renderer. The existing stores own their schemas, sources, ranking, and database writes.
6
+
7
+ **Results and coverage.** Existing stopword and fallback behavior remains in SemanticMemory. The deliberate matching change is to keep punctuation inside literal phrases so the index tokenizes punctuation as it did on insertion. A token containing a dot, hyphen, or apostrophe can match adjacent indexed words. This uses FTS token boundaries. Check the original source to verify its punctuation. The guide names the search response's coverage fields and the Telegram fallback when app conversation search is unavailable.
8
+
9
+ **Authority and supervision.** These routes retain their own authorization and principal checks. The guidance only points to documented read paths. Search results and missing results are evidence for agent judgment, in keeping with Signal vs. Authority and Verify the State, Not Its Symbol. Agents read the results as evidence when deciding where to look next.
10
+
11
+ **Roll back.** Revert the text and query-renderer change. The existing indexes support either query renderer. The previously installed guidance will still point to a route that existed before this change; reference-layout agents regenerate guidance at update.
12
+
13
+ **Evidence.** Unit regressions cover actual indexed matches and misses for dotted and hyphenated names as well as apostrophes, and check fresh guidance and exact legacy replacements. HTTP integration checks the actual Telegram route. Reference-layout integration and fresh-init lifecycle check the files the agent reads.
@@ -0,0 +1,9 @@
1
+ # Internal Work Stays With The Agent
2
+
3
+ Some routine jobs the agent created for itself appeared as conversations for the owner. Opening one could show an empty chat, and the same job could increase Needs you even while its card said the agent was responsible. This made the app ask for attention that the owner did not actually owe.
4
+
5
+ The repair uses the recorded facts of each card to separate purely internal work from requests involving people. Internal work has no requester, outward action, person waiting, person question or owner-confirmed completion criterion. Such cards stay out of the ordinary work board, projects, conversations, saved pins, search and unread counts. They are still available through a deliberate link to the agent's internal cards. Real requests, spending approvals, questions and completion confirmations remain visible. A future owner-confirmed completion criterion is conservatively treated as person-facing, even before the final claim.
6
+
7
+ Creating an internal card no longer creates an empty owner chat. When an allowed progress note or actual execution needs history, that history is created and retained. Existing empty chats are kept in storage but excluded from owner discovery. Nothing is deleted. If the board cannot classify the history yet, the list reports that it is unavailable rather than briefly displaying everything. An older computer's unread hint is marked incomplete when it cannot prove the new owner projection.
8
+
9
+ This repair does not grant permission to start work. The current start policy, approved-device checks and limits still apply. It changes what the owner sees and the wording of the agent's status. The separate policy-approval wiring needs its own change and proof. The candidate is tested locally with focused logic, HTTP, startup and invented-data browser checks; complete verification and publication remain with the normal coordinator. A source preview is not a claim that the installed app has already changed.
@@ -0,0 +1,72 @@
1
+ # Side-Effects Review — Internal Work Owner Surfaces
2
+
3
+ **Version / slug:** internal-work-owner-surfaces
4
+ **Date:** 2026-11-23
5
+ **Author:** Echo
6
+ **Second-pass reviewer:** Independent attention, conversation and authority reviewers; source concurrence recorded separately from complete verification.
7
+
8
+ ## Summary of the change
9
+
10
+ Tier 1, reversible repair of existing read projections and empty conversation creation. A shared structured internal-card classification excludes routine agent work from owner discovery, counts and operational summaries. The explicit agent board retains inspection. Multiple bounded review passes were justified because the same defect crossed flat lists, pins, search, unread, Projects, source-linked cards and the optional hierarchy. Exact file/line totals and commit attempts belong in the final publication handoff. No policy adapter or execution authority change is included.
11
+
12
+ ## Decision-point inventory
13
+
14
+ - WorkCardStore classification and lanes: modify display classification using recorded creator/requester/carrier/outward/question/confirmation facts. No title or age heuristic.
15
+ - WorkBoard views, routes, source-card reads and pickup summaries: modify projection before totals, cuts and hashes; add deliberate internal-only read.
16
+ - WorkBoardRuntime materialization: modify eager creation; permit execution history only after existing note admission or actual dispatch.
17
+ - App store, conversation routes, pins, search, unread and enabled hierarchy: modify owner presentation using the same hidden keys; retain direct history and replication inventory.
18
+ - Existing start policy, proof checks, evidence/claim/note admission, person permissions and owner graph correction scope: pass through unchanged.
19
+
20
+ ## 1. Over-block
21
+
22
+ A requester-backed card is never classified as pure internal. Outward work, person carriers/waiters/questions, owner-confirmed criteria and pending real confirmation remain person-facing. A future owner-confirmed criterion is deliberately conservative because the owner has an eventual certification role. Unavailable classification returns an explicit unavailable read; it does not delete history or silently succeed with no work. Unknown metadata is not guessed from titles. Older clients retain absent-field compatibility.
23
+
24
+ ## 2. Under-block
25
+
26
+ Legacy empty chats already exist, so suppressing creation alone was insufficient. Shared discovery filtering covers those rows and old pins, pooled rows, keyword/meaning hits, triggering unread fallback, source-linked lists and retained graph nodes. A legacy peer unread hint cannot certify owner unread; its uncertainty is explicit. Older installed clients/servers may still display old behavior until updated. Physical phone and keyboard behavior is not established by the sample-data preview.
27
+
28
+ ## 3. Level-of-abstraction fit
29
+
30
+ The classification uses durable card facts at the service fold and is reused by projections. It does not ask each renderer to infer intent. Worker history, replication and direct storage remain separate from human discovery. No parallel policy gate is introduced.
31
+
32
+ ## 4. Signal vs authority compliance
33
+
34
+ This is an enumerable presentation invariant, not execution authority. Structured person obligations preserve existing owner action surfaces. The change neither grants approval nor decides that work may execute. Existing policy/proof gates remain authoritative; hidden not-started work still cannot record notes or dispatch through those gates. No brittle language detector holds authority.
35
+
36
+ ## 4b. Judgment-point check
37
+
38
+ No new static heuristic at a competing-signals decision point. The owner requested a specific deterministic presentation boundary. The predicate enumerates recorded provenance and obligations; it does not weigh ambiguous prose, urgency or liveness. Quiet, capacity and parked state alone do not establish a person decision.
39
+
40
+ ## 5. Interaction audit
41
+
42
+ Shadowing: apply visibility before count/cut/search/pin presentation, preserving actual person authorization checks. Double-fire: read routes never create history; dispatch and allowed notes materialize idempotently. Races: late-bound runtime absence raises unavailable instead of an empty hidden set; asynchronous pool reads propagate named visibility failures. Durable note pointers keep history available after draining/restart. Feedback loops: removing internal Needs rows does not alter workability or policy; no automatic policy change is added.
43
+
44
+ ## 6. External surfaces
45
+
46
+ Additive JSON fields agentInternal, conversationAvailable, ownerProjectionVersion and view describe the read contract. The explicit agent view is phone-completable through a visible dashboard link and the existing signed mobile board read. No external service write or stored-data migration occurs. Native received the exact typed semantics but waits for committed/tested head and separate live readiness. No new approval control is introduced.
47
+
48
+ ## 6b. Operator-surface quality
49
+
50
+ Primary content remains plain language. Internal not-started/withdrawn states describe agent status rather than asking the owner to approve. The agent view has a clear title/back link. Unavailable chat links do not mount an empty history. No new destructive control is added. Four normal Chrome invented-data cases at390 and1280 pixels show the appropriate owner/agent cards and dialogs, no sideways overflow, no application writes or JavaScript errors. This is scoped source-preview evidence, not broad design or installed-phone approval.
51
+
52
+ ## 7. Multi-machine posture
53
+
54
+ Proxied-on-read: local projections derive from replicated work-card records and pooled conversation reads. Legacy peer pages are filtered against local classification after merge; short/empty pages retain nextCursor. Version1 peers may supply owner unread hints; older hints report uncertainty. History and graph inventories are retained for replication. There are no new user-facing notices or machine-local status endpoints. Existing deep links remain agent routes; no host-specific link is introduced.
55
+
56
+ ## 8. Rollback cost
57
+
58
+ Revert the code and ship a patch. No schema or persisted record is rewritten or deleted. Existing internal history remains available in storage. A rollback restores old owner clutter until corrected again; deferred internal history may be materialized by old boot logic. Approval state remains unchanged.
59
+
60
+ ## Conclusion
61
+
62
+ The repair is reviewable as a read-projection and lazy-materialization change. Focused tests and source-preview evidence support its boundaries. Complete suites and publication go through Chief and throughput; no release or live policy claim is made. The missing trust-journey board-policy adapter is a separately recorded follow-up because its proof representation needs its own authority review.
63
+
64
+ ## Second-pass review
65
+
66
+ **Reviewer:** /root/protected_owner_surface_second_pass
67
+
68
+ **Independent read of the artifact: concur**
69
+
70
+ The independent reviewer read this artifact and the protected audit at `docs/audits/internal-work-owner-surfaces.md` on `b846a18daeec12ff5dc07ff50e58a3e03ea592d3` in full. The reviewer checked the classifier and lane branches, lazy history creation, the explicit agent board view, pooled discovery and pins, and the boot and board-disabled tests. The two successor commits changed test fixtures only.
71
+
72
+ The reviewer confirmed that the source preserves existing approval authority and stored history while filtering internal work from owner-facing discovery. Genuine owner requests and questions remain represented. The read-only convergence validator confirmed six audit rounds, closed findings, and a final round with zero new findings. The reviewer inspected stored focused results and did not rerun the full suites or witness prior review rounds. The concurrence covers this protected audit and its source evidence. It does not certify an installed release.