instar 1.3.2005 → 1.3.2007

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 (98) 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/WorkBoardPickupController.d.ts +1 -1
  16. package/dist/core/WorkBoardPickupController.d.ts.map +1 -1
  17. package/dist/core/WorkBoardPickupController.js +2 -2
  18. package/dist/core/WorkBoardPickupController.js.map +1 -1
  19. package/dist/core/WorkBoardRuntime.d.ts +3 -1
  20. package/dist/core/WorkBoardRuntime.d.ts.map +1 -1
  21. package/dist/core/WorkBoardRuntime.js +21 -4
  22. package/dist/core/WorkBoardRuntime.js.map +1 -1
  23. package/dist/core/WorkBoardService.d.ts +1 -1
  24. package/dist/core/WorkBoardService.d.ts.map +1 -1
  25. package/dist/core/WorkBoardService.js +3 -3
  26. package/dist/core/WorkBoardService.js.map +1 -1
  27. package/dist/core/WorkCardStore.d.ts +2 -0
  28. package/dist/core/WorkCardStore.d.ts.map +1 -1
  29. package/dist/core/WorkCardStore.js +18 -0
  30. package/dist/core/WorkCardStore.js.map +1 -1
  31. package/dist/core/githubRuntime.d.ts +6 -0
  32. package/dist/core/githubRuntime.d.ts.map +1 -1
  33. package/dist/core/githubRuntime.js +74 -6
  34. package/dist/core/githubRuntime.js.map +1 -1
  35. package/dist/core/workBoardViews.d.ts +6 -4
  36. package/dist/core/workBoardViews.d.ts.map +1 -1
  37. package/dist/core/workBoardViews.js +13 -8
  38. package/dist/core/workBoardViews.js.map +1 -1
  39. package/dist/core/workFrontDoorsGraph.d.ts +1 -1
  40. package/dist/core/workFrontDoorsGraph.d.ts.map +1 -1
  41. package/dist/core/workFrontDoorsGraph.js +2 -2
  42. package/dist/core/workFrontDoorsGraph.js.map +1 -1
  43. package/dist/core/workSourceCards.js +2 -2
  44. package/dist/core/workSourceCards.js.map +1 -1
  45. package/dist/data/standards-guard-index.json +1 -1
  46. package/dist/data/standards-guard-index.meta.json +2 -2
  47. package/dist/data/standards-registry.meta.json +1 -1
  48. package/dist/native/InstarWedgeCanary.app/Contents/MacOS/InstarWedgeCanary +0 -0
  49. package/dist/native/instar-desktop-host +0 -0
  50. package/dist/server/AgentServer.d.ts.map +1 -1
  51. package/dist/server/AgentServer.js +31 -3
  52. package/dist/server/AgentServer.js.map +1 -1
  53. package/dist/server/ConversationGraphSurface.d.ts +1 -0
  54. package/dist/server/ConversationGraphSurface.d.ts.map +1 -1
  55. package/dist/server/ConversationGraphSurface.js +7 -0
  56. package/dist/server/ConversationGraphSurface.js.map +1 -1
  57. package/dist/server/chiefOfStaffPrSearchRoutes.d.ts +9 -0
  58. package/dist/server/chiefOfStaffPrSearchRoutes.d.ts.map +1 -0
  59. package/dist/server/chiefOfStaffPrSearchRoutes.js +39 -0
  60. package/dist/server/chiefOfStaffPrSearchRoutes.js.map +1 -0
  61. package/dist/server/conversationGraphViewer.d.ts +2 -0
  62. package/dist/server/conversationGraphViewer.d.ts.map +1 -1
  63. package/dist/server/conversationGraphViewer.js +3 -2
  64. package/dist/server/conversationGraphViewer.js.map +1 -1
  65. package/dist/server/conversationMeaningSearch.d.ts.map +1 -1
  66. package/dist/server/conversationMeaningSearch.js +3 -1
  67. package/dist/server/conversationMeaningSearch.js.map +1 -1
  68. package/dist/server/fileRoutes.d.ts +2 -0
  69. package/dist/server/fileRoutes.d.ts.map +1 -1
  70. package/dist/server/fileRoutes.js +21 -0
  71. package/dist/server/fileRoutes.js.map +1 -1
  72. package/dist/server/mobileConversationRoutes.d.ts.map +1 -1
  73. package/dist/server/mobileConversationRoutes.js +202 -176
  74. package/dist/server/mobileConversationRoutes.js.map +1 -1
  75. package/dist/server/mobileConversationSearchRoutes.d.ts.map +1 -1
  76. package/dist/server/mobileConversationSearchRoutes.js +96 -87
  77. package/dist/server/mobileConversationSearchRoutes.js.map +1 -1
  78. package/dist/server/routes.d.ts.map +1 -1
  79. package/dist/server/routes.js +8 -0
  80. package/dist/server/routes.js.map +1 -1
  81. package/dist/server/workBoardRoutes.d.ts +2 -0
  82. package/dist/server/workBoardRoutes.d.ts.map +1 -1
  83. package/dist/server/workBoardRoutes.js +11 -4
  84. package/dist/server/workBoardRoutes.js.map +1 -1
  85. package/package.json +1 -1
  86. package/src/data/awareness/agent-work-cards.md +1 -1
  87. package/src/data/awareness/chief-of-staff-find-prior-work.md +11 -0
  88. package/src/data/builtin-manifest.json +47 -47
  89. package/src/data/standards-guard-index.json +1 -1
  90. package/src/data/standards-guard-index.meta.json +2 -2
  91. package/src/data/standards-registry.meta.json +1 -1
  92. package/upgrades/1.3.2006.md +38 -0
  93. package/upgrades/1.3.2007.md +24 -0
  94. package/upgrades/side-effects/chief-of-staff-pr-discovery.md +87 -0
  95. package/upgrades/side-effects/chief-of-staff-pr-public-visibility.md +7 -0
  96. package/upgrades/side-effects/internal-work-owner-surfaces.eli16.md +9 -0
  97. package/upgrades/side-effects/internal-work-owner-surfaces.md +72 -0
  98. package/upgrades/side-effects/sec174-file-editor-runpaths.md +43 -0
