@agenticprimitives/context 0.0.0-alpha.3 → 0.0.0-alpha.31

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 (75) hide show
  1. package/README.md +2 -0
  2. package/dist/affiliations-read.d.ts +1 -1
  3. package/dist/affiliations-read.js +4 -4
  4. package/dist/affiliations-read.js.map +1 -1
  5. package/dist/ask-discovery.d.ts.map +1 -1
  6. package/dist/ask-discovery.js +3 -0
  7. package/dist/ask-discovery.js.map +1 -1
  8. package/dist/directory-rows.d.ts +2 -0
  9. package/dist/directory-rows.d.ts.map +1 -1
  10. package/dist/directory-rows.js +2 -1
  11. package/dist/directory-rows.js.map +1 -1
  12. package/dist/estate.d.ts +57 -0
  13. package/dist/estate.d.ts.map +1 -0
  14. package/dist/estate.js +43 -0
  15. package/dist/estate.js.map +1 -0
  16. package/dist/facts.d.ts +52 -0
  17. package/dist/facts.d.ts.map +1 -0
  18. package/dist/facts.js +75 -0
  19. package/dist/facts.js.map +1 -0
  20. package/dist/grounded-composition.d.ts +1 -1
  21. package/dist/grounded-composition.d.ts.map +1 -1
  22. package/dist/grounded-composition.js +51 -0
  23. package/dist/grounded-composition.js.map +1 -1
  24. package/dist/grounded-types.d.ts +4 -0
  25. package/dist/grounded-types.d.ts.map +1 -1
  26. package/dist/index.d.ts +10 -0
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +7 -0
  29. package/dist/index.js.map +1 -1
  30. package/dist/invitations-read.d.ts.map +1 -1
  31. package/dist/invitations-read.js +7 -4
  32. package/dist/invitations-read.js.map +1 -1
  33. package/dist/kb-question.d.ts.map +1 -1
  34. package/dist/kb-question.js +5 -0
  35. package/dist/kb-question.js.map +1 -1
  36. package/dist/kb-retrieve.d.ts +32 -0
  37. package/dist/kb-retrieve.d.ts.map +1 -0
  38. package/dist/kb-retrieve.js +73 -0
  39. package/dist/kb-retrieve.js.map +1 -0
  40. package/dist/membership-read.d.ts.map +1 -1
  41. package/dist/membership-read.js +10 -3
  42. package/dist/membership-read.js.map +1 -1
  43. package/dist/party-resolution.d.ts +81 -1
  44. package/dist/party-resolution.d.ts.map +1 -1
  45. package/dist/party-resolution.js +471 -212
  46. package/dist/party-resolution.js.map +1 -1
  47. package/dist/preferences.d.ts +39 -0
  48. package/dist/preferences.d.ts.map +1 -0
  49. package/dist/preferences.js +69 -0
  50. package/dist/preferences.js.map +1 -0
  51. package/dist/private-context.d.ts +13 -0
  52. package/dist/private-context.d.ts.map +1 -1
  53. package/dist/private-context.js +28 -10
  54. package/dist/private-context.js.map +1 -1
  55. package/dist/relationship-rows.d.ts +10 -0
  56. package/dist/relationship-rows.d.ts.map +1 -1
  57. package/dist/relationship-rows.js +4 -2
  58. package/dist/relationship-rows.js.map +1 -1
  59. package/dist/routines.d.ts +45 -0
  60. package/dist/routines.d.ts.map +1 -0
  61. package/dist/routines.js +34 -0
  62. package/dist/routines.js.map +1 -0
  63. package/dist/self-only.js +1 -1
  64. package/dist/self-only.js.map +1 -1
  65. package/dist/standing.d.ts +81 -7
  66. package/dist/standing.d.ts.map +1 -1
  67. package/dist/standing.js +164 -18
  68. package/dist/standing.js.map +1 -1
  69. package/dist/tiers.d.ts +6 -0
  70. package/dist/tiers.d.ts.map +1 -1
  71. package/dist/vault-question.d.ts +3 -0
  72. package/dist/vault-question.d.ts.map +1 -1
  73. package/dist/vault-question.js +55 -8
  74. package/dist/vault-question.js.map +1 -1
  75. package/package.json +20 -7
