@tpsdev-ai/agent 0.7.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/bun.lock +27 -15
  2. package/bunfig.toml +17 -0
  3. package/dist/bin.js +4 -3
  4. package/dist/bin.js.map +1 -1
  5. package/dist/config.d.ts +8 -1
  6. package/dist/config.d.ts.map +1 -1
  7. package/dist/config.js +38 -3
  8. package/dist/config.js.map +1 -1
  9. package/dist/home.d.ts +3 -0
  10. package/dist/home.d.ts.map +1 -0
  11. package/dist/home.js +18 -0
  12. package/dist/home.js.map +1 -0
  13. package/dist/index.d.ts +16 -3
  14. package/dist/index.d.ts.map +1 -1
  15. package/dist/index.js +12 -1
  16. package/dist/index.js.map +1 -1
  17. package/dist/io/flair.d.ts +1 -10
  18. package/dist/io/flair.d.ts.map +1 -1
  19. package/dist/io/flair.js +29 -28
  20. package/dist/io/flair.js.map +1 -1
  21. package/dist/io/mail.d.ts +184 -30
  22. package/dist/io/mail.d.ts.map +1 -1
  23. package/dist/io/mail.js +944 -185
  24. package/dist/io/mail.js.map +1 -1
  25. package/dist/lib/agent-keys.d.ts +106 -0
  26. package/dist/lib/agent-keys.d.ts.map +1 -0
  27. package/dist/lib/agent-keys.js +298 -0
  28. package/dist/lib/agent-keys.js.map +1 -0
  29. package/dist/lib/bridge-identity.d.ts +10 -0
  30. package/dist/lib/bridge-identity.d.ts.map +1 -0
  31. package/dist/lib/bridge-identity.js +56 -0
  32. package/dist/lib/bridge-identity.js.map +1 -0
  33. package/dist/lib/mail-lock-namespace.d.ts +19 -0
  34. package/dist/lib/mail-lock-namespace.d.ts.map +1 -0
  35. package/dist/lib/mail-lock-namespace.js +58 -0
  36. package/dist/lib/mail-lock-namespace.js.map +1 -0
  37. package/dist/lib/mail-lock.d.ts +81 -0
  38. package/dist/lib/mail-lock.d.ts.map +1 -0
  39. package/dist/lib/mail-lock.js +319 -0
  40. package/dist/lib/mail-lock.js.map +1 -0
  41. package/dist/lib/mailbox-filename.d.ts +2 -0
  42. package/dist/lib/mailbox-filename.d.ts.map +1 -0
  43. package/dist/lib/mailbox-filename.js +4 -0
  44. package/dist/lib/mailbox-filename.js.map +1 -0
  45. package/dist/lib/mailbox-policy.d.ts +245 -0
  46. package/dist/lib/mailbox-policy.d.ts.map +1 -0
  47. package/dist/lib/mailbox-policy.js +949 -0
  48. package/dist/lib/mailbox-policy.js.map +1 -0
  49. package/dist/lib/public-key.d.ts +6 -0
  50. package/dist/lib/public-key.d.ts.map +1 -0
  51. package/dist/lib/public-key.js +45 -0
  52. package/dist/lib/public-key.js.map +1 -0
  53. package/dist/lib/registry-key.d.ts +2 -0
  54. package/dist/lib/registry-key.d.ts.map +1 -0
  55. package/dist/lib/registry-key.js +10 -0
  56. package/dist/lib/registry-key.js.map +1 -0
  57. package/dist/lib/relay-lock.d.ts +7 -0
  58. package/dist/lib/relay-lock.d.ts.map +1 -0
  59. package/dist/lib/relay-lock.js +19 -0
  60. package/dist/lib/relay-lock.js.map +1 -0
  61. package/dist/lib/signEnvelope.d.ts +12 -0
  62. package/dist/lib/signEnvelope.d.ts.map +1 -1
  63. package/dist/lib/signEnvelope.js.map +1 -1
  64. package/dist/lib/signing-key.d.ts +2 -0
  65. package/dist/lib/signing-key.d.ts.map +1 -0
  66. package/dist/lib/signing-key.js +9 -0
  67. package/dist/lib/signing-key.js.map +1 -0
  68. package/dist/lib/topic-recipient.d.ts +2 -0
  69. package/dist/lib/topic-recipient.d.ts.map +1 -0
  70. package/dist/lib/topic-recipient.js +2 -0
  71. package/dist/lib/topic-recipient.js.map +1 -0
  72. package/dist/llm/provider.d.ts.map +1 -1
  73. package/dist/llm/provider.js +9 -7
  74. package/dist/llm/provider.js.map +1 -1
  75. package/dist/runtime/agent.d.ts.map +1 -1
  76. package/dist/runtime/agent.js +32 -25
  77. package/dist/runtime/agent.js.map +1 -1
  78. package/dist/runtime/event-loop.d.ts +21 -2
  79. package/dist/runtime/event-loop.d.ts.map +1 -1
  80. package/dist/runtime/event-loop.js +199 -54
  81. package/dist/runtime/event-loop.js.map +1 -1
  82. package/dist/runtime/types.d.ts +11 -0
  83. package/dist/runtime/types.d.ts.map +1 -1
  84. package/dist/runtime/types.js +13 -1
  85. package/dist/runtime/types.js.map +1 -1
  86. package/package.json +3 -4
  87. package/src/bin.ts +4 -3
  88. package/src/config.ts +46 -3
  89. package/src/home.ts +18 -0
  90. package/src/index.ts +33 -2
  91. package/src/io/flair.ts +23 -28
  92. package/src/io/mail.ts +1007 -200
  93. package/src/lib/agent-keys.ts +308 -0
  94. package/src/lib/bridge-identity.ts +49 -0
  95. package/src/lib/mail-lock-namespace.ts +64 -0
  96. package/src/lib/mail-lock.ts +337 -0
  97. package/src/lib/mailbox-filename.ts +3 -0
  98. package/src/lib/mailbox-policy.ts +1085 -0
  99. package/src/lib/public-key.ts +49 -0
  100. package/src/lib/registry-key.ts +8 -0
  101. package/src/lib/relay-lock.ts +20 -0
  102. package/src/lib/signEnvelope.ts +12 -0
  103. package/src/lib/signing-key.ts +8 -0
  104. package/src/lib/topic-recipient.ts +1 -0
  105. package/src/llm/provider.ts +9 -7
  106. package/src/runtime/agent.ts +30 -27
  107. package/src/runtime/event-loop.ts +221 -68
  108. package/src/runtime/types.ts +14 -0
  109. package/test/config.test.ts +85 -2
  110. package/test/core-loop.test.ts +6 -4
  111. package/test/governance.test.ts +4 -1
  112. package/test/helpers/event-loop-child.mjs +50 -0
  113. package/test/helpers/mail-delivery-worker.mjs +16 -0
  114. package/test/helpers/mail-kill-child.mjs +104 -0
  115. package/test/helpers/signed-relay-record.ts +31 -0
  116. package/test/home-per-call.test.ts +72 -0
  117. package/test/io.test.ts +81 -14
  118. package/test/mail-client-lock-namespace.test.ts +155 -0
  119. package/test/mail-client-repoint-root.test.ts +368 -0
  120. package/test/mail-delivery-at-least-once.test.ts +1238 -0
  121. package/test/mail-event-loop-delivery.test.ts +769 -0
  122. package/test/mail-intent-phases.test.ts +304 -0
  123. package/test/mail-interrupted-recovery.test.ts +393 -0
  124. package/test/mail-lock-pid-state.test.ts +238 -0
  125. package/test/mail-lock.test.ts +96 -0
  126. package/test/mail-partial-flair.test.ts +102 -0
  127. package/test/mail-placement-replay.test.ts +116 -0
  128. package/test/mail-promote-guard.test.ts +305 -21
  129. package/test/mail-relay-reservation.test.ts +60 -0
  130. package/test/mailbox-filename.test.ts +16 -0
  131. package/test/public-key.test.ts +108 -0
  132. package/test/runtime-key-encoding.test.ts +105 -0
  133. package/test/runtime-pending-key.test.ts +117 -0
  134. package/test/security/mail-trust.test.ts +406 -109