@@ -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.
@@ -0,0 +1,43 @@
1
+ # Side effects: file editor fence gap, run paths (SEC-174)
2
+
3
+ In plain words: the dashboard file editor no longer saves files a program runs that carry no execute bit: anything in a development checkout under `.worktrees/`, the boot wrapper `.instar/instar-boot.*`, and `package.json` or `.npmrc` at any depth. Viewing is unchanged.
4
+
5
+ Tier 1 by size, security-sensitive: an independent second-pass review is attached below. Size: `src/server/fileRoutes.ts` (two list entries, a name list, a new exported `hasNeverEditableName`, one line in `isNeverEditable`), 1 new unit test file, and one end-to-end case.
6
+
7
+ ## What changes for running agents
8
+ - **Never-editable list.** `.worktrees/` and the prefix `.instar/instar-boot.` join the list. The existing case folding, separator folding and nested-root matching apply.
9
+ - **Names at any depth.** `package.json` and `.npmrc` are matched on the last path segment, in any case. Look-alikes stay editable: `package-lock.json`, `my-package.json`, `.npmrc.example`, and a folder named `package.json`.
10
+ - **Every chokepoint.** The save route, the read route's `editable` flag, the link route and the `editablePaths` config check all use `isNeverEditable`. Save and read check the resolved path too, so a link under another name is refused.
11
+ - **Who notices.** An owner who edited a manifest, a package manager setting or a development checkout from the dashboard. None of these was a supported use, and all still open read-only. Docs and notes inside `.worktrees/` also become read-only, which was accepted when the fence was approved.
12
+ - **Deliberately not fenced.** Tool config files (for example `vitest.config.*`) and instruction files, which are editable on purpose.
13
+
14
+ ## Signal vs authority
15
+ Not applicable as a new judgment: this extends a deterministic deny list that is an invariant by design ("a dashboard credential must never yield arbitrary code execution").
16
+
17
+ ## Second-pass review
18
+ **Reviewer:** independent Claude Sonnet subagent (fresh context, read-only, given the finding and the diff), 2026-11-22. Verdict: CONCUR, no blocking items. It confirmed:
19
+ - every chokepoint consults the predicate;
20
+ - case, backslash, `./`, trailing-slash and symlink spellings are refused, and a `.worktrees` linked outside the project is refused by path validation;
21
+ - the boot wrapper's real names in the source (`.cjs`, `.js`, `.sh`) are all covered by the prefix;
22
+ - look-alikes stay editable;
23
+ - the tests fail on the previous commit.
24
+
25
+ It suggested a link-alias test, which was added. It also noted that the link route has no dedicated test, but it shares the same predicate.
26
+
27
+ ## SEC-178 folded in (backup snapshots)
28
+ - Change: `.instar/backups/` joins NEVER_EDITABLE_PREFIXES. BackupManager keeps its snapshots at `<stateDir>/backups`, and a restore copies every manifest file back to `<stateDir>/<file>`, fenced ones such as `jobs.json` included. The manifest hash covers only the file list and total size, so editing a snapshot copy needed no manifest change.
29
+ - Over-block: none expected. Nobody edits a snapshot from the phone; snapshots stay viewable and restorable. The nested match also fences a `.instar/backups/` inside a worktree copy, which is fine.
30
+ - Under-block: an agent whose stateDir is not `.instar` keeps its snapshots elsewhere; the default layout is `.instar`. Not done here, and recorded on the ledger for a later pass: keying the manifest hash over file contents, and the sibling copy paths (skill rendering from `.instar/skills/`, git-sync pull, job fork). Skipping fenced destinations at restore was declined because restoring the jobs list is the point of a restore.
31
+ - Review: an independent Sonnet reviewer CONCURRED with no blocking items. It confirmed save is the only write route and checks both the requested and resolved path, PATCH /api/files/config also consults the fence, and case, dot-segment, separator, link and nested variants are covered. Its non-blocking suggestions (derive the prefix from a non-default stateDir; key the manifest hash over contents) are recorded above as not done here.
32
+
33
+ ## Rollback
34
+ Revert the commit. No stored state changes.
35
+
36
+ ## Tests
37
+ - `tests/unit/sec174-file-editor-runpaths.test.ts` (new) through the real save and read routes, with files written without an execute bit.
38
+ - `tests/e2e/file-viewer-e2e.test.ts`: a `package.json` inside an editable folder is refused. Not run by hand on the M5 (standing rule); Local Verify runs it.
39
+ - `tests/unit/sec178-file-editor-backups-fence.test.ts` (new) through the real save route and the real BackupManager restore. Three of four cases fail without the fence.
40
+ - Existing fence and editor tests pass unchanged: `sec173-file-editor-git-fence`, `file-editor-never-editable-bypasses`, `console-files`, `file-routes-never-served-key-material`.
41
+
42
+ ## Class-Closure Declaration
43
+ - `unbounded-self-action`: closure n/a. No loop or spawn added.