@rubytech/create-maxy-code 0.1.573 → 0.1.574

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 (127) hide show
  1. package/package.json +1 -1
  2. package/payload/platform/lib/admins-write/__tests__/index.test.ts +97 -0
  3. package/payload/platform/lib/admins-write/dist/index.d.ts +12 -0
  4. package/payload/platform/lib/admins-write/dist/index.d.ts.map +1 -1
  5. package/payload/platform/lib/admins-write/dist/index.js +27 -5
  6. package/payload/platform/lib/admins-write/dist/index.js.map +1 -1
  7. package/payload/platform/lib/admins-write/src/index.ts +35 -5
  8. package/payload/platform/lib/admins-write/vitest.config.ts +14 -0
  9. package/payload/platform/lib/dispatch-read/dist/session.d.ts.map +1 -1
  10. package/payload/platform/lib/dispatch-read/dist/session.js +19 -4
  11. package/payload/platform/lib/dispatch-read/dist/session.js.map +1 -1
  12. package/payload/platform/lib/dispatch-read/src/__tests__/session.test.ts +91 -0
  13. package/payload/platform/lib/dispatch-read/src/session.ts +25 -6
  14. package/payload/platform/plugins/admin/.claude-plugin/plugin.json +1 -1
  15. package/payload/platform/plugins/admin/PLUGIN.md +8 -3
  16. package/payload/platform/plugins/admin/hooks/__tests__/html-structure-gate.test.sh +264 -0
  17. package/payload/platform/plugins/admin/hooks/__tests__/quote-render-pdf-conformance.test.sh +122 -24
  18. package/payload/platform/plugins/admin/hooks/__tests__/specialist-dispatch-gate.test.sh +158 -0
  19. package/payload/platform/plugins/admin/hooks/html-structure-gate.sh +165 -0
  20. package/payload/platform/plugins/admin/hooks/quote-render-pdf-conformance.sh +111 -19
  21. package/payload/platform/plugins/admin/hooks/specialist-dispatch-gate.sh +159 -0
  22. package/payload/platform/plugins/admin/mcp/dist/admin-bind-classify.d.ts +27 -0
  23. package/payload/platform/plugins/admin/mcp/dist/admin-bind-classify.d.ts.map +1 -0
  24. package/payload/platform/plugins/admin/mcp/dist/admin-bind-classify.js +29 -0
  25. package/payload/platform/plugins/admin/mcp/dist/admin-bind-classify.js.map +1 -0
  26. package/payload/platform/plugins/admin/mcp/dist/binding-validate.d.ts +11 -0
  27. package/payload/platform/plugins/admin/mcp/dist/binding-validate.d.ts.map +1 -0
  28. package/payload/platform/plugins/admin/mcp/dist/binding-validate.js +20 -0
  29. package/payload/platform/plugins/admin/mcp/dist/binding-validate.js.map +1 -0
  30. package/payload/platform/plugins/admin/mcp/dist/index.js +133 -1
  31. package/payload/platform/plugins/admin/mcp/dist/index.js.map +1 -1
  32. package/payload/platform/plugins/admin/skills/admin-user-management/SKILL.md +32 -2
  33. package/payload/platform/plugins/admin/skills/platform-architecture/SKILL.md +157 -46
  34. package/payload/platform/plugins/admin/skills/whats-new/SKILL.md +8 -0
  35. package/payload/platform/plugins/docs/references/admin-ui.md +71 -31
  36. package/payload/platform/plugins/docs/references/channel-wake-and-prompt.md +38 -13
  37. package/payload/platform/plugins/docs/references/internals.md +6 -0
  38. package/payload/platform/plugins/docs/references/outlook-guide.md +31 -1
  39. package/payload/platform/plugins/docs/references/troubleshooting.md +10 -0
  40. package/payload/platform/plugins/outlook/PLUGIN.md +3 -1
  41. package/payload/platform/plugins/outlook/mcp/dist/__tests__/draft-ledger-write-sites.test.d.ts +2 -0
  42. package/payload/platform/plugins/outlook/mcp/dist/__tests__/draft-ledger-write-sites.test.d.ts.map +1 -0
  43. package/payload/platform/plugins/outlook/mcp/dist/__tests__/draft-ledger-write-sites.test.js +177 -0
  44. package/payload/platform/plugins/outlook/mcp/dist/__tests__/draft-ledger-write-sites.test.js.map +1 -0
  45. package/payload/platform/plugins/outlook/mcp/dist/__tests__/draft-ledger.test.d.ts +2 -0
  46. package/payload/platform/plugins/outlook/mcp/dist/__tests__/draft-ledger.test.d.ts.map +1 -0
  47. package/payload/platform/plugins/outlook/mcp/dist/__tests__/draft-ledger.test.js +130 -0
  48. package/payload/platform/plugins/outlook/mcp/dist/__tests__/draft-ledger.test.js.map +1 -0
  49. package/payload/platform/plugins/outlook/mcp/dist/__tests__/draft-reconcile.test.d.ts +2 -0
  50. package/payload/platform/plugins/outlook/mcp/dist/__tests__/draft-reconcile.test.d.ts.map +1 -0
  51. package/payload/platform/plugins/outlook/mcp/dist/__tests__/draft-reconcile.test.js +162 -0
  52. package/payload/platform/plugins/outlook/mcp/dist/__tests__/draft-reconcile.test.js.map +1 -0
  53. package/payload/platform/plugins/outlook/mcp/dist/__tests__/draft-state-fields.test.d.ts +2 -0
  54. package/payload/platform/plugins/outlook/mcp/dist/__tests__/draft-state-fields.test.d.ts.map +1 -0
  55. package/payload/platform/plugins/outlook/mcp/dist/__tests__/draft-state-fields.test.js +168 -0
  56. package/payload/platform/plugins/outlook/mcp/dist/__tests__/draft-state-fields.test.js.map +1 -0
  57. package/payload/platform/plugins/outlook/mcp/dist/lib/draft-ledger.d.ts +64 -0
  58. package/payload/platform/plugins/outlook/mcp/dist/lib/draft-ledger.d.ts.map +1 -0
  59. package/payload/platform/plugins/outlook/mcp/dist/lib/draft-ledger.js +110 -0
  60. package/payload/platform/plugins/outlook/mcp/dist/lib/draft-ledger.js.map +1 -0
  61. package/payload/platform/plugins/outlook/mcp/dist/lib/draft-reconcile.d.ts +119 -0
  62. package/payload/platform/plugins/outlook/mcp/dist/lib/draft-reconcile.d.ts.map +1 -0
  63. package/payload/platform/plugins/outlook/mcp/dist/lib/draft-reconcile.js +0 -0
  64. package/payload/platform/plugins/outlook/mcp/dist/lib/draft-reconcile.js.map +1 -0
  65. package/payload/platform/plugins/outlook/mcp/dist/scripts/draft-reconcile.d.ts +8 -0
  66. package/payload/platform/plugins/outlook/mcp/dist/scripts/draft-reconcile.d.ts.map +1 -0
  67. package/payload/platform/plugins/outlook/mcp/dist/scripts/draft-reconcile.js +247 -0
  68. package/payload/platform/plugins/outlook/mcp/dist/scripts/draft-reconcile.js.map +1 -0
  69. package/payload/platform/plugins/outlook/mcp/dist/tools/draft-send.d.ts.map +1 -1
  70. package/payload/platform/plugins/outlook/mcp/dist/tools/draft-send.js +10 -0
  71. package/payload/platform/plugins/outlook/mcp/dist/tools/draft-send.js.map +1 -1
  72. package/payload/platform/plugins/outlook/mcp/dist/tools/draft.d.ts.map +1 -1
  73. package/payload/platform/plugins/outlook/mcp/dist/tools/draft.js +21 -0
  74. package/payload/platform/plugins/outlook/mcp/dist/tools/draft.js.map +1 -1
  75. package/payload/platform/plugins/outlook/mcp/dist/tools/mail-fetch-body.d.ts +16 -0
  76. package/payload/platform/plugins/outlook/mcp/dist/tools/mail-fetch-body.d.ts.map +1 -1
  77. package/payload/platform/plugins/outlook/mcp/dist/tools/mail-fetch-body.js +5 -1
  78. package/payload/platform/plugins/outlook/mcp/dist/tools/mail-fetch-body.js.map +1 -1
  79. package/payload/platform/plugins/outlook/mcp/dist/tools/mail-list.d.ts +4 -0
  80. package/payload/platform/plugins/outlook/mcp/dist/tools/mail-list.d.ts.map +1 -1
  81. package/payload/platform/plugins/outlook/mcp/dist/tools/mail-list.js +2 -1
  82. package/payload/platform/plugins/outlook/mcp/dist/tools/mail-list.js.map +1 -1
  83. package/payload/platform/plugins/outlook/mcp/dist/tools/mail-reply.d.ts.map +1 -1
  84. package/payload/platform/plugins/outlook/mcp/dist/tools/mail-reply.js +24 -0
  85. package/payload/platform/plugins/outlook/mcp/dist/tools/mail-reply.js.map +1 -1
  86. package/payload/platform/plugins/outlook/mcp/dist/tools/mail-search.d.ts.map +1 -1
  87. package/payload/platform/plugins/outlook/mcp/dist/tools/mail-search.js +2 -1
  88. package/payload/platform/plugins/outlook/mcp/dist/tools/mail-search.js.map +1 -1
  89. package/payload/platform/plugins/outlook/mcp/dist/tools/mail-send.d.ts.map +1 -1
  90. package/payload/platform/plugins/outlook/mcp/dist/tools/mail-send.js +29 -0
  91. package/payload/platform/plugins/outlook/mcp/dist/tools/mail-send.js.map +1 -1
  92. package/payload/platform/plugins/scheduling/mcp/dist/__tests__/draft-reconcile-throttle.test.d.ts +2 -0
  93. package/payload/platform/plugins/scheduling/mcp/dist/__tests__/draft-reconcile-throttle.test.d.ts.map +1 -0
  94. package/payload/platform/plugins/scheduling/mcp/dist/__tests__/draft-reconcile-throttle.test.js +21 -0
  95. package/payload/platform/plugins/scheduling/mcp/dist/__tests__/draft-reconcile-throttle.test.js.map +1 -0
  96. package/payload/platform/plugins/scheduling/mcp/dist/lib/draft-reconcile-throttle.d.ts +13 -0
  97. package/payload/platform/plugins/scheduling/mcp/dist/lib/draft-reconcile-throttle.d.ts.map +1 -0
  98. package/payload/platform/plugins/scheduling/mcp/dist/lib/draft-reconcile-throttle.js +10 -0
  99. package/payload/platform/plugins/scheduling/mcp/dist/lib/draft-reconcile-throttle.js.map +1 -0
  100. package/payload/platform/plugins/scheduling/mcp/dist/scripts/check-due-events.js +54 -0
  101. package/payload/platform/plugins/scheduling/mcp/dist/scripts/check-due-events.js.map +1 -1
  102. package/payload/platform/services/claude-session-manager/dist/authored-specialist-tools.d.ts +32 -0
  103. package/payload/platform/services/claude-session-manager/dist/authored-specialist-tools.d.ts.map +1 -0
  104. package/payload/platform/services/claude-session-manager/dist/authored-specialist-tools.js +144 -0
  105. package/payload/platform/services/claude-session-manager/dist/authored-specialist-tools.js.map +1 -0
  106. package/payload/platform/services/claude-session-manager/dist/canonical-tool-names.generated.d.ts.map +1 -1
  107. package/payload/platform/services/claude-session-manager/dist/canonical-tool-names.generated.js +1 -0
  108. package/payload/platform/services/claude-session-manager/dist/canonical-tool-names.generated.js.map +1 -1
  109. package/payload/platform/services/claude-session-manager/dist/html-structure-census.d.ts +44 -0
  110. package/payload/platform/services/claude-session-manager/dist/html-structure-census.d.ts.map +1 -0
  111. package/payload/platform/services/claude-session-manager/dist/html-structure-census.js +185 -0
  112. package/payload/platform/services/claude-session-manager/dist/html-structure-census.js.map +1 -0
  113. package/payload/platform/services/claude-session-manager/dist/index.js +125 -0
  114. package/payload/platform/services/claude-session-manager/dist/index.js.map +1 -1
  115. package/payload/platform/services/claude-session-manager/dist/quote-delivery-reconcile.d.ts.map +1 -1
  116. package/payload/platform/services/claude-session-manager/dist/quote-delivery-reconcile.js +7 -0
  117. package/payload/platform/services/claude-session-manager/dist/quote-delivery-reconcile.js.map +1 -1
  118. package/payload/platform/services/claude-session-manager/dist/quote-print-census.d.ts +42 -0
  119. package/payload/platform/services/claude-session-manager/dist/quote-print-census.d.ts.map +1 -0
  120. package/payload/platform/services/claude-session-manager/dist/quote-print-census.js +254 -0
  121. package/payload/platform/services/claude-session-manager/dist/quote-print-census.js.map +1 -0
  122. package/payload/platform/services/claude-session-manager/dist/specialist-census.d.ts +92 -0
  123. package/payload/platform/services/claude-session-manager/dist/specialist-census.d.ts.map +1 -0
  124. package/payload/platform/services/claude-session-manager/dist/specialist-census.js +227 -0
  125. package/payload/platform/services/claude-session-manager/dist/specialist-census.js.map +1 -0
  126. package/payload/platform/templates/account-settings.json +8 -4
  127. package/payload/server/server.js +465 -361
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quote-print-census.js","sourceRoot":"","sources":["../src/quote-print-census.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,EAAE;AACF,4EAA4E;AAC5E,+EAA+E;AAC/E,iFAAiF;AACjF,iFAAiF;AACjF,iFAAiF;AACjF,kFAAkF;AAClF,qCAAqC;AACrC,EAAE;AACF,+EAA+E;AAC/E,iFAAiF;AACjF,iFAAiF;AACjF,oEAAoE;AACpE,EAAE;AACF,6EAA6E;AAC7E,6EAA6E;AAC7E,8CAA8C;AAE9C,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAC7C,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AACzE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AAErC,MAAM,aAAa,GAAG,SAAS,CAAC,QAAQ,CAAC,CAAA;AAEzC,MAAM,CAAC,MAAM,GAAG,GAAG,sBAAsB,CAAA;AAEzC;;;;;;;;;;4DAU4D;AAC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IAAI,mBAAmB,CAAC,GAAG,CAAC,CAAC,MAAM,CAAA;QAC3D,CAAC;IACH,CAAC;IAED,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAA;IACtC,OAAO,MAAM,CAAA;AACf,CAAC;AAOD;;;gEAGgE;AAChE,MAAM,UAAU,iBAAiB,CAAC,IAA8C;IAC9E,IAAI,KAAK,GAA0B,IAAI,CAAA;IACvC,IAAI,OAAO,GAAG,KAAK,CAAA;IACnB,OAAO;QACL,KAAK;YACH,IAAI,KAAK;gBAAE,OAAM;YACjB,KAAK,GAAG,WAAW,CAAC,GAAG,EAAE;gBACvB,IAAI,OAAO;oBAAE,OAAM;gBACnB,OAAO,GAAG,IAAI,CAAA;gBACd,KAAK,kBAAkB,CAAC,IAAI,CAAC;qBAC1B,KAAK,CAAC,CAAC,GAAY,EAAE,EAAE;oBACtB,IAAI,CAAC,MAAM,CACT,GAAG,GAAG,2BAA2B,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CACpF,CAAA;gBACH,CAAC,CAAC;qBACD,OAAO,CAAC,GAAG,EAAE;oBACZ,OAAO,GAAG,KAAK,CAAA;gBACjB,CAAC,CAAC,CAAA;YACN,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,CAAA;YACnB,IAAI,OAAO,KAAK,CAAC,KAAK,KAAK,UAAU;gBAAE,KAAK,CAAC,KAAK,EAAE,CAAA;QACtD,CAAC;QACD,IAAI;YACF,IAAI,KAAK,EAAE,CAAC;gBACV,aAAa,CAAC,KAAK,CAAC,CAAA;gBACpB,KAAK,GAAG,IAAI,CAAA;YACd,CAAC;QACH,CAAC;KACF,CAAA;AACH,CAAC"}
@@ -0,0 +1,92 @@
1
+ export declare const WINDOW_MS: number;
2
+ export type Logger = (line: string) => void;
3
+ export interface TranscriptEvent {
4
+ /** Epoch ms from the record's own `timestamp`, so the window is per-record
5
+ * rather than per-file. A transcript appended to over days holds events on
6
+ * both sides of the boundary. */
7
+ ts: number;
8
+ kind: 'dispatch' | 'bypass';
9
+ /** Dispatch: the `tool_use` id, resolved to an agent type later. Bypass: the
10
+ * tool name. */
11
+ key: string;
12
+ }
13
+ /** Dispatches and gated calls in one transcript.
14
+ *
15
+ * The input is the PARENT session transcript, which is the main conversation by
16
+ * construction: Task 2469 measured all 41,456 records of one parent as
17
+ * `isSidechain: false`, carrying none of a subagent's tool calls. So a
18
+ * specialist's own use of its own tool can never be counted as a bypass here.
19
+ *
20
+ * A line that will not parse yields nothing rather than throwing: the corpus
21
+ * carries partial trailing writes, and one bad line must not abort the
22
+ * transcript it sits in.
23
+ *
24
+ * A dispatch with no `tool_use` id is skipped rather than counted: it cannot be
25
+ * attributed to a specialist, and an unattributable dispatch counted as a
26
+ * success is exactly the false green this task exists to remove. */
27
+ export declare function scanTranscript(lines: Iterable<string>, gated: ReadonlySet<string>): TranscriptEvent[];
28
+ /** The two counts over one window.
29
+ *
30
+ * A dispatch counts only when its agent type names one of the account's own
31
+ * specialists. A dispatch to a shipped specialist is not evidence that the
32
+ * account's own clerks are being used, and an id that resolves to nothing is
33
+ * not counted either: "we could not tell who ran" is not "the account's
34
+ * specialist ran". */
35
+ export declare function countWindow(events: readonly TranscriptEvent[], agentTypeById: ReadonlyMap<string, string>, authoredNames: ReadonlySet<string>, sinceMs: number): {
36
+ dispatched: number;
37
+ bypassed: number;
38
+ };
39
+ /** The every-tick line. `declared>0 dispatched7d=0` is the alarm; `bypassed7d=0`
40
+ * with `dispatched7d>0` is the healthy state. Emitted including all-zero, so
41
+ * the line's presence proves the check ran. */
42
+ export declare function formatCensus(p: {
43
+ accountId8: string;
44
+ declared: number;
45
+ dispatched7d: number;
46
+ bypassed7d: number;
47
+ }): string;
48
+ /** The error path, deliberately carrying NO counts. Reporting `declared=0` when
49
+ * the card set could not be read would assert something never measured, and
50
+ * would be indistinguishable from an account that genuinely has none. Task 2469
51
+ * applied the same rule to `op=agent-registry-resolution`. */
52
+ export declare function formatCensusDegraded(p: {
53
+ accountId8: string;
54
+ reason: string;
55
+ }): string;
56
+ export interface CensusAccount {
57
+ accountId: string;
58
+ accountDir: string;
59
+ }
60
+ export interface CensusTranscript {
61
+ path: string;
62
+ sessionId: string;
63
+ mtimeMs: number;
64
+ }
65
+ export interface ResolvedGating {
66
+ declared: number;
67
+ authoredNames: ReadonlySet<string>;
68
+ gated: ReadonlySet<string>;
69
+ }
70
+ export interface SpecialistCensusDeps {
71
+ intervalMs: number;
72
+ logger: Logger;
73
+ now(): number;
74
+ listAccounts(): readonly CensusAccount[];
75
+ /** May throw; a throw is the degraded path for that ACCOUNT and never for the
76
+ * run, so one unreadable account does not cost every other account its line. */
77
+ resolveGated(accountDir: string): ResolvedGating;
78
+ /** May throw; same rule as `resolveGated`. */
79
+ listTranscripts(accountDir: string): readonly CensusTranscript[];
80
+ readLines(path: string): Iterable<string>;
81
+ /** `tool_use` id to the agent type it spawned, read from that session's
82
+ * `subagents/agent-<id>.meta.json` files. Task 2469 established that sibling
83
+ * meta as the only surface tying a subagent run to its type. */
84
+ readAgentTypes(accountDir: string, sessionId: string): ReadonlyMap<string, string>;
85
+ }
86
+ export interface SpecialistCensus {
87
+ start(): void;
88
+ stop(): void;
89
+ tickOnce(): void;
90
+ }
91
+ export declare function createSpecialistCensus(deps: SpecialistCensusDeps): SpecialistCensus;
92
+ //# sourceMappingURL=specialist-census.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"specialist-census.d.ts","sourceRoot":"","sources":["../src/specialist-census.ts"],"names":[],"mappings":"AAuBA,eAAO,MAAM,SAAS,QAA0B,CAAA;AAEhD,MAAM,MAAM,MAAM,GAAG,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;AAS3C,MAAM,WAAW,eAAe;IAC9B;;sCAEkC;IAClC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,UAAU,GAAG,QAAQ,CAAA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nC,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,MAAM,CAAA;IACd,GAAG,IAAI,MAAM,CAAA;IACb,YAAY,IAAI,SAAS,aAAa,EAAE,CAAA;IACxC;qFACiF;IACjF,YAAY,CAAC,UAAU,EAAE,MAAM,GAAG,cAAc,CAAA;IAChD,8CAA8C;IAC9C,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS,gBAAgB,EAAE,CAAA;IAChE,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAA;IACzC;;qEAEiE;IACjE,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACnF;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,IAAI,IAAI,CAAA;IACb,IAAI,IAAI,IAAI,CAAA;IACZ,QAAQ,IAAI,IAAI,CAAA;CACjB;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,oBAAoB,GAAG,gBAAgB,CAoHnF"}
@@ -0,0 +1,227 @@
1
+ // Task 2244 — an account's own specialists are present, and nothing dispatches
2
+ // them.
3
+ //
4
+ // Skipped delegation writes no record: the inline draft logs an ordinary
5
+ // success, so no log line carries the fault and no re-run reproduces it. On
6
+ // account 2078cb54 four authored clerks owned email, works orders, invoices and
7
+ // quotes while the admin produced all of them inline — zero dispatches against
8
+ // 472 direct `email-draft` calls, for three days, found by the operator rather
9
+ // than by the platform. Only a standing check that reports on a QUIET account
10
+ // can see that state, which is why the line is emitted including all-zero.
11
+ //
12
+ // This is a fourth signal beside three that cannot answer it. The registry
13
+ // reconcile (`account-agent-registry.ts`) says a specialist CAN be reached. The
14
+ // roster census says it is advertised and resolvable. The preference audit
15
+ // (`specialist-preference-audit.ts`) says the RIGHT specialist wrote an owned
16
+ // artefact. None of them counts a dispatch.
17
+ //
18
+ // Shape mirrors specialist-preference-audit.ts: pure scanners, selector and
19
+ // formatters, plus an impure factory whose setInterval is unref'd and whose
20
+ // readers are injected.
21
+ const TAG = '[specialist-census]';
22
+ export const WINDOW_MS = 7 * 24 * 60 * 60 * 1000;
23
+ /** The dispatch tool has carried two names across CLI versions, and both are
24
+ * present in the corpus on disk: the current CLI writes `"name":"Agent"`, and
25
+ * Task 2237 recorded `"name":"Task"` on the same install. Counting one is how a
26
+ * brittle grep reads as a real zero — the trap that task documented when it
27
+ * validated its own count against a tool it knew had run. */
28
+ const DISPATCH_TOOLS = new Set(['Agent', 'Task']);
29
+ /** Dispatches and gated calls in one transcript.
30
+ *
31
+ * The input is the PARENT session transcript, which is the main conversation by
32
+ * construction: Task 2469 measured all 41,456 records of one parent as
33
+ * `isSidechain: false`, carrying none of a subagent's tool calls. So a
34
+ * specialist's own use of its own tool can never be counted as a bypass here.
35
+ *
36
+ * A line that will not parse yields nothing rather than throwing: the corpus
37
+ * carries partial trailing writes, and one bad line must not abort the
38
+ * transcript it sits in.
39
+ *
40
+ * A dispatch with no `tool_use` id is skipped rather than counted: it cannot be
41
+ * attributed to a specialist, and an unattributable dispatch counted as a
42
+ * success is exactly the false green this task exists to remove. */
43
+ export function scanTranscript(lines, gated) {
44
+ const out = [];
45
+ for (const line of lines) {
46
+ let parsed;
47
+ try {
48
+ parsed = JSON.parse(line);
49
+ }
50
+ catch {
51
+ continue;
52
+ }
53
+ const record = parsed;
54
+ if (typeof record.timestamp !== 'string')
55
+ continue;
56
+ const ts = Date.parse(record.timestamp);
57
+ if (Number.isNaN(ts))
58
+ continue;
59
+ const content = record.message?.content;
60
+ if (!Array.isArray(content))
61
+ continue;
62
+ for (const block of content) {
63
+ if (!block || typeof block !== 'object')
64
+ continue;
65
+ const b = block;
66
+ if (b.type !== 'tool_use' || typeof b.name !== 'string')
67
+ continue;
68
+ if (DISPATCH_TOOLS.has(b.name)) {
69
+ if (typeof b.id === 'string' && b.id.length > 0) {
70
+ out.push({ ts, kind: 'dispatch', key: b.id });
71
+ }
72
+ continue;
73
+ }
74
+ if (gated.has(b.name))
75
+ out.push({ ts, kind: 'bypass', key: b.name });
76
+ }
77
+ }
78
+ return out;
79
+ }
80
+ /** The two counts over one window.
81
+ *
82
+ * A dispatch counts only when its agent type names one of the account's own
83
+ * specialists. A dispatch to a shipped specialist is not evidence that the
84
+ * account's own clerks are being used, and an id that resolves to nothing is
85
+ * not counted either: "we could not tell who ran" is not "the account's
86
+ * specialist ran". */
87
+ export function countWindow(events, agentTypeById, authoredNames, sinceMs) {
88
+ let dispatched = 0;
89
+ let bypassed = 0;
90
+ for (const event of events) {
91
+ if (event.ts < sinceMs)
92
+ continue;
93
+ if (event.kind === 'bypass') {
94
+ bypassed++;
95
+ continue;
96
+ }
97
+ const agentType = agentTypeById.get(event.key);
98
+ if (agentType !== undefined && authoredNames.has(agentType))
99
+ dispatched++;
100
+ }
101
+ return { dispatched, bypassed };
102
+ }
103
+ /** The every-tick line. `declared>0 dispatched7d=0` is the alarm; `bypassed7d=0`
104
+ * with `dispatched7d>0` is the healthy state. Emitted including all-zero, so
105
+ * the line's presence proves the check ran. */
106
+ export function formatCensus(p) {
107
+ return `${TAG} account=${p.accountId8} declared=${p.declared}` +
108
+ ` dispatched7d=${p.dispatched7d} bypassed7d=${p.bypassed7d}`;
109
+ }
110
+ /** The error path, deliberately carrying NO counts. Reporting `declared=0` when
111
+ * the card set could not be read would assert something never measured, and
112
+ * would be indistinguishable from an account that genuinely has none. Task 2469
113
+ * applied the same rule to `op=agent-registry-resolution`. */
114
+ export function formatCensusDegraded(p) {
115
+ return `${TAG} account=${p.accountId8} op=degraded reason=${p.reason}`;
116
+ }
117
+ export function createSpecialistCensus(deps) {
118
+ /** transcript path -> the events found in it, at that mtime and under that
119
+ * gated set.
120
+ *
121
+ * Events rather than counts, because the window moves every tick while the
122
+ * file does not: a cached count would freeze at the window in force when the
123
+ * file was last read, and an account that went quiet would keep reporting the
124
+ * activity it had a fortnight ago.
125
+ *
126
+ * Keyed on the gated set as well as the mtime, because the gated set is not a
127
+ * property of the transcript. Authoring a specialist widens it while every
128
+ * existing file keeps its mtime, so an mtime-only cache would keep reporting
129
+ * the counts of the narrower set and the new clerk's tools would read as
130
+ * never bypassed on the day it was created. A transcript is re-read only when
131
+ * one of the two moves, so a steady state still costs one stat per file. */
132
+ const seen = new Map();
133
+ let timer = null;
134
+ /** A stable identity for a gated set, so a cache hit can prove the events were
135
+ * scanned under the set in force now. */
136
+ function gatingKeyFor(gated) {
137
+ return Array.from(gated).sort().join(',');
138
+ }
139
+ function tickOnce() {
140
+ const sinceMs = deps.now() - WINDOW_MS;
141
+ const live = new Set();
142
+ for (const account of deps.listAccounts()) {
143
+ const accountId8 = account.accountId.slice(0, 8);
144
+ let gating;
145
+ let transcripts;
146
+ try {
147
+ gating = deps.resolveGated(account.accountDir);
148
+ transcripts = deps.listTranscripts(account.accountDir);
149
+ }
150
+ catch (err) {
151
+ deps.logger(formatCensusDegraded({
152
+ accountId8,
153
+ reason: err instanceof Error ? err.message : String(err),
154
+ }));
155
+ continue;
156
+ }
157
+ const gatingKey = gatingKeyFor(gating.gated);
158
+ let dispatched7d = 0;
159
+ let bypassed7d = 0;
160
+ for (const transcript of transcripts) {
161
+ live.add(transcript.path);
162
+ const prior = seen.get(transcript.path);
163
+ let events;
164
+ if (prior && prior.mtimeMs === transcript.mtimeMs && prior.gatingKey === gatingKey) {
165
+ events = prior.events;
166
+ }
167
+ else {
168
+ try {
169
+ events = scanTranscript(deps.readLines(transcript.path), gating.gated);
170
+ }
171
+ catch {
172
+ // A transcript that cannot be read contributes nothing and is not
173
+ // cached, so the next tick retries it. It does not degrade the
174
+ // account: every other transcript still carries real counts.
175
+ continue;
176
+ }
177
+ seen.set(transcript.path, { mtimeMs: transcript.mtimeMs, gatingKey, events });
178
+ }
179
+ let agentTypes = new Map();
180
+ if (events.some((e) => e.kind === 'dispatch')) {
181
+ try {
182
+ agentTypes = deps.readAgentTypes(account.accountDir, transcript.sessionId);
183
+ }
184
+ catch {
185
+ // Unresolved dispatches are not counted, which countWindow already
186
+ // enforces. Never counted as a success.
187
+ agentTypes = new Map();
188
+ }
189
+ }
190
+ const counted = countWindow(events, agentTypes, gating.authoredNames, sinceMs);
191
+ dispatched7d += counted.dispatched;
192
+ bypassed7d += counted.bypassed;
193
+ }
194
+ deps.logger(formatCensus({ accountId8, declared: gating.declared, dispatched7d, bypassed7d }));
195
+ }
196
+ // Drop transcripts that have gone, so the cache describes what is on disk now
197
+ // rather than growing for the life of a process that runs for weeks.
198
+ for (const path of Array.from(seen.keys()))
199
+ if (!live.has(path))
200
+ seen.delete(path);
201
+ }
202
+ return {
203
+ tickOnce,
204
+ start() {
205
+ if (timer)
206
+ return;
207
+ timer = setInterval(() => {
208
+ try {
209
+ tickOnce();
210
+ }
211
+ catch (err) {
212
+ deps.logger(`${TAG} op=tick-failed message=${err instanceof Error ? err.message : String(err)}`);
213
+ }
214
+ }, deps.intervalMs);
215
+ if (typeof timer.unref === 'function')
216
+ timer.unref();
217
+ deps.logger(`${TAG} op=started intervalMs=${deps.intervalMs}`);
218
+ },
219
+ stop() {
220
+ if (timer) {
221
+ clearInterval(timer);
222
+ timer = null;
223
+ }
224
+ },
225
+ };
226
+ }
227
+ //# sourceMappingURL=specialist-census.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"specialist-census.js","sourceRoot":"","sources":["../src/specialist-census.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,QAAQ;AACR,EAAE;AACF,yEAAyE;AACzE,4EAA4E;AAC5E,gFAAgF;AAChF,+EAA+E;AAC/E,+EAA+E;AAC/E,8EAA8E;AAC9E,2EAA2E;AAC3E,EAAE;AACF,2EAA2E;AAC3E,gFAAgF;AAChF,2EAA2E;AAC3E,8EAA8E;AAC9E,4CAA4C;AAC5C,EAAE;AACF,4EAA4E;AAC5E,4EAA4E;AAC5E,wBAAwB;AAExB,MAAM,GAAG,GAAG,qBAAqB,CAAA;AAEjC,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,G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AU;gBAAE,KAAK,CAAC,KAAK,EAAE,CAAA;YACpD,IAAI,CAAC,MAAM,CAAC,GAAG,GAAG,0BAA0B,IAAI,CAAC,UAAU,EAAE,CAAC,CAAA;QAChE,CAAC;QACD,IAAI;YACF,IAAI,KAAK,EAAE,CAAC;gBACV,aAAa,CAAC,KAAK,CAAC,CAAA;gBACpB,KAAK,GAAG,IAAI,CAAA;YACd,CAAC;QACH,CAAC;KACF,CAAA;AACH,CAAC"}
@@ -11,7 +11,8 @@
11
11
  "hooks": [
12
12
  { "type": "command", "command": "bash $PLATFORM_ROOT/plugins/admin/hooks/archive-ingest-surface-gate.sh" },
13
13
  { "type": "command", "command": "bash $PLATFORM_ROOT/plugins/admin/hooks/fs-schema-guard.sh" },
14
- { "type": "command", "command": "bash $PLATFORM_ROOT/plugins/admin/hooks/quote-path-write-gate.sh" }
14
+ { "type": "command", "command": "bash $PLATFORM_ROOT/plugins/admin/hooks/quote-path-write-gate.sh" },
15
+ { "type": "command", "command": "bash $PLATFORM_ROOT/plugins/admin/hooks/html-structure-gate.sh" }
15
16
  ]