@@ -1 +1 @@
1
- {"version":3,"file":"self-only.js","sourceRoot":"","sources":["../src/self-only.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,EAAE;AACF,mGAAmG;AACnG,sGAAsG;AACtG,sGAAsG;AACtG,wFAAwF;AACxF,EAAE;AACF,4FAA4F;AAC5F,EAAE;AACF,uGAAuG;AACvG,uGAAuG;AACvG,qGAAqG;AACrG,yGAAyG;AACzG,8EAA8E;AAC9E,uGAAuG;AACvG,sGAAsG;AACtG,qGAAqG;AAC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C,GAAG,CAAC;QAAE,OAAO,EAAE,OAAO,EAAE,+BAA+B,KAAK,CAAC,IAAI,YAAY,GAAG,oBAAoB,EAAE,CAAC;IAC1H,MAAM,YAAY,GAAG,KAAK,CAAC,QAAQ,KAAK,SAAS,IAAI,KAAK,CAAC,QAAQ,KAAK,IAAI,IAAI,KAAK,CAAC,QAAQ,KAAK,QAAQ,CAAC;IAC5G,IAAI,CAAC,GAAG,IAAI,SAAS,IAAI,EAAE,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC,SAAS,CAAC,IAAI,YAAY,EAAE,CAAC;QACzE,MAAM,IAAI,aAAa,CAAC;YACtB,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,IAAI,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM;YAClE,MAAM,EAAE,SAAS,KAAK,CAAC,IAAI,8FAA8F;YACzH,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,GAAG,EAAE,KAAK,EAAE,KAAK,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,oCAAoC,EAAE,CAAC;SAC3H,CAAC,CAAC;IACL,CAAC;IACD,MAAM,OAAO,GAAG,EAAE,CAAC,GAAG,IAAI,SAAS,CAAY,CAAC;IAChD,IAAI,OAAO,KAAK,EAAE,CAAC,SAAS,CAAC,EAAE,CAAC;QAC9B,OAAO,EAAE,OAAO,EAAE,4GAA4G,OAAO,sBAAsB,EAAE,CAAC;IAChK,CAAC;IACD,OAAO,EAAE,OAAO,EAAE,CAAC;AACrB,CAAC"}
@@ -1,5 +1,10 @@
1
1
  import type { Address, Hex } from '@agenticprimitives/types';
2
- export type StandingRelation = 'self' | 'steward' | 'member' | 'none';
2
+ export type StandingRelation = 'self' | 'steward' | 'member' | 'claimed' | 'none';
3
+ /** Does this standing let the asker see what only those who BELONG may see (a roster, the invitations)?
4
+ * `self`, a verified `steward`, and a `member` the agent's own records name. `claimed` and `none` do not —
5
+ * and neither does a relation this function has never heard of. The ONE predicate the reads gate on, so a
6
+ * new relation cannot be admitted by a `!== 'none'` somewhere. */
7
+ export declare function belongs(standing: Pick<Standing, 'relation'> | null | undefined): boolean;
3
8
  export interface Standing {
4
9
  subject: Address;
5
10
  relation: StandingRelation;
@@ -17,7 +22,8 @@ export interface StandingDeps {
17
22
  addresseeKind?: string | null;
18
23
  /** Read one record from a subject's own vault (the asker's private tier). */
19
24
  readSubjectRecord?: (subject: string, recordType: string) => Promise<unknown>;
20
- /** Is this stewardship wire real: right shape, ERC-1271-valid against the org, unrevoked? */
25
+ /** Is this wire the agent's OVERSIGHT DELEGATION to this person — recognised positively, ERC-1271-valid against
26
+ * the org, unrevoked? `chainStewardshipCheck` is the implementation; absent ⇒ nobody reads as a steward. */
21
27
  verifyStewardship?: (input: {
22
28
  org: Address;
23
29
  person: Address;
@@ -32,6 +38,10 @@ export interface StandingDeps {
32
38
  presented?: readonly unknown[];
33
39
  routed?: boolean;
34
40
  };
41
+ /** Spec 420 §10 — the on-chain kind of an agent (ADR-0061 `atl:agentType`: person · org · service · treasury …). A PENDING
42
+ * invitation is membership only for an agent that never joins (a service, a runtime — spec 372 S3b / 400 W1); a person's
43
+ * invitation is not membership until they accept (`appr:invitationIsNotMembership`). Absent ⇒ fail closed: pending is not. */
44
+ agentKindOf?: (agent: string) => Promise<string | null>;
35
45
  }
36
46
  /**
37
47
  * What `principal` is to `subject`.
@@ -42,23 +52,67 @@ export interface StandingDeps {
42
52
  */
43
53
  /** The stewardship check, built from the chain reads the mandate path already makes.
44
54
  *
45
- * SHAPE FIRST, and it is not a formality (SEC-C1 parity with the Home's `verifyStewardship`): a member's
46
- * vault-record grant is also a real, signed, unrevoked delegation from the org to the person. What makes
47
- * one of them stewardship is that it names GOVERNANCE targets and carries no record scope. Skip the shape
48
- * check and every member holding a data grant reads as a steward.
55
+ * STEWARD-SHAPE-CONFUSION-1 (audit 2026-11-10 RUNC-1, spec 445) — POSITIVE IDENTITY FIRST, and it is not a
56
+ * formality. An organization signs many delegations to a person: a payment mandate ([payment, timestamp,
57
+ * allowedTargets, allowedMethods]), a message grant ([timestamp, allowedTargets, allowedMethods]), a member's data
58
+ * grant ([vault-record-scope, …]). Each is real, signed and unrevoked. This used to ask what a wire was NOT (an
59
+ * allowedTargets caveat and no record scope) — which the first two also are not. Now the wire is stewardship only
60
+ * when it IS the oversight delegation the ontology defines (`OVERSIGHT_DELEGATION`, `ap:OversightDelegation`):
61
+ *
62
+ * - EVERY caveat is one of the kinds that definition lists (allowedTargets · timestamp · value), each at most
63
+ * once. Any other enforcer — allowedMethods, payment, record scope, one this estate has never seen — and it
64
+ * is something else. There is no list of excluded kinds to keep up to date.
65
+ * - allowedTargets names EVERY governance contract of the estate, and nothing outside the declared set. A
66
+ * mandate targets an asset; a message grant targets an agent.
67
+ * - a timestamp caveat is current; a value caveat is zero.
68
+ *
69
+ * Malformed terms, a missing required caveat, no governance contracts configured: not stewardship. Then, and
70
+ * only then, the chain is asked whether the organization signed it and has not revoked it.
49
71
  */
50
72
  export declare function chainStewardshipCheck(input: {
51
73
  readContract: (args: never) => Promise<unknown>;
52
74
  chainId: number;
53
75
  delegationManager: Address;
54
- allowedTargetsEnforcer?: string;
76
+ /** The enforcers of the three caveat kinds an oversight delegation may carry. A caveat under any OTHER
77
+ * enforcer makes the wire not stewardship — so an enforcer left out here refuses real wires (fail closed). */
78
+ allowedTargetsEnforcer: string | undefined;
79
+ timestampEnforcer: string | undefined;
80
+ valueEnforcer: string | undefined;
81
+ /** The estate's GOVERNANCE contracts the oversight delegation pins — the relationship registry and the name
82
+ * registry. The wire must name every one. Empty or absent ⇒ no wire is stewardship. */
83
+ governanceTargets: readonly (string | undefined)[];
84
+ /** Other governance contracts the wire MAY also name (a subregistry). A target in neither list ⇒ refused. */
85
+ alsoPermittedTargets?: readonly (string | undefined)[];
86
+ /** Unix seconds; injected so the decision is deterministic. Default: the clock. */
87
+ now?: () => number;
88
+ /** @deprecated No longer read. A record-scope caveat is refused like every other caveat the definition does
89
+ * not list; naming it here was the negative test. Accepted so existing wiring still compiles. */
55
90
  vaultRecordScopeEnforcer?: string;
56
91
  isRevokedAbi: unknown;
57
92
  validator?: Address;
58
93
  validatorAbi: unknown;
59
94
  }): NonNullable<StandingDeps['verifyStewardship']>;
95
+ /**
96
+ * THE SUBJECT IS AN ORGANIZATION — or a person, or a service that keeps its own records. It is NEVER a
97
+ * `.workspace` agent that something else governs (the owner's rule, 2026-10-02, `org.ttl` §2): a workspace
98
+ * agent is a SERVICE (`ap:WorkspaceAgent ⊑ ap:ServiceAgent`, `aporg:coordinatedBy`) that coordinates a
99
+ * workspace and cannot have members. Who belongs lives on the organization that GOVERNS the workspace
100
+ * (`aporg:governedBy` — `org.membership:member:<sa>` in the governor's vault, the roster index, the
101
+ * stewardship wire). So the standing a person has "at a workspace" is their standing at its governor, and
102
+ * THE CALLER RESOLVES THE WORKSPACE TO ITS GOVERNOR BEFORE ASKING — `governingSubjectOf` below reads the
103
+ * workspace's `workspace.governor` pointer and answers the governor, or the workspace itself when no pointer
104
+ * exists (a legacy workspace that still holds its own membership records; nothing is rewritten for it).
105
+ *
106
+ * The precondition rather than a resolver inside: this function reads three vaults already and is called
107
+ * from gates that memoise its answer per (principal, subject); a workspace that silently derived against
108
+ * another subject would memoise under the wrong key and answer the wrong question when the pointer moved.
109
+ * Resolve once, explicitly, where the subject is chosen.
110
+ */
60
111
  export declare function deriveStanding(deps: StandingDeps, input: {
112
+ /** Who is asking. */
61
113
  principal: Address;
114
+ /** The ORGANIZATION (or person, or self-recording service) whose records say what `principal` is to it.
115
+ * A workspace agent is passed only when it has no governor — see `governingSubjectOf`. */
62
116
  subject: Address;
63
117
  /** Spec 366 R2 — wires the asker PRESENTED for this subject (their stewardship grant). Verified here
64
118
  * exactly as a wire read from their own tree would be; presenting one is not holding standing. */
@@ -72,4 +126,24 @@ export declare function deriveStanding(deps: StandingDeps, input: {
72
126
  /** The sentence to show when authority is needed as an agent the person cannot grant for. Names what they
73
127
  * ARE and what would have to happen — "you cannot" without "and here is who can" is a dead end. */
74
128
  export declare function standingNote(standing: Standing, capabilityWords: string): string;
129
+ /** The pointer a governed workspace's agent keeps in its OWN vault, written when the workspace is paired
130
+ * with its organization: `{ governedBy: <org sa>, coordinatedBy: <this workspace agent> }`. The organization
131
+ * keeps the mirror (`workspace:<ws sa>`, the `aporg:Workspace` entity). One record, one read. */
132
+ export declare const WORKSPACE_GOVERNOR_RECORD = "workspace.governor";
133
+ /** Pure: the governing organization a `workspace.governor` record names, or null for no pointer / a malformed
134
+ * one. A pointer that names nothing is treated exactly like no pointer — the legacy path — never as a governor
135
+ * at address zero. */
136
+ export declare function governorOf(doc: unknown): Address | null;
137
+ /**
138
+ * The subject to derive standing AGAINST for a scope that may be a workspace: its governor when the workspace
139
+ * holds the pointer, the agent itself otherwise. Reads one record and nothing else — an organization asked
140
+ * about itself answers itself (an org keeps no `workspace.governor`), a legacy workspace answers itself
141
+ * (today's behaviour, untouched), and a governed workspace answers its organization. A read that fails is
142
+ * read as "no pointer": the fallback is the pre-rule behaviour, not a refusal, so a vault hiccup costs a
143
+ * legacy answer rather than a dead page.
144
+ */
145
+ export declare function governingSubjectOf(read: StandingDeps['readSubjectRecord'] | ((subject: string, recordType: string) => Promise<unknown>) | undefined, subject: Address): Promise<{
146
+ subject: Address;
147
+ governor: Address | null;
148
+ }>;
75
149
  //# sourceMappingURL=standing.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"standing.d.ts","sourceRoot":"","sources":["../src/standing.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAE7D,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAC;AAEtE,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,gBAAgB,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B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,EAAE,OAAO,CAAC;CACvB,GAAG,WAAW,CAAC,YAAY,CAAC,mBAAmB,CAAC,CAAC,CA4DjD;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,cAAc,CAClC,IAAI,EAAE,YAAY,EAClB,KAAK,EAAE;IACL,qBAAqB;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB;+FAC2F;IAC3F,OAAO,EAAE,OAAO,CAAC;IACjB;uGACmG;IACnG,SAAS,CAAC,EAAE,SAAS,OAAO,EAAE,CAAC;IAC/B;;;oCAGgC;IAChC,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,GACA,OAAO,CAAC,QAAQ,CAAC,CA8FnB;AAED;oGACoG;AACpG,wBAAgB,YAAY,CAAC,QAAQ,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,GAAG,MAAM,CAMhF;AAGD;;kGAEkG;AAClG,eAAO,MAAM,yBAAyB,uBAAuB,CAAC;AAE9D;;uBAEuB;AACvB,wBAAgB,UAAU,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,GAAG,IAAI,CAKvD;AAED;;;;;;;GAOG;AACH,wBAAsB,kBAAkB,CACtC,IAAI,EAAE,YAAY,CAAC,mBAAmB,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC,GAAG,SAAS,EACjH,OAAO,EAAE,OAAO,GACf,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,OAAO,GAAG,IAAI,CAAA;CAAE,CAAC,CAOzD"}
package/dist/standing.js CHANGED
@@ -10,18 +10,32 @@
10
10
  // payload on purpose. So standing comes from evidence the PERSON holds and the CHAIN confirms:
11
11
  //
12
12
  // self the subject IS them — nothing to check.
13
- // steward they hold a stewardship delegation from that agent, in their own vault, which is
14
- // ERC-1271-valid against it and unrevoked on chain. A delegation of the right SHAPE:
15
- // governance targets and no vault-record scope, or a member's data grant could be replayed
16
- // as stewardship (the SEC-C1 parity check the Home already makes).
17
- // member they are in that agent's roster — standing to be there, not to authorize.
13
+ // steward they hold (or present) the OVERSIGHT DELEGATION that agent signed to them — recognised by what
14
+ // it IS (`OVERSIGHT_DELEGATION`, ontology: governance targets, time-boxed, no value, no other
15
+ // caveat), ERC-1271-valid against the agent and unrevoked on chain. Never by what it is not: a
16
+ // payment mandate and a message grant are also "from the org, with no record scope"
17
+ // (STEWARD-SHAPE-CONFUSION-1 / audit RUNC-1).
18
+ // member the AGENT'S OWN records say they belong — its admission record, its standing invitation of an
19
+ // agent that never joins, its listing, a person's friendship offer. Standing to be there, not
20
+ // to authorize.
21
+ // claimed only their OWN vault says so (a `relationships.data` row). A note about themselves, not
22
+ // evidence: it opens nothing (audit RUNC-2). Membership is a fact the organization holds — the
23
+ // two-sided rule friendship already follows (spec 401 §10): her record alone is her half.
18
24
  // none no link. Not a refusal by itself: the Ask still asks, and the chain still decides.
19
25
  //
20
26
  // AND IT IS NOT AUTHORITY. Standing shapes what we SAY before a ceremony — who can grant, and who to ask
21
27
  // if it is not you. It is not consulted by any gate: a steward reading of this record grants nothing that
22
28
  // the mandate and the chain would not have granted anyway (spec 353 §4).
23
29
  import { relationshipRows } from './relationship-rows.js';
24
- import { hashDelegation } from '@agenticprimitives/delegation';
30
+ import { hashDelegation, decodeAllowedTargetsTerms, decodeTimestampTerms } from '@agenticprimitives/delegation';
31
+ import { OVERSIGHT_DELEGATION, oversightCaveatRule } from '@agenticprimitives/ontology';
32
+ /** Does this standing let the asker see what only those who BELONG may see (a roster, the invitations)?
33
+ * `self`, a verified `steward`, and a `member` the agent's own records name. `claimed` and `none` do not —
34
+ * and neither does a relation this function has never heard of. The ONE predicate the reads gate on, so a
35
+ * new relation cannot be admitted by a `!== 'none'` somewhere. */
36
+ export function belongs(standing) {
37
+ return standing?.relation === 'self' || standing?.relation === 'steward' || standing?.relation === 'member';
38
+ }
25
39
  const lc = (s) => s.toLowerCase();
26
40
  /**
27
41
  * What `principal` is to `subject`.
@@ -32,23 +46,74 @@ const lc = (s) => s.toLowerCase();
32
46
  */
33
47
  /** The stewardship check, built from the chain reads the mandate path already makes.
34
48
  *
35
- * SHAPE FIRST, and it is not a formality (SEC-C1 parity with the Home's `verifyStewardship`): a member's
36
- * vault-record grant is also a real, signed, unrevoked delegation from the org to the person. What makes
37
- * one of them stewardship is that it names GOVERNANCE targets and carries no record scope. Skip the shape
38
- * check and every member holding a data grant reads as a steward.
49
+ * STEWARD-SHAPE-CONFUSION-1 (audit 2026-11-10 RUNC-1, spec 445) — POSITIVE IDENTITY FIRST, and it is not a
50
+ * formality. An organization signs many delegations to a person: a payment mandate ([payment, timestamp,
51
+ * allowedTargets, allowedMethods]), a message grant ([timestamp, allowedTargets, allowedMethods]), a member's data
52
+ * grant ([vault-record-scope, …]). Each is real, signed and unrevoked. This used to ask what a wire was NOT (an
53
+ * allowedTargets caveat and no record scope) — which the first two also are not. Now the wire is stewardship only
54
+ * when it IS the oversight delegation the ontology defines (`OVERSIGHT_DELEGATION`, `ap:OversightDelegation`):
55
+ *
56
+ * - EVERY caveat is one of the kinds that definition lists (allowedTargets · timestamp · value), each at most
57
+ * once. Any other enforcer — allowedMethods, payment, record scope, one this estate has never seen — and it
58
+ * is something else. There is no list of excluded kinds to keep up to date.
59
+ * - allowedTargets names EVERY governance contract of the estate, and nothing outside the declared set. A
60
+ * mandate targets an asset; a message grant targets an agent.
61
+ * - a timestamp caveat is current; a value caveat is zero.
62
+ *
63
+ * Malformed terms, a missing required caveat, no governance contracts configured: not stewardship. Then, and
64
+ * only then, the chain is asked whether the organization signed it and has not revoked it.
39
65
  */
40
66
  export function chainStewardshipCheck(input) {
41
67
  const low = (v) => (v ?? '').toLowerCase();
68
+ const isAddr = (v) => /^0x[0-9a-f]{40}$/.test(v);
69
+ const kindOf = new Map();
70
+ for (const [kind, enforcer] of [['allowedTargets', input.allowedTargetsEnforcer], ['timestamp', input.timestampEnforcer], ['value', input.valueEnforcer]]) {
71
+ if (isAddr(low(enforcer)) && oversightCaveatRule(kind))
72
+ kindOf.set(low(enforcer), kind);
73
+ }
74
+ const required = (input.governanceTargets ?? []).map((t) => low(t));
75
+ const permitted = new Set([...required, ...(input.alsoPermittedTargets ?? []).map((t) => low(t))].filter(isAddr));
76
+ const configured = required.length > 0 && required.every(isAddr);
77
+ /** Is this wire, by its caveats alone, the oversight delegation? No chain read. */
78
+ const isOversightDelegation = (caveats) => {
79
+ if (!configured)
80
+ return false;
81
+ const seen = new Map();
82
+ for (const c of caveats) {
83
+ const kind = kindOf.get(low(typeof c?.enforcer === 'string' ? c.enforcer : ''));
84
+ if (!kind || seen.has(kind) || typeof c.terms !== 'string')
85
+ return false; // not a kind the definition lists
86
+ seen.set(kind, c.terms);
87
+ }
88
+ if (OVERSIGHT_DELEGATION.caveats.some((r) => r.required && !seen.has(r.kind)))
89
+ return false;
90
+ try {
91
+ const targets = decodeAllowedTargetsTerms(seen.get('allowedTargets')).map((t) => low(t));
92
+ if (!targets.length || !required.every((t) => targets.includes(t)) || !targets.every((t) => permitted.has(t)))
93
+ return false;
94
+ const window = seen.get('timestamp');
95
+ if (window !== undefined) {
96
+ const { validAfter, validUntil } = decodeTimestampTerms(window);
97
+ const now = BigInt(Math.floor(input.now ? input.now() : Date.now() / 1000));
98
+ if (now < validAfter || now > validUntil)
99
+ return false;
100
+ }
101
+ const value = seen.get('value');
102
+ if (value !== undefined && (!/^0x[0-9a-fA-F]{64}$/.test(value) || BigInt(value) !== 0n))
103
+ return false;
104
+ }
105
+ catch {
106
+ return false;
107
+ }
108
+ return true;
109
+ };
42
110
  return async ({ org, person, wire }) => {
43
111
  const w = wire;
44
112
  if (!w?.signature || !Array.isArray(w.caveats))
45
113
  return false;
46
114
  if (low(w.delegator) !== low(org) || low(w.delegate) !== low(person))
47
115
  return false;
48
- const enf = (c) => low(c.enforcer);
49
- const governance = !!input.allowedTargetsEnforcer && w.caveats.some((c) => enf(c) === low(input.allowedTargetsEnforcer));
50
- const recordScope = !!input.vaultRecordScopeEnforcer && w.caveats.some((c) => enf(c) === low(input.vaultRecordScopeEnforcer));
51
- if (!governance || recordScope)
116
+ if (!isOversightDelegation(w.caveats))
52
117
  return false;
53
118
  if (!input.validator)
54
119
  return false;
@@ -75,6 +140,22 @@ export function chainStewardshipCheck(input) {
75
140
  return revoked !== true;
76
141
  };
77
142
  }
143
+ /**
144
+ * THE SUBJECT IS AN ORGANIZATION — or a person, or a service that keeps its own records. It is NEVER a
145
+ * `.workspace` agent that something else governs (the owner's rule, 2026-10-02, `org.ttl` §2): a workspace
146
+ * agent is a SERVICE (`ap:WorkspaceAgent ⊑ ap:ServiceAgent`, `aporg:coordinatedBy`) that coordinates a
147
+ * workspace and cannot have members. Who belongs lives on the organization that GOVERNS the workspace
148
+ * (`aporg:governedBy` — `org.membership:member:<sa>` in the governor's vault, the roster index, the
149
+ * stewardship wire). So the standing a person has "at a workspace" is their standing at its governor, and
150
+ * THE CALLER RESOLVES THE WORKSPACE TO ITS GOVERNOR BEFORE ASKING — `governingSubjectOf` below reads the
151
+ * workspace's `workspace.governor` pointer and answers the governor, or the workspace itself when no pointer
152
+ * exists (a legacy workspace that still holds its own membership records; nothing is rewritten for it).
153
+ *
154
+ * The precondition rather than a resolver inside: this function reads three vaults already and is called
155
+ * from gates that memoise its answer per (principal, subject); a workspace that silently derived against
156
+ * another subject would memoise under the wrong key and answer the wrong question when the pointer moved.
157
+ * Resolve once, explicitly, where the subject is chosen.
158
+ */
78
159
  export async function deriveStanding(deps, input) {
79
160
  const subject = lc(input.subject);
80
161
  if (lc(input.principal) === subject) {
@@ -99,6 +180,9 @@ export async function deriveStanding(deps, input) {
99
180
  }
100
181
  }
101
182
  let name = subject;
183
+ // RUNC-2 — did the asker's OWN vault name this agent? Remembered, and believed for nothing but the display
184
+ // name and the weaker `claimed` answer at the very end.
185
+ let claimedByOwnRow = false;
102
186
  if (!routed) {
103
187
  // NOT caught. "I could not read your links" and "you have no link" are opposite facts, and this function
104
188
  // returns only the second — the caller reports the first as unavailable. Swallowing the read here would
@@ -117,9 +201,10 @@ export async function deriveStanding(deps, input) {
117
201
  return { subject, relation: 'steward', because: `you hold a stewardship grant from ${name}`, canGrant: true, ...(wireRef ? { wireRef } : {}) };
118
202
  }
119
203
  }
120
- if (row) {
121
- return { subject, relation: 'member', because: `you are linked to ${name}, but not as a steward`, canGrant: false };
122
- }
204
+ // THEIR OWN ROW IS NOT MEMBERSHIP (audit 2026-11-10 RUNC-2, spec 445). It used to return `member` here, and
205
+ // anyone could write `{ orgs: { <any org>: {} } }` into their own vault and be shown that org's roster and
206
+ // invitations. The row is their half; the organization's records below are the other. Both, or not a member.
207
+ claimedByOwnRow = !!row;
123
208
  }
124
209
  // THE ORGANIZATION'S OWN RECORD OF THEM (spec 366 R1). A member admitted by invitation is written on the
125
210
  // org's side at admission (`org.membership:member:<sa>`, in the org's own vault) — the org's word about
@@ -127,9 +212,32 @@ export async function deriveStanding(deps, input) {
127
212
  // question, rather than on what the asker's own vault says about itself. Checked after the wire (a
128
213
  // steward who is also a member is a steward) and before the published listing.
129
214
  const admitted = await deps.readSubjectRecord(subject, `org.membership:member:${lc(input.principal)}`).catch(() => null);
130
- if (admitted && typeof admitted === 'object') {
215
+ // An ENDED membership (left, or removed by a steward — spec 324 §11) is history, not standing.
216
+ if (admitted && typeof admitted === 'object' && !admitted.endedAt) {
131
217
  return { subject, relation: 'member', because: `${name} records you as a member, but not a steward`, canGrant: false };
132
218
  }
219
+ // THE ORGANIZATION'S STANDING INVITATION OF THEM (spec 372 S3b / 400 W1). An agent that has no Home session of
220
+ // its own — a service member, an outside runtime — never "joins": the steward's invitation IS its admission, and
221
+ // the org→member access grant the org keeps against it (`org.invite:agent:<sa>`, its delegate the member) is the
222
+ // org's own word that it belongs. A declined or removed invitation is not membership; nor is one whose grant names
223
+ // someone else.
224
+ const invited = (await deps.readSubjectRecord(subject, `org.invite:agent:${lc(input.principal)}`).catch(() => null));
225
+ if (invited && typeof invited === 'object' && !['declined', 'removed', 'revoked'].includes(String(invited.status ?? '')) && lc(String(invited.delegation?.delegate ?? '')) === lc(input.principal)) {
226
+ // AN INVITATION IS NOT MEMBERSHIP for a person (appr:invitationIsNotMembership): david.me, invited and never accepted, was
227
+ // read as a member and shown the roster (act laboratory set 7, 2026-09-28). A person's acceptance writes the admitted
228
+ // record above; only an agent that never joins is admitted by the invitation itself — and only when its kind says so.
229
+ const kind = deps.agentKindOf ? await deps.agentKindOf(input.principal).catch(() => null) : null;
230
+ const neverJoins = kind !== null && kind !== 'person' && kind !== 'org' && kind !== 'me';
231
+ if (neverJoins)
232
+ return { subject, relation: 'member', because: `${name} invited you and holds your access grant, but you are not a steward`, canGrant: false };
233
+ }
234
+ // A PERSON'S FRIEND (spec 401 §10): the person's own standing offer of friendship to this agent — `friend:<sa>` in
235
+ // their vault (aporg:FriendshipOffer), under the grant they signed. HER half is what lets the friend in: her grant is
236
+ // the authority, whether or not the friend has offered theirs back. A withdrawn offer is no standing.
237
+ const offer = (await deps.readSubjectRecord(subject, `friend:${lc(input.principal)}`).catch(() => null));
238
+ if (offer?.type === 'ap.friend-offer.v1' && offer.status === 'standing' && lc(String(offer.offeredTo ?? '')) === lc(input.principal)) {
239
+ return { subject, relation: 'member', because: `${name} has offered you friendship, but you are not a steward`, canGrant: false };
240
+ }
133
241
  // Not in their tree: they may still be in its roster (a member who keeps no link of their own). A roster
134
242
  // we cannot read is likewise not an absence — `none` here must mean "looked everywhere, found nothing".
135
243
  const dir = await deps.readSubjectRecord(subject, 'directory.data');
@@ -137,6 +245,11 @@ export async function deriveStanding(deps, input) {
137
245
  if (listings.some((l) => lc(String(l.smartAgent ?? l.agent ?? '')) === lc(input.principal))) {
138
246
  return { subject, relation: 'member', because: 'you are a member there, but not a steward', canGrant: false };
139
247
  }
248
+ // Looked everywhere on the agent's side and found nothing. If their own vault says otherwise, that is said —
249
+ // as a claim, which opens nothing — rather than rendered as either membership or "no link".
250
+ if (claimedByOwnRow) {
251
+ return { subject, relation: 'claimed', because: `your own records link you to ${name}, but ${name} holds no record of you as a member`, canGrant: false };
252
+ }
140
253
  return { subject, relation: 'none', because: 'you have no link to that agent', canGrant: false };
141
254
  }
142
255
  /** The sentence to show when authority is needed as an agent the person cannot grant for. Names what they
@@ -149,4 +262,37 @@ export function standingNote(standing, capabilityWords) {
149
262
  }
150
263
  return `This needs ${capabilityWords} as that agent, and ${standing.because}.`;
151
264
  }
265
+ // ── THE GOVERNOR OF A WORKSPACE ───────────────────────────────────────────────────────────────────────
266
+ /** The pointer a governed workspace's agent keeps in its OWN vault, written when the workspace is paired
267
+ * with its organization: `{ governedBy: <org sa>, coordinatedBy: <this workspace agent> }`. The organization
268
+ * keeps the mirror (`workspace:<ws sa>`, the `aporg:Workspace` entity). One record, one read. */
269
+ export const WORKSPACE_GOVERNOR_RECORD = 'workspace.governor';
270
+ /** Pure: the governing organization a `workspace.governor` record names, or null for no pointer / a malformed
271
+ * one. A pointer that names nothing is treated exactly like no pointer — the legacy path — never as a governor
272
+ * at address zero. */
273
+ export function governorOf(doc) {
274
+ if (!doc || typeof doc !== 'object')
275
+ return null;
276
+ const g = doc.governedBy;
277
+ const addr = typeof g === 'string' ? g.toLowerCase() : '';
278
+ return /^0x[0-9a-f]{40}$/.test(addr) ? addr : null;
279
+ }
280
+ /**
281
+ * The subject to derive standing AGAINST for a scope that may be a workspace: its governor when the workspace
282
+ * holds the pointer, the agent itself otherwise. Reads one record and nothing else — an organization asked
283
+ * about itself answers itself (an org keeps no `workspace.governor`), a legacy workspace answers itself
284
+ * (today's behaviour, untouched), and a governed workspace answers its organization. A read that fails is
285
+ * read as "no pointer": the fallback is the pre-rule behaviour, not a refusal, so a vault hiccup costs a
286
+ * legacy answer rather than a dead page.
287
+ */
288
+ export async function governingSubjectOf(read, subject) {
289
+ const self = lc(subject);
290
+ if (!read)
291
+ return { subject: self, governor: null };
292
+ const governor = governorOf(await read(self, WORKSPACE_GOVERNOR_RECORD).catch(() => null));
293
+ // A pointer naming itself is a workspace governing itself — which is to say, not governed.
294
+ if (!governor || governor === self)
295
+ return { subject: self, governor: null };
296
+ return { subject: governor, governor };
297
+ }
152
298
  //# sourceMappingURL=standing.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"standing.js","sourceRoot":"","sources":["../src/standing.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,EAAE;AACF,2GAA2G;AAC3G,oGAAoG;AACpG,uGAAuG;AACvG,oDAAoD;AACpD,EAAE;AACF,8FAA8F;AAC9F,qGAAqG;AACrG,+FAA+F;AAC/F,EAAE;AACF,uDAAuD;AACvD,gGAAgG;AAChG,kGAAkG;AAClG,wGAAwG;AACxG,gFAAgF;AAChF,yFAAyF;AACzF,kGAAkG;AAClG,EAAE;AACF,yGAAyG;AACzG,0GAA0G;AAC1G,yEAAyE;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAmB,MAAM,+BAA+B,CAAC;AAiChF,MAAM,EAAE,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;AAE1C;;;;;;GAMG;AACH;;;;;;GAMG;AACH,MAAM,UAAU,qBAAqB,CAAC,KASrC;IACC,MAAM,GAAG,GAAG,CAAC,CAAU,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC;IACpD,OAAO,KAAK,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE;QACrC,MAAM,CAAC,GAAG,IAAgD,CAAC;QAC3D,IAAI,CAAC,CAAC,EAAE,SAAS,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;YAAE,OAAO,KAAK,CAAC;QAC7D,IAAI,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,GAAG,CAAC,GAAG,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AAC,KAAK,UAAU,kBAAkB,CACtC,IAAiH,EACjH,OAAgB;IAEhB,MAAM,IAAI,GAAG,EAAE,CAAC,OAAO,CAAY,CAAC;IACpC,IAAI,CAAC,IAAI;QAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACpD,MAAM,QAAQ,GAAG,UAAU,CAAC,MAAM,IAAI,CAAC,IAAI,EAAE,yBAAyB,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;IAC3F,2FAA2F;IAC3F,IAAI,CAAC,QAAQ,IAAI,QAAQ,KAAK,IAAI;QAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7E,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC;AACzC,CAAC"}
package/dist/tiers.d.ts CHANGED
@@ -10,5 +10,11 @@ export interface ContextProvenance {
10
10
  /** How it was matched (`exact-name`, `label`, `display-name`) — a search may fuzz; a caller deciding
11
11
  * whether to trust a single hit needs to know which. */
12
12
  match?: string;
13
+ /** Spec 420 §10 — the CONTEXT this fact was found in (the organization or team whose roster names it), so a resolver
14
+ * can prefer the person in the room the asker is standing in over one from a farther context. */
15
+ context?: {
16
+ agent: string;
17
+ name?: string;
18
+ };
13
19
  }
14
20
  //# sourceMappingURL=tiers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tiers.d.ts","sourceRoot":"","sources":["../src/tiers.ts"],"names":[],"mappings":"AAgBA,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,QAAQ,CAAC;AAE/C,oGAAoG;AACpG,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,WAAW,CAAC;IAClB;qEACiE;IACjE,MAAM,EAAE,MAAM,CAAC;IACf,+FAA+F;IAC/F,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;6DACyD;IACzD,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
1
+ {"version":3,"file":"tiers.d.ts","sourceRoot":"","sources":["../src/tiers.ts"],"names":[],"mappings":"AAgBA,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,QAAQ,CAAC;AAE/C,oGAAoG;AACpG,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,WAAW,CAAC;IAClB;qEACiE;IACjE,MAAM,EAAE,MAAM,CAAC;IACf,+FAA+F;IAC/F,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;6DACyD;IACzD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;sGACkG;IAClG,OAAO,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAC5C"}
@@ -69,6 +69,9 @@ export declare function inventoryLines(survey: ReadonlyArray<{
69
69
  * was read — so the diagnostics pane can show a person which of their records an answer came from.
70
70
  */
71
71
  export declare function vaultQuestionInvoker(model: VaultQuestionModel, deps: VaultQuestionDeps, subject?: string, resolveName?: (name: string) => Promise<string | null>): ToolInvoker;
72
+ /** The secret kind a question names by its own word ("pairwise secrets", "device key"), in words — or null.
73
+ * The words are the binding's (`secretRecordKinds`), never a list kept here. */
74
+ export declare function secretKindNamed(question: string): string | null;
72
75
  /** What kinds a question may be about — the binding's, never the model's. Exported for the vocabulary. */
73
76
  export declare const VAULT_QUESTION_KINDS: typeof askableRecordKinds;
74
77
  export { recordTypesForClass };
@@ -1 +1 @@
1
- {"version":3,"file":"vault-question.d.ts","sourceRoot":"","sources":["../src/vault-question.ts"],"names":[],"mappings":"AAmCA,OAAO,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAwB,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAE5G,eAAO,MAAM,mBAAm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