package/dist/io/mail.d.ts CHANGED
@@ -1,14 +1,110 @@
1
1
  import type { EventLogger } from "../telemetry/events.js";
2
- import { type FlairClient } from "../lib/signEnvelope.js";
2
+ import { type Envelope, type FlairClient } from "../lib/signEnvelope.js";
3
3
  export interface MailMessage {
4
4
  filename: string;
5
5
  body: string;
6
6
  receivedAt: Date;
7
- /** Trust/routing headers from bridge envelope */
7
+ /** Untrusted transport metadata. Never grants authority. */
8
8
  headers: Record<string, string>;
9
- /** Sender agent ID */
9
+ /** Sender from the verified envelope when received through MailClient. */
10
10
  from: string;
11
+ /** Present only after signature and mailbox policy both passed. */
12
+ verifiedEnvelope?: Envelope;
13
+ trustTier?: "user" | "internal" | "external";
14
+ }
15
+ /** A handoff token issued by deliverNext(); pass it to completeDelivery() or releaseDelivery(). */
16
+ export interface MailDelivery {
17
+ readonly message: MailMessage;
18
+ /** JSON-encoded [canonical mailbox path, messageId]; stable across presentations at that path. */
19
+ readonly deliveryKey: string;
20
+ /** This hand-over's presentation number; 1 for the first. */
21
+ readonly presentation: number;
22
+ }
23
+ /**
24
+ * Why deliverNext() handed nothing over although work may be waiting:
25
+ * - `lock-busy`: the mailbox lock was unavailable.
26
+ * - `active`: this module copy holds the token, or another copy/process has
27
+ * a claim whose process is not provably gone and whose lease has not expired.
28
+ * No presentation is counted.
29
+ * - `cli-record`: a `placing` record verifies only as CLI-promoted.
30
+ * The CLI lease sweep requires an expired or absent checkout; direct bridge
31
+ * and plugin startup recovery does not check lease expiry.
32
+ * - `pending-record-invalid` / `pending-record-ambiguous`: a `placing` record
33
+ * verified as neither format or both, was quarantined and its intent cleared.
34
+ * - `verification-failed` / `verification-unavailable`: the pending cur/ copy
35
+ * did not re-verify, or it verified but its envelope names a different message
36
+ * than the intent; or the verifier (or the trust-tier read) did not answer.
37
+ * - `record-changed`: the pending cur/ copy is missing (a `placing` intent whose
38
+ * copy is gone can instead be resolved as gone), its recorded identity is
39
+ * absent or mismatched, or its bytes changed during re-verification.
40
+ * - `storage-error`: resolving roots or listing new/ threw, or a history, cur/, quarantine or
41
+ * placement-state operation threw while pending placements were processed.
42
+ * Quarantine may have moved the payload and unlinked the intent before sync failed.
43
+ * - `new-mail-deferred`: one new/ file's attempt did not complete: reading it,
44
+ * verifying it (including the verifier or trust-tier read not answering), a
45
+ * history read or a commit operation threw, or a placement appeared before
46
+ * its commit lock. A storage failure may follow a commit. A listed file that
47
+ * disappears before it is read is skipped, and the scan continues.
48
+ */
49
+ export type DeliveryDeferral = "lock-busy" | "active" | "cli-record" | "pending-record-invalid" | "pending-record-ambiguous" | "verification-failed" | "verification-unavailable" | "record-changed" | "storage-error" | "new-mail-deferred";
50
+ /** What MailClient.deliverNext() returns (cli#617 slice b). */
51
+ export type DeliverNextResult = {
52
+ status: "delivered";
53
+ delivery: MailDelivery;
54
+ }
55
+ /** No deliverable mail found during this scan; rejected mail may have been moved to `dlq/`. */
56
+ | {
57
+ status: "idle";
58
+ }
59
+ /** Work may be waiting; nothing was handed over. */
60
+ | {
61
+ status: "deferred";
62
+ reason: DeliveryDeferral;
63
+ detail: string;
64
+ file?: string;
65
+ };
66
+ /** What MailClient.completeDelivery() returns (cli#617 slice b). */
67
+ export type DeliveryCompletion =
68
+ /** This call removed the message's `in_progress` intent. */
69
+ {
70
+ status: "completed";
71
+ }
72
+ /** An earlier call with this delivery removed it. */
73
+ | {
74
+ status: "already-completed";
75
+ } | {
76
+ status: "quarantined";
77
+ } | {
78
+ status: "deferred";
79
+ reason: "lock-busy" | "storage-error";
80
+ detail: string;
11
81
  }