16
17
  },
17
18
  {
@@ -19,7 +20,8 @@
19
20
  "hooks": [
20
21
  { "type": "command", "command": "bash $PLATFORM_ROOT/plugins/admin/hooks/archive-ingest-surface-gate.sh" },
21
22
  { "type": "command", "command": "bash $PLATFORM_ROOT/plugins/admin/hooks/fs-schema-guard.sh" },
22
- { "type": "command", "command": "bash $PLATFORM_ROOT/plugins/admin/hooks/quote-path-write-gate.sh" }
23
+ { "type": "command", "command": "bash $PLATFORM_ROOT/plugins/admin/hooks/quote-path-write-gate.sh" },
24
+ { "type": "command", "command": "bash $PLATFORM_ROOT/plugins/admin/hooks/html-structure-gate.sh" }
23
25
  ]
24
26
  },
25
27
  {
@@ -27,7 +29,8 @@
27
29
  "hooks": [
28
30
  { "type": "command", "command": "bash $PLATFORM_ROOT/plugins/admin/hooks/archive-ingest-surface-gate.sh" },
29
31
  { "type": "command", "command": "bash $PLATFORM_ROOT/plugins/admin/hooks/fs-schema-guard.sh" },
30
- { "type": "command", "command": "bash $PLATFORM_ROOT/plugins/admin/hooks/quote-path-write-gate.sh" }
32
+ { "type": "command", "command": "bash $PLATFORM_ROOT/plugins/admin/hooks/quote-path-write-gate.sh" },
33
+ { "type": "command", "command": "bash $PLATFORM_ROOT/plugins/admin/hooks/html-structure-gate.sh" }
31
34
  ]
32
35
  },
33
36
  {
@@ -50,7 +53,8 @@
50
53
  {
51
54
  "hooks": [
52
55
  { "type": "command", "command": "bash $PLATFORM_ROOT/plugins/admin/hooks/archive-ingest-surface-gate.sh" },
53
- { "type": "command", "command": "bash $PLATFORM_ROOT/plugins/admin/hooks/public-tool-surface.sh" }
56
+ { "type": "command", "command": "bash $PLATFORM_ROOT/plugins/admin/hooks/public-tool-surface.sh" },
57
+ { "type": "command", "command": "bash $PLATFORM_ROOT/plugins/admin/hooks/specialist-dispatch-gate.sh" }
54
58
  ]
55
59
  },
56
60
  {