82
+ /**
83
+ * Not this hand-over's to finalize: a refusal finalizes no intent (one may
84
+ * already be absent). Only a locally issued `stale` or `identity` refusal
85
+ * releases the client's local token (its issued state becomes `released`);
86
+ * a `foreign` refusal changes no local state. `foreign`: not a
87
+ * delivery this MailClient issued. `stale`: no matching live intent and claim
88
+ * in the currently resolved mailbox. `identity`:
89
+ * recorded cur/ identity is absent or mismatched.
90
+ */
91
+ | {
92
+ status: "refused";
93
+ reason: "foreign" | "stale" | "identity";
94
+ detail: string;
95
+ };
96
+ export type DeliveryRelease = {
97
+ status: "released";
98
+ } | {
99
+ status: "quarantined";
100
+ } | {
101
+ status: "refused";
102
+ reason: "foreign" | "stale";
103
+ } | {
104
+ status: "deferred";
105
+ reason: "lock-busy" | "storage-error";
106
+ detail: string;
107
+ };
12
108
  /**
13
109
  * Maildir-compatible mail client.
14
110
  * Reads from mailDir/inbox/new and moves processed messages to mailDir/inbox/cur.
@@ -18,41 +114,99 @@ export declare class MailClient {
18
114
  readonly mailDir: string;
19
115
  private readonly events?;
20
116
  private readonly agentId;
21
- private readonly flairClient?;
22
- private inboxNew;
23
- private inboxCur;
24
- private inboxDlq;
25
- private outboxNew;
26
- /** One-shot guard so a misconfigured (verifier-less) mailbox warns once, not per poll. */
27
- private warnedNoVerifier;
28
- constructor(mailDir: string, events?: EventLogger | undefined, agentId?: string, flairClient?: FlairClient | undefined);
29
- /**
30
- * Return all messages in inbox/new and move them to inbox/cur/.
31
- *
32
- * Verification is MANDATORY — a record is promoted ONLY after its signed
33
- * envelope verifies against the local Flair. There is no unverified path:
34
- * - NO verifier configured → refuse; the record stays in new/ (an absent
35
- * client must never mean "promote without verifying");
36
- * - the verifier THROWS (Flair unreachable) → refuse; the record stays in
37
- * new/ for a later check (a throw must never mean "pass");
38
- * - the verifier REJECTS → dead-letter to dlq/ with a `.reason` sidecar.
39
- * Unverified input must never reach the tool-holding model.
117
+ /** Configured Flair signing key, checked against both standard locations. */
118
+ private readonly signingKeyPath?;
119
+ private readonly flairClient;
120
+ /** cli#617 slice (b): the deliveries this client issued, keyed by the delivery object itself. */
121
+ private readonly issued;
122
+ constructor(mailDir: string, events?: EventLogger | undefined, agentId?: string, flairClient?: FlairClient,
123
+ /** Configured Flair signing key, checked against both standard locations. */
124
+ signingKeyPath?: string | undefined);
125
+ /**
126
+ * Resolve `mailDir` and `<mail root>/<agentId>` to canonical path strings;
127
+ * create maildir subdirectories beneath the mailbox string.
40
128
  */
129
+ private operationRoots;
41
130
  checkNewMail(): Promise<MailMessage[]>;
131
+ /**
132
+ * Present verified, unclaimed pending work before committing new mail.
133
+ * Unresolved placing/in_progress work defers deliverNext() commits. The token
134
+ * set covers MailClients of this module copy; claims from other copies in the
135
+ * same process are treated as live until process exit or lease expiry.
136
+ * Retry deferred completion or release on the same hand-over.
137
+ */
138
+ deliverNext(): Promise<DeliverNextResult>;
139
+ /** Finalize only this client's issued claim, with its recorded cur/ file identity, under the mailbox lock. */
140
+ completeDelivery(delivery: MailDelivery): Promise<DeliveryCompletion>;
141
+ /** Persist matching claim release under the issued mailbox's lock; contention and storage errors defer. */
142
+ releaseDelivery(delivery: MailDelivery): DeliveryRelease;
143
+ /** Called under the mailbox lock; only this issued claim may hit the deadline. */
144
+ private expireIssuedDelivery;
145
+ /** Record a hand-over: the token is already held in this module copy; bind it to the delivery object. */
146
+ private issue;
147
+ /**
148
+ * Present one pending placement: inspect it under the lock, re-verify its
149
+ * cur/ copy outside the lock, then re-check and advance under the lock.
150
+ */
151
+ private presentPending;
152
+ private classifyPending;
153
+ private quarantinePending;
154
+ private inspectPending;
155
+ /**
156
+ * Re-read the intent, its claim, the recorded identity and the raw bytes
157
+ * under the lock (all may have changed during re-verification), then advance
158
+ * the presentation with a new claim and hand the message over. A bound hit
159
+ * writes the terminal `failed` phase and presents nothing.
160
+ */
161
+ private presentUnderLock;
162
+ /**
163
+ * The bound's log line. It is written after the durable `failed` write, so a
164
+ * kill between the two leaves the `failed` intent (the durable record) and
165
+ * no line.
166
+ */
167
+ private logQuarantine;
168
+ /**
169
+ * Commit the next verifiable new/ message to cur/ with a live `in_progress`
170
+ * intent. Under the commit lock it re-checks that no `placing` or
171
+ * `in_progress` placement is pending, so a concurrent call cannot add a
172
+ * second message in flight.
173
+ */
174
+ private commitNextForDelivery;
175
+ /** The mailbox lock, or a `lock-busy` deferral (contention, or an acquisition that threw). */
176
+ private lockOrDefer;
177
+ private emitRecoveryError;
178
+ /** Commit under the mailbox lock; attempt placement rollback on append failure. */
179
+ private commitToCur;
180
+ /**
181
+ * Recover verified cur copies matching the intent's recorded identity (cli#600).
182
+ * Verification or lock failure defers recovery. A present mismatched copy,
183
+ * including an older intent without identity, leaves the intent pending and
184
+ * withholds delivery; the new/ scan cannot replace that intent.
185
+ */
186
+ private recoverInterruptedPlacements;
187
+ /** Finish a still-pending intent only when cur/ is absent under the lock. */
188
+ private finishUnlinkedPlacement;
189
+ /**
190
+ * Re-check the intent, recorded identity and raw bytes under the lock.
191
+ */
192
+ private completeInterruptedPlacement;
193
+ /** Attempt the dlq/ move and sidecar write, then emit the rejection. */
194
+ private deadLetter;
42
195
  /** Write a message to outbox/new for relay delivery. */
43
196
  sendMail(to: string, body: string): Promise<void>;
197
+ /**
198
+ * Sign `body` as this agent into a v1 signed envelope. Throws a named error
199
+ * when no signing key exists — the same refusal condition as the CLI path,
200
+ * so an unsigned body a promote() reader would dead-letter is never written.
201
+ */
202
+ private signMailBody;
44
203
  /** Deliver all messages in outbox to recipient inboxes (local relay). */
45
204
  deliverOutbox(): void;
46
205
  /**
47
- * Verify a mail body against the v1 signed envelope spec AND this mailbox's
48
- * policy: signature, wrapper→envelope `from` binding, recipient binding
49
- * (`envelope.to` must be this mailbox's agent), and `messageId`/`timestamp`
50
- * shape. These are the checks the shared `promote()` applies, so this path
51
- * cannot present mail the shared path would reject.
52
- *
206
+ * Parse a mail file and run the shared mailbox policy on its signed envelope.
53
207
  * Returns a terminal `{ pass: false, class, reason }` on a deterministic
54
- * rejection. Called ONLY when a verifier is configured; a THROW (Flair
55
- * unreachable) is a refusal the caller acts on, never a pass.
208
+ * rejection; a THROW (Flair unreachable) is a refusal the caller acts on,
209
+ * never a pass.
56
210
  */
57
211
  private verifyMailBody;
58
212
  }
@@ -1 +1 @@
1
- {"version":3,"file":"mail.d.ts","sourceRoot":"","sources":["../../src/io/mail.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAE1D,OAAO,EAAkB,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAE1E,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,IAAI,CAAC;IACjB,iDAAiD;IACjD,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,sBAAsB;IACtB,IAAI,EAAE,MAAM,CAAC;CACd;AA8CD;;;;GAIG;AACH,qBAAa,UAAU;aASH,OAAO,EAAE,MAAM;IAC/B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC;IACxB,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC;IAX/B,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,SAAS,CAAS;IAC1B,0FAA0F;IAC1F,OAAO,CAAC,gBAAgB,CAAS;gBAGf,OAAO,EAAE,MAAM,EACd,MAAM,CAAC,EAAE,WAAW,YAAA,EACpB,OAAO,SAAY,EACnB,WAAW,CAAC,EAAE,WAAW,YAAA;IAW5C;;;;;;;;;;;OAWG;IACG,YAAY,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC;IAyH5C,wDAAwD;I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