@getcirrus/space-conformance 0.0.0 → 0.1.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 (80) hide show
  1. package/dist/base-CGsQgOwR.d.ts +472 -0
  2. package/dist/base-CGsQgOwR.d.ts.map +1 -0
  3. package/dist/cli.js +79266 -26
  4. package/dist/cli.js.map +1 -1
  5. package/dist/coverage-zCMup3Nb.js +2245 -0
  6. package/dist/coverage-zCMup3Nb.js.map +1 -0
  7. package/dist/descriptors-YEk3XoDL.js +4428 -0
  8. package/dist/descriptors-YEk3XoDL.js.map +1 -0
  9. package/dist/full-Bomm2urj.js +12285 -0
  10. package/dist/full-Bomm2urj.js.map +1 -0
  11. package/dist/full.d.ts +43 -17
  12. package/dist/full.d.ts.map +1 -1
  13. package/dist/full.js +3 -3
  14. package/dist/index.d.ts +91 -28
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/index.js +115 -93
  17. package/dist/index.js.map +1 -1
  18. package/lexicons/MANIFEST.json +3 -3
  19. package/lexicons/managedspace/checkAccess.json +44 -0
  20. package/lexicons/managedspace/policy.json +22 -0
  21. package/lexicons/memberspace/defs.json +22 -0
  22. package/lexicons/{simplespace → memberspace}/listMembers.json +15 -17
  23. package/lexicons/memberspace/member.json +23 -0
  24. package/lexicons/memberspace/policy.json +40 -0
  25. package/lexicons/memberspace/putMembers.json +43 -0
  26. package/lexicons/memberspace/removeMembers.json +43 -0
  27. package/lexicons/personalspace/policy.json +11 -0
  28. package/lexicons/space/applyWrites.json +6 -11
  29. package/lexicons/space/authorizeSpaceSync.json +109 -0
  30. package/lexicons/space/clearRecords.json +34 -0
  31. package/lexicons/space/confirmRegistration.json +44 -0
  32. package/lexicons/space/createRecord.json +7 -14
  33. package/lexicons/space/createSpace.json +58 -0
  34. package/lexicons/space/defs.json +61 -17
  35. package/lexicons/space/deleteRecord.json +5 -9
  36. package/lexicons/space/deleteSpace.json +31 -0
  37. package/lexicons/space/exportSpaceMeta.json +31 -0
  38. package/lexicons/space/getBlob.json +4 -7
  39. package/lexicons/space/getDelegationToken.json +3 -5
  40. package/lexicons/space/getLatestCommit.json +8 -7
  41. package/lexicons/space/getRecord.json +9 -9
  42. package/lexicons/space/getRepo.json +8 -11
  43. package/lexicons/space/getSpace.json +43 -0
  44. package/lexicons/space/importRepo.json +27 -0
  45. package/lexicons/space/importSpaceMeta.json +25 -0
  46. package/lexicons/space/listBlobs.json +3 -10
  47. package/lexicons/space/listRecords.json +10 -16
  48. package/lexicons/space/listRepoOps.json +23 -23
  49. package/lexicons/space/listSpaces.json +30 -14
  50. package/lexicons/space/listWriters.json +66 -0
  51. package/lexicons/space/notifyCredentialsRevoked.json +30 -0
  52. package/lexicons/space/notifyRepoUpdate.json +43 -0
  53. package/lexicons/space/notifySpaceUpdate.json +53 -0
  54. package/lexicons/space/policy.json +26 -0
  55. package/lexicons/space/putRecord.json +7 -14
  56. package/lexicons/space/removeWriter.json +35 -0
  57. package/lexicons/space/updateSpace.json +43 -0
  58. package/package.json +8 -10
  59. package/dist/base-D8a-ZK57.d.ts +0 -249
  60. package/dist/base-D8a-ZK57.d.ts.map +0 -1
  61. package/dist/coverage-DhJZu8P8.js +0 -1914
  62. package/dist/coverage-DhJZu8P8.js.map +0 -1
  63. package/dist/full-D4ufJLcw.js +0 -409
  64. package/dist/full-D4ufJLcw.js.map +0 -1
  65. package/dist/operator-BErXCDow.js +0 -923
  66. package/dist/operator-BErXCDow.js.map +0 -1
  67. package/lexicons/simplespace/addMember.json +0 -37
  68. package/lexicons/simplespace/checkUserAccess.json +0 -43
  69. package/lexicons/simplespace/createSpace.json +0 -74
  70. package/lexicons/simplespace/defs.json +0 -47
  71. package/lexicons/simplespace/deleteSpace.json +0 -32
  72. package/lexicons/simplespace/getSpace.json +0 -53
  73. package/lexicons/simplespace/removeMember.json +0 -37
  74. package/lexicons/simplespace/updateSpace.json +0 -57
  75. package/lexicons/space/getSpaceCredential.json +0 -67
  76. package/lexicons/space/listRepos.json +0 -75
  77. package/lexicons/space/notifySpaceDeleted.json +0 -24
  78. package/lexicons/space/notifyWrite.json +0 -38
  79. package/lexicons/space/registerNotify.json +0 -49
  80. package/lexicons/space/unregisterNotify.json +0 -29
package/dist/full.d.ts CHANGED
@@ -1,40 +1,54 @@
1
- import { E as IdentityProvider, T as HarnessIdentity, a as credentialGet, c as operatorChecks, h as createDpopKey, i as createProbeSpace, l as operatorCreateRecord, n as Credential, o as deleteProbeSpace, r as ProbeSpace, s as obtainCredentialViaDelegation, t as baseChecks, u as XrpcResult, v as Check, w as DpopKey, y as CheckContext } from "./base-D8a-ZK57.js";
1
+ import { H as CheckContext, J as IdentityProvider, O as CredentialKey, P as createCredentialKey, S as XrpcResult, V as Check, _ as obtainPublicCredential, a as Credential, d as credentialCall, f as credentialGet, g as obtainCredentialViaDelegation, i as createSyncerInbox, l as ProbeSpace, n as operatorChecks, p as deleteProbeSpace, q as HarnessIdentity, r as SyncerInboxHandle, t as baseChecks, u as createProbeSpace, v as operatorCreateRecord, x as requestCredential } from "./base-CGsQgOwR.js";
2
2
 
3
3
  //#region src/identity.d.ts
4
4
 
5
5
  interface HarnessIdentityWithKey extends HarnessIdentity {
6
- /** The did:key form of the identity's signing key, for resolver wiring. */
6
+ /** The did:key form of the identity's `#atproto` key, for resolver wiring. */
7
7
  didKey: string;
8
8
  }
9
+ interface IdentityDocumentOptions {
10
+ /** Publish an `#atproto_pds` service at this endpoint (inboxes, managing apps). */
11
+ serviceEndpoint?: string;
12
+ /** A handle to list in `alsoKnownAs`. */
13
+ handle?: string;
14
+ }
9
15
  /**
10
16
  * An identity provider backed by secp256k1 keypairs. Identities are keyed
11
17
  * by role label and reused within a run, so "reader" is stable across the
12
18
  * checks that mint and then present its tokens.
13
19
  *
14
- * `didAt` lets the caller give each identity a resolvable DID (e.g.
15
- * `did:web:checker.test:actors:reader`); when omitted, the identity's DID
16
- * is its own `did:key`, which only works against a target whose resolver
17
- * this provider is wired into.
20
+ * `didFor` gives each identity a resolvable DID (e.g.
21
+ * `did:web:localhost%3A61234`), and may be async — a harness can start the
22
+ * server that will publish the document there. When omitted, the
23
+ * identity's DID is its own `did:key`, which only works against a target
24
+ * whose resolver this provider is wired into.
18
25
  */
19
26
  declare class KeypairIdentityProvider implements IdentityProvider {
20
- private readonly didAt?;
27
+ private readonly didFor?;
21
28
  private cache;
22
- constructor(didAt?: ((role: string, didKey: string) => string) | undefined);
29
+ constructor(didFor?: ((role: string, didKey: string) => string | Promise<string>) | undefined);
23
30
  identity(role: string): Promise<HarnessIdentityWithKey>;
24
31
  private mint;
25
- dpopKey(): Promise<DpopKey>;
32
+ /**
33
+ * The DID document a resolvable identity must publish: its `#atproto`
34
+ * key as a Multikey and, optionally, the `#atproto_pds` service the
35
+ * target delivers to.
36
+ */
37
+ static didDocument(identity: Pick<HarnessIdentityWithKey, "did" | "didKey">, opts?: IdentityDocumentOptions): Record<string, unknown>;
26
38
  /** All minted identities so far, for resolver wiring in fixtures. */
27
39
  minted(): Promise<HarnessIdentityWithKey[]>;
28
40
  }
29
41
  //#endregion
30
42
  //#region src/full/helpers.d.ts
31
-
32
- /** Mint a delegation token for `identity` against `space`. */
33
- declare function mintDelegation(ctx: CheckContext, identity: HarnessIdentity, space: string, audOverride?: string): Promise<string>;
34
43
  /**
35
- * The full obtain flow: mint a delegation token as `identity`, exchange it
36
- * at the target for a credential bound to a fresh DPoP key. Returns the
37
- * raw XrpcResult alongside the credential so callers can assert on refusals.
44
+ * Mint a delegation token for `identity` against `space`, addressed (by
45
+ * default) to the space authority's `#atproto_pds` — the space host.
46
+ */
47
+ declare function mintDelegation(identity: HarnessIdentity, space: string, audOverride?: string): Promise<string>;
48
+ /**
49
+ * The full obtain flow as a foreign user: mint a delegation token as
50
+ * `identity` and exchange it for a credential bound to a fresh P-256 key.
51
+ * Returns the raw result so callers can assert on refusals.
38
52
  */
39
53
  declare function obtainCredential(ctx: CheckContext, identity: HarnessIdentity, space: string, opts?: {
40
54
  audOverride?: string;
@@ -43,9 +57,21 @@ declare function obtainCredential(ctx: CheckContext, identity: HarnessIdentity,
43
57
  result: XrpcResult;
44
58
  credential?: Credential;
45
59
  }>;
60
+ /**
61
+ * Mint a credential as the authority of `space` — a harness identity
62
+ * playing a foreign space authority whose credentials a repo host must
63
+ * honour for reads of its repos in that space.
64
+ */
65
+ declare function mintCredential(authority: HarnessIdentity, space: string, keyDid: string): Promise<string>;
66
+ /** An inter-service auth JWT (`lxm`-scoped), signed as `identity`. */
67
+ declare function serviceJwt(identity: HarnessIdentity, opts: {
68
+ aud: string;
69
+ lxm: string;
70
+ expiresInSec?: number;
71
+ }): Promise<string>;
46
72
  //#endregion
47
73
  //#region src/full/checks.d.ts
48
- /** The crypto-bound catalog: identity checks plus the LtHash fold. */
74
+ /** The crypto-bound catalog, in descriptor order. */
49
75
  declare const cryptoChecks: Check[];
50
76
  //#endregion
51
77
  //#region src/full.d.ts
@@ -55,5 +81,5 @@ declare const cryptoChecks: Check[];
55
81
  */
56
82
  declare const fullCatalog: Check[];
57
83
  //#endregion
58
- export { type Credential, type HarnessIdentityWithKey, KeypairIdentityProvider, type ProbeSpace, baseChecks, createDpopKey, createProbeSpace, credentialGet, cryptoChecks, deleteProbeSpace, fullCatalog, mintDelegation, obtainCredential, obtainCredentialViaDelegation, operatorChecks, operatorCreateRecord };
84
+ export { type Credential, type CredentialKey, type HarnessIdentityWithKey, type IdentityDocumentOptions, KeypairIdentityProvider, type ProbeSpace, type SyncerInboxHandle, baseChecks, createCredentialKey, createProbeSpace, createSyncerInbox, credentialCall, credentialGet, cryptoChecks, deleteProbeSpace, fullCatalog, mintCredential, mintDelegation, obtainCredential, obtainCredentialViaDelegation, obtainPublicCredential, operatorChecks, operatorCreateRecord, requestCredential, serviceJwt };
59
85
  //# sourceMappingURL=full.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"full.d.ts","names":[],"sources":["../src/identity.ts","../src/full/helpers.ts","../src/full/checks.ts","../src/full.ts"],"sourcesContent":[],"mappings":";;;;AC4CW,UDnBM,sBAAA,SAA+B,eCmBrC,CAAA;EAGR;EAAO,MAAA,EAAA,MAAA;AAiBV;;;;;;;;;;ACgVA;cFxWa,uBAAA,YAAmC;;;EGHnC,WAAA,CAAA,KAAW,CAItB,EAAA,CAAA,CAAA,IAAA,EAAA,MAJsB,EAAA,MAAA,EAAA,MAAA,EAAA,GAAA,MAAA,CAAA,GAAA,SAAA;0BHUC,QAAQ;;aAqBrB,QAAQ;;YAKT,QAAQ;;;;;ACTnB;AACM,iBAvBgB,cAAA,CAuBhB,GAAA,EAtBA,YAsBA,EAAA,QAAA,EArBK,eAqBL,EAAA,KAAA,EAAA,MAAA,EAAA,WAAA,CAAA,EAAA,MAAA,CAAA,EAlBH,OAkBG,CAAA,MAAA,CAAA;;;;;;iBADgB,gBAAA,MAChB,wBACK,oCC8UX;;;AAAA,CAAA,CAAA,ED3UG,OC2UU,CAAA;UD3UQ;eAAyB;;;;;AA3BxB,cCsWT,YDtWuB,ECsWT,KDtWS,EAAA;;;AAApC;;;;AAKU,cEVG,WFUH,EENR,KAAA,EFMQ"}
1
+ {"version":3,"file":"full.d.ts","names":[],"sources":["../src/identity.ts","../src/full/helpers.ts","../src/full/checks.ts","../src/full.ts"],"sourcesContent":[],"mappings":";;;;AC0GsB,UDvEL,sBAAA,SAA+B,eC0EtC,CAAA;;;;ACqgCG,UF1kCI,uBAAA,CE0kCe;;;;ECjkCnB,MAAA,CAAA,EAAA,MAIX;;;;;;;;;;;;;cHKW,uBAAA,YAAmC;;;mEAOhC;0BAGS,QAAQ;;;;;;;+BA2BrB,KAAK,kDACT,0BACJ;;YA+BO,QAAQ;;;;;;ACzEnB;AAkBA;AACM,iBAnBU,cAAA,CAmBV,QAAA,EAlBK,eAkBL,EAAA,KAAA,EAAA,MAAA,EAAA,WAAA,CAAA,EAAA,MAAA,CAAA,EAfH,OAeG,CAAA,MAAA,CAAA;;;;;;AAkBU,iBAnBM,gBAAA,CAoBV,GAAA,EAnBN,YAsBI,EAAA,QAAA,EArBC,eAqBD,EAAA,KAAA,EAAA,MAAA,EAAA,KAAA,EAAA;EAUY,WAAA,CAAA,EAAU,MAAA;;IA5B7B;UAAkB;ECoiCR,UAAA,CAAA,EDpiCiC,UC+jC7C;;;;AC5lCD;;;iBF2CgB,cAAA,YACJ,iDAGT;;iBAUmB,UAAA,WACX;;;;IAER;;;;cCqgCU,cAAc;;;;;AD3jC3B;AAkBA;AACM,cEzBO,WFyBP,EErBJ,KAAA,EFqBI"}
package/dist/full.js CHANGED
@@ -1,4 +1,4 @@
1
- import { c as operatorCreateRecord, f as baseChecks, i as deleteProbeSpace, n as createProbeSpace, o as obtainCredentialViaDelegation, r as credentialGet, s as operatorChecks, u as createDpopKey } from "./operator-BErXCDow.js";
2
- import { a as obtainCredential, i as mintDelegation, n as KeypairIdentityProvider, r as cryptoChecks, t as fullCatalog } from "./full-D4ufJLcw.js";
1
+ import { a as mintDelegation, i as mintCredential, n as KeypairIdentityProvider, o as obtainCredential, r as cryptoChecks, s as serviceJwt, t as fullCatalog } from "./full-Bomm2urj.js";
2
+ import { C as operatorCreateRecord, D as requestCredential, S as obtainPublicCredential, V as createCredentialKey, a as operatorChecks, g as deleteProbeSpace, h as credentialGet, i as createSyncerInbox, m as credentialCall, p as createProbeSpace, u as baseChecks, x as obtainCredentialViaDelegation } from "./descriptors-YEk3XoDL.js";
3
3
 
4
- export { KeypairIdentityProvider, baseChecks, createDpopKey, createProbeSpace, credentialGet, cryptoChecks, deleteProbeSpace, fullCatalog, mintDelegation, obtainCredential, obtainCredentialViaDelegation, operatorChecks, operatorCreateRecord };
4
+ export { KeypairIdentityProvider, baseChecks, createCredentialKey, createProbeSpace, createSyncerInbox, credentialCall, credentialGet, cryptoChecks, deleteProbeSpace, fullCatalog, mintCredential, mintDelegation, obtainCredential, obtainCredentialViaDelegation, obtainPublicCredential, operatorChecks, operatorCreateRecord, requestCredential, serviceJwt };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as Tier, C as Citation, D as InboxDelivery, E as IdentityProvider, M as pass, O as SyncerInbox, S as CheckStatus, T as HarnessIdentity, _ as Capability, a as credentialGet, b as CheckOutcome, c as operatorChecks, d as operatorHeaders, f as xrpcGet, g as createDpopProofJwt, h as createDpopKey, i as createProbeSpace, j as fail, k as Target, l as operatorCreateRecord, m as xrpcUrl, n as Credential, o as deleteProbeSpace, p as xrpcPost, r as ProbeSpace, s as obtainCredentialViaDelegation, t as baseChecks, u as XrpcResult, v as Check, w as DpopKey, x as CheckResult, y as CheckContext } from "./base-D8a-ZK57.js";
1
+ import { $ as fail, A as MAC_COVERED_HEADER, B as Capability, C as operatorHeaders, D as COMMIT_MAC_PROFILE, E as xrpcUrl, F as credentialSigMembers, G as CheckStatus, H as CheckContext, I as encapsulate, J as IdentityProvider, K as Citation, L as formatMacRequest, M as RECORD_MAC_PROFILE, N as SPACE_CREDENTIAL_SCHEME, O as CredentialKey, P as createCredentialKey, Q as Tier, R as isP256DidKey, S as XrpcResult, T as xrpcPost, U as CheckOutcome, V as Check, W as CheckResult, X as SyncerInbox, Y as InboxDelivery, Z as Target, _ as obtainPublicCredential, a as Credential, b as publicRead, c as Policy, d as credentialCall, et as pass, f as credentialGet, g as obtainCredentialViaDelegation, h as memberspace, i as createSyncerInbox, j as MacProfile, k as CredentialSigOptions, l as ProbeSpace, m as managedspace, n as operatorChecks, o as CredentialCallOptions, p as deleteProbeSpace, q as HarnessIdentity, r as SyncerInboxHandle, s as CredentialResult, t as baseChecks, u as createProbeSpace, v as operatorCreateRecord, w as xrpcGet, x as requestCredential, y as personalspace, z as spaceSigHeaders } from "./base-CGsQgOwR.js";
2
2
 
3
3
  //#region src/registry.d.ts
4
4
 
@@ -39,20 +39,32 @@ declare function buildCatalog(checks: Check[]): Check[];
39
39
  */
40
40
  declare function filterCatalog(catalog: Check[], filter: CatalogFilter): FilteredCatalog;
41
41
  //#endregion
42
- //#region src/car.d.ts
42
+ //#region src/did.d.ts
43
+ declare const DEFAULT_PLC_DIRECTORY = "https://plc.directory";
44
+ interface DidDocument {
45
+ id: string;
46
+ alsoKnownAs?: string[];
47
+ verificationMethod?: Array<{
48
+ id: string;
49
+ type: string;
50
+ controller?: string;
51
+ publicKeyMultibase?: string;
52
+ }>;
53
+ service?: Array<{
54
+ id: string;
55
+ type: string;
56
+ serviceEndpoint: unknown;
57
+ }>;
58
+ }
59
+ /** The URL a DID document is fetched from, mirroring the reference resolver. */
60
+ declare function didDocumentUrl(did: string, plcDirectory?: string): string;
61
+ declare function resolveDidDocument(ctx: Pick<CheckContext, "fetch" | "target" | "resolveDid">, did: string): Promise<DidDocument>;
43
62
  /**
44
- * Just enough CARv1 reading to assert getRepo's declared shape: the
45
- * lexicon requires exactly two roots (the signed commit, then the index).
46
- * Reading the header needs only a varint and a dag-cbor decode — no CAR
47
- * library, no node streams — so it stays runnable anywhere the full entry
48
- * runs.
63
+ * A verification method as a did:key, accepting the `Multikey` form and
64
+ * the legacy 2019 types PLC still emits (raw key bytes, no multicodec).
49
65
  */
50
- interface CarHeaderInfo {
51
- version: number;
52
- rootCount: number;
53
- }
54
- /** Parse just the CARv1 header block and report its version and root count. */
55
- declare function readCarHeader(bytes: Uint8Array): CarHeaderInfo;
66
+ declare function verificationMethodDidKey(doc: DidDocument, fragment: string): string | undefined;
67
+ declare function serviceEndpoint(doc: DidDocument, fragment: string): string | undefined;
56
68
  //#endregion
57
69
  //#region src/descriptors.d.ts
58
70
  interface CheckDescriptor {
@@ -63,11 +75,9 @@ interface CheckDescriptor {
63
75
  citations: Citation[];
64
76
  destructive?: boolean;
65
77
  slow?: boolean;
78
+ timeoutMs?: number;
66
79
  }
67
- /**
68
- * Every crypto-bound check, by metadata. Keep in the same order and with
69
- * the same fields as `cryptoChecks` (enforced by the drift test).
70
- */
80
+ /** Every crypto-bound check, by metadata, in catalog order. */
71
81
  declare const cryptoCheckDescriptors: CheckDescriptor[];
72
82
  /**
73
83
  * Turn a descriptor into a listable Check. Its run() is never invoked —
@@ -79,6 +89,38 @@ declare const cryptoCheckDescriptors: CheckDescriptor[];
79
89
  */
80
90
  declare function descriptorToStub(d: CheckDescriptor): Check;
81
91
  //#endregion
92
+ //#region src/alpha.d.ts
93
+ /**
94
+ * The alpha build the suite's verifiers are pinned to: the
95
+ * `@atproto/space` / `@atproto/crypto` versions bundled into dist, cut from
96
+ * bluesky-social/atproto `permissioned-data-alpha` at the vendored lexicon
97
+ * commit. Runners stamp it on every report.
98
+ */
99
+ declare const ALPHA_BUILD = "0.0.0-spaces-alpha-20261124235736";
100
+ //#endregion
101
+ //#region src/changesets.d.ts
102
+ /**
103
+ * The upstream changesets the suite may cite, from bluesky-social/atproto
104
+ * `permissioned-data-alpha` at the vendored commit (see
105
+ * ../lexicons/MANIFEST.json). For alpha mechanics no lexicon can express —
106
+ * the credential HTTP signature, the MAC exchange, key discovery — a
107
+ * changeset is the alpha's only normative prose. Citations are checked
108
+ * against this list, the same typo guard lexicon citations get; re-vendor
109
+ * it alongside the lexicons.
110
+ */
111
+ declare const knownChangesets: readonly string[];
112
+ //#endregion
113
+ //#region src/proposal.d.ts
114
+ /**
115
+ * The section anchors of proposal 0016 (Atproto Spaces), as combined in
116
+ * bluesky-social/proposals#143 at b54ec685 — the spec this alpha
117
+ * implements. A `proposal` citation's ref is `0016#<anchor>`, checked
118
+ * against this list (the typo guard lexicon and changeset citations get).
119
+ * Regenerate it from the proposal's headings when the alpha moves.
120
+ */
121
+ declare const PROPOSAL_COMMIT = "b54ec6853bab77edd4fd373804a480633094b324";
122
+ declare const knownProposalAnchors: readonly string[];
123
+ //#endregion
82
124
  //#region src/runner.d.ts
83
125
  interface RunReport {
84
126
  suite: {
@@ -127,9 +169,9 @@ declare function renderReport(report: RunReport): string;
127
169
  //#endregion
128
170
  //#region src/lexicons.d.ts
129
171
  /**
130
- * Vendored lexicon access. Regenerated by the vendor step of the weekly
131
- * sync whenever lexicons/ changes — imports are explicit so bundlers
132
- * carry the documents without filesystem access at runtime.
172
+ * Vendored lexicon access. Generated by scripts/vendor-lexicons.mjs whenever
173
+ * lexicons/ is re-vendored — imports are explicit so bundlers carry the
174
+ * documents without filesystem access at runtime.
133
175
  */
134
176
  interface LexiconDoc {
135
177
  lexicon: number;
@@ -144,13 +186,34 @@ interface CoverageRequirement {
144
186
  ref: string;
145
187
  kind: "method" | "error";
146
188
  }
189
+ /**
190
+ * A requirement the suite deliberately does not cover. `ref` is an exact
191
+ * requirement, or `*@error:Name` for that error on every method declaring
192
+ * it.
193
+ */
194
+ interface CoverageExemption {
195
+ ref: string;
196
+ reason: string;
197
+ }
198
+ declare const coverageExemptions: CoverageExemption[];
147
199
  interface CoverageReport {
148
200
  requirements: CoverageRequirement[];
149
201
  covered: Array<{
150
202
  ref: string;
151
203
  by: string[];
152
204
  }>;
205
+ /** Requirements no `must` check covers and no exemption explains. */
153
206
  gaps: CoverageRequirement[];
207
+ /** Requirements excused by an exemption, with its reason. */
208
+ exempt: Array<{
209
+ ref: string;
210
+ reason: string;
211
+ }>;
212
+ /**
213
+ * Exemptions that excuse nothing: they match no requirement, or every
214
+ * requirement they match is covered by a check after all.
215
+ */
216
+ staleExemptions: CoverageExemption[];
154
217
  /** Lexicon citations on checks that match no requirement (typo guard). */
155
218
  danglingCitations: Array<{
156
219
  checkId: string;
@@ -159,20 +222,20 @@ interface CoverageReport {
159
222
  }
160
223
  /** Extract the coverage requirements from the vendored lexicons. */
161
224
  declare function coverageRequirements(docs?: LexiconDoc[]): CoverageRequirement[];
162
- declare function coverageReport(catalog: Check[], docs?: LexiconDoc[]): CoverageReport;
225
+ declare function coverageReport(catalog: Check[], docs?: LexiconDoc[], exemptions?: CoverageExemption[]): CoverageReport;
163
226
  //#endregion
164
227
  //#region src/index.d.ts
165
228
  /**
166
229
  * A catalog for transports that cannot run the crypto-bound checks (the
167
230
  * browser). The base checks run anonymously; the operator checks — writes,
168
- * simplespace, blobs, the self credential flow — are real and run whenever
169
- * the harness supplies an operator session (an OAuth sign-in in the web
170
- * checker). Only the checks that genuinely need the alpha crypto libs or
171
- * foreign identities are metadata stubs, reported as skipped ("not
172
- * testable here") — listed rather than omitted, so a green run never
173
- * silently reads as fuller conformance than it proved.
231
+ * space management, blobs, credential issuance and presentation — are real
232
+ * and run whenever the harness supplies an operator session (an OAuth
233
+ * sign-in in the web checker). Only the checks that genuinely need the
234
+ * alpha crypto libs or foreign identities are metadata stubs, reported as
235
+ * skipped ("not testable here") — listed rather than omitted, so a green
236
+ * run never silently reads as fuller conformance than it proved.
174
237
  */
175
238
  declare const browserCatalog: Check[];
176
239
  //#endregion
177
- export { type Capability, type CatalogFilter, type Check, type CheckContext, type CheckDescriptor, type CheckOutcome, type CheckResult, type CheckStatus, type Citation, type CoverageReport, type CoverageRequirement, type Credential, type DpopKey, type FilteredCatalog, type HarnessIdentity, type IdentityProvider, type InboxDelivery, type LexiconDoc, type ProbeSpace, type RunOptions, type RunReport, type SyncerInbox, type Target, type Tier, type XrpcResult, baseChecks, browserCatalog, buildCatalog, coverageReport, coverageRequirements, createDpopKey, createDpopProofJwt, createProbeSpace, credentialGet, cryptoCheckDescriptors, defineCheck, deleteProbeSpace, descriptorToStub, fail, filterCatalog, lexicons, obtainCredentialViaDelegation, operatorChecks, operatorCreateRecord, operatorHeaders, pass, readCarHeader, renderReport, runChecks, xrpcGet, xrpcPost, xrpcUrl };
240
+ export { ALPHA_BUILD, COMMIT_MAC_PROFILE, type Capability, type CatalogFilter, type Check, type CheckContext, type CheckDescriptor, type CheckOutcome, type CheckResult, type CheckStatus, type Citation, type CoverageExemption, type CoverageReport, type CoverageRequirement, type Credential, type CredentialCallOptions, type CredentialKey, type CredentialResult, type CredentialSigOptions, DEFAULT_PLC_DIRECTORY, type DidDocument, type FilteredCatalog, type HarnessIdentity, type IdentityProvider, type InboxDelivery, type LexiconDoc, MAC_COVERED_HEADER, type MacProfile, PROPOSAL_COMMIT, type Policy, type ProbeSpace, RECORD_MAC_PROFILE, type RunOptions, type RunReport, SPACE_CREDENTIAL_SCHEME, type SyncerInbox, type SyncerInboxHandle, type Target, type Tier, type XrpcResult, baseChecks, browserCatalog, buildCatalog, coverageExemptions, coverageReport, coverageRequirements, createCredentialKey, createProbeSpace, createSyncerInbox, credentialCall, credentialGet, credentialSigMembers, cryptoCheckDescriptors, defineCheck, deleteProbeSpace, descriptorToStub, didDocumentUrl, encapsulate, fail, filterCatalog, formatMacRequest, isP256DidKey, knownChangesets, knownProposalAnchors, lexicons, managedspace, memberspace, obtainCredentialViaDelegation, obtainPublicCredential, operatorChecks, operatorCreateRecord, operatorHeaders, pass, personalspace, publicRead, renderReport, requestCredential, resolveDidDocument, runChecks, serviceEndpoint, spaceSigHeaders, verificationMethodDidKey, xrpcGet, xrpcPost, xrpcUrl };
178
241
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../src/registry.ts","../src/car.ts","../src/descriptors.ts","../src/runner.ts","../src/lexicons.ts","../src/coverage.ts","../src/index.ts"],"sourcesContent":[],"mappings":";;;;AA0BA;AAaA;;;;;AAMA;AAgBA;AACU,iBAhDM,WAAA,CAgDN,KAAA,EAhDyB,KAgDzB,CAAA,EAhDiC,KAgDjC;AACD,UArCQ,aAAA,CAqCR;EACN,KAAA,CAAA,EArCM,IAqCN,EAAA;EAAe;iBAnCF;;;ECJN;EAMM,IAAA,CAAA,EAAA,OAAA;;;;ACdhB;AAGO,UFmBU,eAAA,CEnBV;EACC,QAAA,EFmBG,KEnBH,EAAA;EACI;EAAQ,OAAA,EFoBV,KEpBU,CAAA;IAWP,KAAA,EFSY,KETZ;IAmFG,MAAA,EAAA,MAAA;;;iBFvEA,YAAA,SAAqB,UAAU;AGpC/C;AAwBA;;;;AAaqB,iBHeL,aAAA,CGfK,OAAA,EHgBX,KGhBW,EAAA,EAAA,MAAA,EHiBZ,aGjBY,CAAA,EHkBlB,eGlBkB;;;;;;AHhCrB;AAYA;AAaA;;UCdU,aAAA,CDiBe;EAAf,OAAA,EAAA,MAAA;EAAK,SAAA,EAAA,MAAA;AAGf;AAgBA;AACU,iBC/BM,aAAA,CD+BN,KAAA,EC/B2B,UD+B3B,CAAA,EC/BwC,aD+BxC;;;AAEP,UE/Cc,eAAA,CF+Cd;EAAe,EAAA,EAAA,MAAA;;QE5CX;SACC;EDIE,SAAA,ECHE,QDGW,EAAA;EAMP,WAAA,CAAA,EAAA,OAAa;;;;ACd7B;;;AAKY,cAWC,sBAXD,EAWyB,eAXzB,EAAA;;AAWZ;AAmFA;;;;AC3GA;AAwBA;AACU,iBDkFM,gBAAA,CClFN,CAAA,EDkF0B,eClF1B,CAAA,EDkF4C,KClF5C;;;AHQe,UGjCR,SAAA,CHiCQ;EAAf,KAAA,EAAA;IAAK,IAAA,EAAA,MAAA;IAGC,OAAA,EAAA,MAAY;EAgBZ,CAAA;EACN;EACD,UAAA,EAAA,MAAA;EACN,MAAA,EGnDM,MHmDN;EAAe,SAAA,EAAA,MAAA;;WGhDR;;EFSA,OAAA,EAAA;IAMM,IAAA,EAAA,MAAa;;;;ACd7B;;;;IAKoB,SAAA,EAAA,MAAA;IAWP,OAAA,EAAA,MAAA;IAmFG,KAAA,EAAA,MAAA;;;UCnFC,UAAA;EAxBA,OAAA,EAyBP,eArBD;EAoBQ,OAAA,EAEP,IAFiB,CAEZ,YAFY,EAAA,OAAA,GAAA,KAAA,CAAA;EACjB,YAAA,EAAA,MAAA;EACK,UAAA,EAAA,MAAA;EAAL;EAWW,cAAA,CAAA,EAAA,MAAA;EAAW;AAGhC;;;;;EAoIgB,QAAA,CAAA,EAAA,CAAA,MAAY,EAvIP,WAuIgB,EAAA,GAAA,IAAS;;iBApIxB,SAAA,UAAmB,aAAa,QAAQ;;ACb7C,iBDiJD,YAAA,CC9IH,MAAA,ED8IwB,SC9IxB,CAAA,EAAA,MAAA;;;;;;AJzBb;AAYA;AAaiB,UIHA,UAAA,CJGe;EACrB,OAAA,EAAA,MAAA;EAEc,EAAA,EAAA,MAAA;EAAf,IAAA,EIHH,MJGG,CAAA,MAAA,EAAA,OAAA,CAAA;;AAGM,cIHH,QJGe,EIHL,UJGwB,EAAA;;;AAgB/B,UKhDC,mBAAA,CLgDY;EACnB;EACD,GAAA,EAAA,MAAA;EACN,IAAA,EAAA,QAAA,GAAA,OAAA;;UK7Cc,cAAA;gBACF;WACL;IJIA,GAAA,EAAA,MAAA;IAMM,EAAA,EAAA,MAAA,EAAa;;QITtB;;EHLU,iBAAA,EGOG,KHPY,CAAA;IAGzB,OAAA,EAAA,MAAA;IACC,GAAA,EAAA,MAAA;EACI,CAAA,CAAA;;AAWZ;AAmFgB,iBGxFA,oBAAA,CHwFoB,IAAuB,CAAvB,EGvF7B,UHuFoD,EAAA,CAAA,EGtFxD,mBHsFwD,EAAA;iBGvD3C,cAAA,UACN,gBACH,eACJ;;;;AH/CH;;;;;AAgBA;AAmFA;;;cI9Ca,gBAIX,KAAA"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/registry.ts","../src/did.ts","../src/descriptors.ts","../src/alpha.ts","../src/changesets.ts","../src/proposal.ts","../src/runner.ts","../src/lexicons.ts","../src/coverage.ts","../src/index.ts"],"sourcesContent":[],"mappings":"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"}
package/dist/index.js CHANGED
@@ -1,107 +1,129 @@
1
- import { S as pass, _ as xrpcUrl, b as filterCatalog, c as operatorCreateRecord, d as createDpopProofJwt, f as baseChecks, g as xrpcPost, h as xrpcGet, i as deleteProbeSpace, l as readCarHeader, m as operatorHeaders, n as createProbeSpace, o as obtainCredentialViaDelegation, r as credentialGet, s as operatorChecks, u as createDpopKey, v as buildCatalog, x as fail, y as defineCheck } from "./operator-BErXCDow.js";
2
- import { a as runChecks, i as renderReport, n as coverageRequirements, r as lexicons, t as coverageReport } from "./coverage-DhJZu8P8.js";
1
+ import { B as SPACE_CREDENTIAL_SCHEME, C as operatorCreateRecord, D as requestCredential, E as publicRead, F as serviceEndpoint, G as isP256DidKey, H as credentialSigMembers, I as verificationMethodDidKey, K as spaceSigHeaders, L as COMMIT_MAC_PROFILE, M as DEFAULT_PLC_DIRECTORY, N as didDocumentUrl, P as resolveDidDocument, R as MAC_COVERED_HEADER, S as obtainPublicCredential, U as encapsulate, V as createCredentialKey, W as formatMacRequest, a as operatorChecks, at as xrpcGet, ct as xrpcUrl, dt as filterCatalog, ft as fail, g as deleteProbeSpace, h as credentialGet, i as createSyncerInbox, it as operatorHeaders, lt as buildCatalog, m as credentialCall, ot as xrpcPost, p as createProbeSpace, pt as pass, r as descriptorToStub, t as cryptoCheckDescriptors, u as baseChecks, ut as defineCheck, v as managedspace, w as personalspace, x as obtainCredentialViaDelegation, y as memberspace, z as RECORD_MAC_PROFILE } from "./descriptors-YEk3XoDL.js";
2
+ import { a as renderReport, i as lexicons, n as coverageReport, o as runChecks, r as coverageRequirements, s as ALPHA_BUILD, t as coverageExemptions } from "./coverage-zCMup3Nb.js";
3
3
 
4
- //#region src/descriptors.ts
5
- const L = (ref) => ({
6
- source: "lexicon",
7
- ref
8
- });
4
+ //#region src/changesets.ts
9
5
  /**
10
- * Every crypto-bound check, by metadata. Keep in the same order and with
11
- * the same fields as `cryptoChecks` (enforced by the drift test).
6
+ * The upstream changesets the suite may cite, from bluesky-social/atproto
7
+ * `permissioned-data-alpha` at the vendored commit (see
8
+ * ../lexicons/MANIFEST.json). For alpha mechanics no lexicon can express —
9
+ * the credential HTTP signature, the MAC exchange, key discovery — a
10
+ * changeset is the alpha's only normative prose. Citations are checked
11
+ * against this list, the same typo guard lexicon citations get; re-vendor
12
+ * it alongside the lexicons.
12
13
  */
13
- const cryptoCheckDescriptors = [
14
- {
15
- id: "credential.round-trip",
16
- title: "A member exchanges a delegation token for a credential and reads",
17
- tier: "must",
18
- needs: ["operator", "identities"],
19
- citations: [L("com.atproto.space.getSpaceCredential"), L("com.atproto.space.getRecord")],
20
- destructive: true
21
- },
22
- {
23
- id: "credential.cross-space-refused",
24
- title: "A credential for one space cannot read another",
25
- tier: "must",
26
- needs: ["operator", "identities"],
27
- citations: [L("com.atproto.space.getRecord")],
28
- destructive: true
29
- },
30
- {
31
- id: "delegation.replay-refused",
32
- title: "A delegation token cannot be used twice",
33
- tier: "must",
34
- needs: ["operator", "identities"],
35
- citations: [L("com.atproto.space.getSpaceCredential@error:InvalidDelegationToken")],
36
- destructive: true
37
- },
38
- {
39
- id: "delegation.wrong-audience-refused",
40
- title: "A delegation token addressed to another host is refused",
41
- tier: "must",
42
- needs: ["operator", "identities"],
43
- citations: [L("com.atproto.space.getSpaceCredential@error:InvalidDelegationToken")],
44
- destructive: true
45
- },
46
- {
47
- id: "sync.oplog-folds-to-commit",
48
- title: "Folding the oplog reproduces the commit set-hash",
49
- tier: "must",
50
- needs: ["operator"],
51
- citations: [L("com.atproto.space.listRepoOps"), L("com.atproto.space.defs")],
52
- destructive: true
53
- },
54
- {
55
- id: "host.member-list-gates",
56
- title: "member-list policy refuses a non-member and admits a member",
57
- tier: "must",
58
- needs: ["operator", "identities"],
59
- citations: [L("com.atproto.space.getSpaceCredential@error:UserNotAuthorized"), L("com.atproto.simplespace.addMember")],
60
- destructive: true
61
- },
62
- {
63
- id: "host.delete-space-tombstone",
64
- title: "After deleteSpace, getSpaceCredential answers SpaceDeleted",
65
- tier: "must",
66
- needs: ["operator", "identities"],
67
- citations: [L("com.atproto.simplespace.deleteSpace"), L("com.atproto.space.getSpaceCredential@error:SpaceDeleted")],
68
- destructive: true
69
- }
14
+ const knownChangesets = [
15
+ "alpha-kem-key-backfill",
16
+ "alpha-space-uris",
17
+ "baseline-space-policies",
18
+ "brave-spaces-exist",
19
+ "clear-spaces-sweep",
20
+ "funky-dryers-draw",
21
+ "neat-guests-pull",
22
+ "olive-crabs-fly",
23
+ "open-spaces-greet",
24
+ "patient-managers-answer",
25
+ "pds-space-uri-migration",
26
+ "plain-keys-resolve",
27
+ "quiet-spaces-mac",
28
+ "quiet-writers-leave",
29
+ "removed-writers-notify",
30
+ "shared-writer-defs",
31
+ "small-hornets-jam",
32
+ "space-hpke-secret-export",
33
+ "space-mac-http-signatures",
34
+ "space-takedown-parity",
35
+ "spaces-sdk-shape",
36
+ "spaces-syntax",
37
+ "star-spaces-shine",
38
+ "sturdy-spaces-depart",
39
+ "tidy-spaces-settle",
40
+ "webhook-syncers-register"
70
41
  ];
42
+
43
+ //#endregion
44
+ //#region src/proposal.ts
71
45
  /**
72
- * Turn a descriptor into a listable Check. Its run() is never invoked —
73
- * beyond the descriptor's own needs, the stub declares `alpha-libs` (the
74
- * ability to execute the alpha crypto code), which no browser harness
75
- * provides, so the runner always filters it into `skipped` — but it
76
- * throws if reached, so a mistaken run surfaces loudly rather than
77
- * passing.
46
+ * The section anchors of proposal 0016 (Atproto Spaces), as combined in
47
+ * bluesky-social/proposals#143 at b54ec685 — the spec this alpha
48
+ * implements. A `proposal` citation's ref is `0016#<anchor>`, checked
49
+ * against this list (the typo guard lexicon and changeset citations get).
50
+ * Regenerate it from the proposal's headings when the alpha moves.
78
51
  */
79
- function descriptorToStub(d) {
80
- return {
81
- id: d.id,
82
- title: d.title,
83
- tier: d.tier,
84
- needs: [...d.needs, "alpha-libs"],
85
- citations: d.citations,
86
- ...d.destructive ? { destructive: true } : {},
87
- ...d.slow ? { slow: true } : {},
88
- run: async () => {
89
- throw new Error(`${d.id} is a metadata stub and cannot run in this transport`);
90
- }
91
- };
92
- }
52
+ const PROPOSAL_COMMIT = "b54ec6853bab77edd4fd373804a480633094b324";
53
+ const knownProposalAnchors = [
54
+ "introduction",
55
+ "relationship-to-public-broadcast",
56
+ "terminology",
57
+ "spaces",
58
+ "addressing",
59
+ "space-authority",
60
+ "space-type",
61
+ "space-type-declarations",
62
+ "space-key-skey",
63
+ "access-control",
64
+ "credential-key-binding",
65
+ "delegation-token",
66
+ "client-attestation",
67
+ "space-credential",
68
+ "authorizing-space-sync",
69
+ "presenting-a-space-credential",
70
+ "credential-flow",
71
+ "credential-expiration-and-revocation",
72
+ "space-repos",
73
+ "repo-lifecycle",
74
+ "commit-digest",
75
+ "commit-authenticity",
76
+ "kem-key",
77
+ "shared-secret",
78
+ "requesting-a-mac",
79
+ "commit-mac",
80
+ "record-mac",
81
+ "repo-serialization",
82
+ "archive-limits",
83
+ "sync",
84
+ "incremental-sync",
85
+ "full-state-recovery",
86
+ "blob-sync",
87
+ "write-notifications",
88
+ "registering-for-notifications",
89
+ "the-sync-boundary-writer-set",
90
+ "space-deletion",
91
+ "moderation",
92
+ "label-records",
93
+ "takedowns",
94
+ "oauth-scopes",
95
+ "read-access",
96
+ "matching",
97
+ "examples",
98
+ "consent",
99
+ "permission-sets",
100
+ "xrpc-api",
101
+ "space-policy",
102
+ "baseline-policies",
103
+ "publishing-to-readers",
104
+ "personalspace",
105
+ "memberspace",
106
+ "managedspace",
107
+ "account-migration",
108
+ "space-meta-archive",
109
+ "considerations",
110
+ "access-control-in-applications",
111
+ "scaling",
112
+ "account-lifecycle",
113
+ "appendix-shared-secret-without-hpke"
114
+ ];
93
115
 
94
116
  //#endregion
95
117
  //#region src/index.ts
96
118
  /**
97
119
  * A catalog for transports that cannot run the crypto-bound checks (the
98
120
  * browser). The base checks run anonymously; the operator checks — writes,
99
- * simplespace, blobs, the self credential flow — are real and run whenever
100
- * the harness supplies an operator session (an OAuth sign-in in the web
101
- * checker). Only the checks that genuinely need the alpha crypto libs or
102
- * foreign identities are metadata stubs, reported as skipped ("not
103
- * testable here") — listed rather than omitted, so a green run never
104
- * silently reads as fuller conformance than it proved.
121
+ * space management, blobs, credential issuance and presentation — are real
122
+ * and run whenever the harness supplies an operator session (an OAuth
123
+ * sign-in in the web checker). Only the checks that genuinely need the
124
+ * alpha crypto libs or foreign identities are metadata stubs, reported as
125
+ * skipped ("not testable here") — listed rather than omitted, so a green
126
+ * run never silently reads as fuller conformance than it proved.
105
127
  */
106
128
  const browserCatalog = buildCatalog([
107
129
  ...baseChecks,
@@ -110,5 +132,5 @@ const browserCatalog = buildCatalog([
110
132
  ]);
111
133
 
112
134
  //#endregion
113
- export { baseChecks, browserCatalog, buildCatalog, coverageReport, coverageRequirements, createDpopKey, createDpopProofJwt, createProbeSpace, credentialGet, cryptoCheckDescriptors, defineCheck, deleteProbeSpace, descriptorToStub, fail, filterCatalog, lexicons, obtainCredentialViaDelegation, operatorChecks, operatorCreateRecord, operatorHeaders, pass, readCarHeader, renderReport, runChecks, xrpcGet, xrpcPost, xrpcUrl };
135
+ export { ALPHA_BUILD, COMMIT_MAC_PROFILE, DEFAULT_PLC_DIRECTORY, MAC_COVERED_HEADER, PROPOSAL_COMMIT, RECORD_MAC_PROFILE, SPACE_CREDENTIAL_SCHEME, baseChecks, browserCatalog, buildCatalog, coverageExemptions, coverageReport, coverageRequirements, createCredentialKey, createProbeSpace, createSyncerInbox, credentialCall, credentialGet, credentialSigMembers, cryptoCheckDescriptors, defineCheck, deleteProbeSpace, descriptorToStub, didDocumentUrl, encapsulate, fail, filterCatalog, formatMacRequest, isP256DidKey, knownChangesets, knownProposalAnchors, lexicons, managedspace, memberspace, obtainCredentialViaDelegation, obtainPublicCredential, operatorChecks, operatorCreateRecord, operatorHeaders, pass, personalspace, publicRead, renderReport, requestCredential, resolveDidDocument, runChecks, serviceEndpoint, spaceSigHeaders, verificationMethodDidKey, xrpcGet, xrpcPost, xrpcUrl };
114
136
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["cryptoCheckDescriptors: CheckDescriptor[]","build","base","operator","descriptors","stub"],"sources":["../src/descriptors.ts","../src/index.ts"],"sourcesContent":["/**\n * Dependency-free descriptors of the crypto-bound checks.\n *\n * The browser adapter can't import the real crypto catalog (it pulls the\n * alpha libs and node streams), but it must still *list* those checks so a\n * viewer sees them reported as \"not testable here\" rather than silently\n * omitted — an omitted check reads as conformant, the exact failure this\n * suite exists to prevent.\n *\n * These are metadata only: id, tier, what the check needs. A drift test in\n * the full test suite asserts they match the real `cryptoChecks` exactly,\n * so adding a crypto check without a descriptor fails CI.\n */\n\nimport type { Capability, Check, Citation, Tier } from \"./model.js\";\nimport { pass } from \"./model.js\";\n\nexport interface CheckDescriptor {\n\tid: string;\n\ttitle: string;\n\ttier: Tier;\n\tneeds: Capability[];\n\tcitations: Citation[];\n\tdestructive?: boolean;\n\tslow?: boolean;\n}\n\nconst L = (ref: string): Citation => ({ source: \"lexicon\", ref });\n\n/**\n * Every crypto-bound check, by metadata. Keep in the same order and with\n * the same fields as `cryptoChecks` (enforced by the drift test).\n */\nexport const cryptoCheckDescriptors: CheckDescriptor[] = [\n\t{\n\t\tid: \"credential.round-trip\",\n\t\ttitle: \"A member exchanges a delegation token for a credential and reads\",\n\t\ttier: \"must\",\n\t\tneeds: [\"operator\", \"identities\"],\n\t\tcitations: [\n\t\t\tL(\"com.atproto.space.getSpaceCredential\"),\n\t\t\tL(\"com.atproto.space.getRecord\"),\n\t\t],\n\t\tdestructive: true,\n\t},\n\t{\n\t\tid: \"credential.cross-space-refused\",\n\t\ttitle: \"A credential for one space cannot read another\",\n\t\ttier: \"must\",\n\t\tneeds: [\"operator\", \"identities\"],\n\t\tcitations: [L(\"com.atproto.space.getRecord\")],\n\t\tdestructive: true,\n\t},\n\t{\n\t\tid: \"delegation.replay-refused\",\n\t\ttitle: \"A delegation token cannot be used twice\",\n\t\ttier: \"must\",\n\t\tneeds: [\"operator\", \"identities\"],\n\t\tcitations: [\n\t\t\tL(\"com.atproto.space.getSpaceCredential@error:InvalidDelegationToken\"),\n\t\t],\n\t\tdestructive: true,\n\t},\n\t{\n\t\tid: \"delegation.wrong-audience-refused\",\n\t\ttitle: \"A delegation token addressed to another host is refused\",\n\t\ttier: \"must\",\n\t\tneeds: [\"operator\", \"identities\"],\n\t\tcitations: [\n\t\t\tL(\"com.atproto.space.getSpaceCredential@error:InvalidDelegationToken\"),\n\t\t],\n\t\tdestructive: true,\n\t},\n\t{\n\t\tid: \"sync.oplog-folds-to-commit\",\n\t\ttitle: \"Folding the oplog reproduces the commit set-hash\",\n\t\ttier: \"must\",\n\t\tneeds: [\"operator\"],\n\t\tcitations: [\n\t\t\tL(\"com.atproto.space.listRepoOps\"),\n\t\t\tL(\"com.atproto.space.defs\"),\n\t\t],\n\t\tdestructive: true,\n\t},\n\t{\n\t\tid: \"host.member-list-gates\",\n\t\ttitle: \"member-list policy refuses a non-member and admits a member\",\n\t\ttier: \"must\",\n\t\tneeds: [\"operator\", \"identities\"],\n\t\tcitations: [\n\t\t\tL(\"com.atproto.space.getSpaceCredential@error:UserNotAuthorized\"),\n\t\t\tL(\"com.atproto.simplespace.addMember\"),\n\t\t],\n\t\tdestructive: true,\n\t},\n\t{\n\t\tid: \"host.delete-space-tombstone\",\n\t\ttitle: \"After deleteSpace, getSpaceCredential answers SpaceDeleted\",\n\t\ttier: \"must\",\n\t\tneeds: [\"operator\", \"identities\"],\n\t\tcitations: [\n\t\t\tL(\"com.atproto.simplespace.deleteSpace\"),\n\t\t\tL(\"com.atproto.space.getSpaceCredential@error:SpaceDeleted\"),\n\t\t],\n\t\tdestructive: true,\n\t},\n];\n\n/**\n * Turn a descriptor into a listable Check. Its run() is never invoked —\n * beyond the descriptor's own needs, the stub declares `alpha-libs` (the\n * ability to execute the alpha crypto code), which no browser harness\n * provides, so the runner always filters it into `skipped` — but it\n * throws if reached, so a mistaken run surfaces loudly rather than\n * passing.\n */\nexport function descriptorToStub(d: CheckDescriptor): Check {\n\treturn {\n\t\tid: d.id,\n\t\ttitle: d.title,\n\t\ttier: d.tier,\n\t\tneeds: [...d.needs, \"alpha-libs\"],\n\t\tcitations: d.citations,\n\t\t...(d.destructive ? { destructive: true } : {}),\n\t\t...(d.slow ? { slow: true } : {}),\n\t\trun: async () => {\n\t\t\tthrow new Error(\n\t\t\t\t`${d.id} is a metadata stub and cannot run in this transport`,\n\t\t\t);\n\t\t\t// unreachable; satisfies the return type\n\t\t\treturn pass(\"\");\n\t\t},\n\t};\n}\n","/**\n * @getcirrus/space-conformance – black-box conformance suite for atproto\n * spaces implementations (alpha).\n *\n * One check model, multiple runners: the same tiered, citation-carrying\n * checks run in-process against a local implementation, from a CLI against\n * a live host, or inside a web checker. `must` checks cite specified\n * behavior; `should` checks are calibrated against the reference\n * implementation; `info` checks never fail anyone.\n */\n\nexport { pass, fail } from \"./model.js\";\nexport type {\n\tCapability,\n\tCheck,\n\tCheckContext,\n\tCheckOutcome,\n\tCheckResult,\n\tCheckStatus,\n\tCitation,\n\tDpopKey,\n\tHarnessIdentity,\n\tIdentityProvider,\n\tInboxDelivery,\n\tSyncerInbox,\n\tTarget,\n\tTier,\n} from \"./model.js\";\n\nexport { buildCatalog, defineCheck, filterCatalog } from \"./registry.js\";\nexport type { CatalogFilter, FilteredCatalog } from \"./registry.js\";\n\nexport { xrpcGet, xrpcPost, xrpcUrl, operatorHeaders } from \"./http.js\";\nexport type { XrpcResult } from \"./http.js\";\n\nexport { baseChecks } from \"./checks/base.js\";\nexport {\n\toperatorChecks,\n\tcreateProbeSpace,\n\tdeleteProbeSpace,\n\toperatorCreateRecord,\n\tobtainCredentialViaDelegation,\n\tcredentialGet,\n} from \"./checks/operator.js\";\nexport type { Credential, ProbeSpace } from \"./checks/operator.js\";\n\nexport { createDpopKey, createDpopProofJwt } from \"./dpop.js\";\nexport { readCarHeader } from \"./car.js\";\n\nexport { cryptoCheckDescriptors, descriptorToStub } from \"./descriptors.js\";\nexport type { CheckDescriptor } from \"./descriptors.js\";\n\nimport { baseChecks as base } from \"./checks/base.js\";\nimport { operatorChecks as operator } from \"./checks/operator.js\";\nimport { buildCatalog as build } from \"./registry.js\";\nimport {\n\tcryptoCheckDescriptors as descriptors,\n\tdescriptorToStub as stub,\n} from \"./descriptors.js\";\n\n/**\n * A catalog for transports that cannot run the crypto-bound checks (the\n * browser). The base checks run anonymously; the operator checks — writes,\n * simplespace, blobs, the self credential flow — are real and run whenever\n * the harness supplies an operator session (an OAuth sign-in in the web\n * checker). Only the checks that genuinely need the alpha crypto libs or\n * foreign identities are metadata stubs, reported as skipped (\"not\n * testable here\") — listed rather than omitted, so a green run never\n * silently reads as fuller conformance than it proved.\n */\nexport const browserCatalog = build([\n\t...base,\n\t...operator,\n\t...descriptors.map(stub),\n]);\n\nexport { renderReport, runChecks } from \"./runner.js\";\nexport type { RunOptions, RunReport } from \"./runner.js\";\n\nexport { coverageReport, coverageRequirements } from \"./coverage.js\";\nexport type { CoverageReport, CoverageRequirement } from \"./coverage.js\";\n\nexport { lexicons } from \"./lexicons.js\";\nexport type { LexiconDoc } from \"./lexicons.js\";\n"],"mappings":";;;;AA2BA,MAAM,KAAK,SAA2B;CAAE,QAAQ;CAAW;CAAK;;;;;AAMhE,MAAaA,yBAA4C;CACxD;EACC,IAAI;EACJ,OAAO;EACP,MAAM;EACN,OAAO,CAAC,YAAY,aAAa;EACjC,WAAW,CACV,EAAE,uCAAuC,EACzC,EAAE,8BAA8B,CAChC;EACD,aAAa;EACb;CACD;EACC,IAAI;EACJ,OAAO;EACP,MAAM;EACN,OAAO,CAAC,YAAY,aAAa;EACjC,WAAW,CAAC,EAAE,8BAA8B,CAAC;EAC7C,aAAa;EACb;CACD;EACC,IAAI;EACJ,OAAO;EACP,MAAM;EACN,OAAO,CAAC,YAAY,aAAa;EACjC,WAAW,CACV,EAAE,oEAAoE,CACtE;EACD,aAAa;EACb;CACD;EACC,IAAI;EACJ,OAAO;EACP,MAAM;EACN,OAAO,CAAC,YAAY,aAAa;EACjC,WAAW,CACV,EAAE,oEAAoE,CACtE;EACD,aAAa;EACb;CACD;EACC,IAAI;EACJ,OAAO;EACP,MAAM;EACN,OAAO,CAAC,WAAW;EACnB,WAAW,CACV,EAAE,gCAAgC,EAClC,EAAE,yBAAyB,CAC3B;EACD,aAAa;EACb;CACD;EACC,IAAI;EACJ,OAAO;EACP,MAAM;EACN,OAAO,CAAC,YAAY,aAAa;EACjC,WAAW,CACV,EAAE,+DAA+D,EACjE,EAAE,oCAAoC,CACtC;EACD,aAAa;EACb;CACD;EACC,IAAI;EACJ,OAAO;EACP,MAAM;EACN,OAAO,CAAC,YAAY,aAAa;EACjC,WAAW,CACV,EAAE,sCAAsC,EACxC,EAAE,0DAA0D,CAC5D;EACD,aAAa;EACb;CACD;;;;;;;;;AAUD,SAAgB,iBAAiB,GAA2B;AAC3D,QAAO;EACN,IAAI,EAAE;EACN,OAAO,EAAE;EACT,MAAM,EAAE;EACR,OAAO,CAAC,GAAG,EAAE,OAAO,aAAa;EACjC,WAAW,EAAE;EACb,GAAI,EAAE,cAAc,EAAE,aAAa,MAAM,GAAG,EAAE;EAC9C,GAAI,EAAE,OAAO,EAAE,MAAM,MAAM,GAAG,EAAE;EAChC,KAAK,YAAY;AAChB,SAAM,IAAI,MACT,GAAG,EAAE,GAAG,sDACR;;EAIF;;;;;;;;;;;;;;;AC9DF,MAAa,iBAAiBC,aAAM;CACnC,GAAGC;CACH,GAAGC;CACH,GAAGC,uBAAY,IAAIC,iBAAK;CACxB,CAAC"}
1
+ {"version":3,"file":"index.js","names":["knownChangesets: readonly string[]","knownProposalAnchors: readonly string[]","build","base","operator","descriptors","stub"],"sources":["../src/changesets.ts","../src/proposal.ts","../src/index.ts"],"sourcesContent":["/**\n * The upstream changesets the suite may cite, from bluesky-social/atproto\n * `permissioned-data-alpha` at the vendored commit (see\n * ../lexicons/MANIFEST.json). For alpha mechanics no lexicon can express —\n * the credential HTTP signature, the MAC exchange, key discovery — a\n * changeset is the alpha's only normative prose. Citations are checked\n * against this list, the same typo guard lexicon citations get; re-vendor\n * it alongside the lexicons.\n */\nexport const knownChangesets: readonly string[] = [\n\t\"alpha-kem-key-backfill\",\n\t\"alpha-space-uris\",\n\t\"baseline-space-policies\",\n\t\"brave-spaces-exist\",\n\t\"clear-spaces-sweep\",\n\t\"funky-dryers-draw\",\n\t\"neat-guests-pull\",\n\t\"olive-crabs-fly\",\n\t\"open-spaces-greet\",\n\t\"patient-managers-answer\",\n\t\"pds-space-uri-migration\",\n\t\"plain-keys-resolve\",\n\t\"quiet-spaces-mac\",\n\t\"quiet-writers-leave\",\n\t\"removed-writers-notify\",\n\t\"shared-writer-defs\",\n\t\"small-hornets-jam\",\n\t\"space-hpke-secret-export\",\n\t\"space-mac-http-signatures\",\n\t\"space-takedown-parity\",\n\t\"spaces-sdk-shape\",\n\t\"spaces-syntax\",\n\t\"star-spaces-shine\",\n\t\"sturdy-spaces-depart\",\n\t\"tidy-spaces-settle\",\n\t\"webhook-syncers-register\",\n];\n","/**\n * The section anchors of proposal 0016 (Atproto Spaces), as combined in\n * bluesky-social/proposals#143 at b54ec685 — the spec this alpha\n * implements. A `proposal` citation's ref is `0016#<anchor>`, checked\n * against this list (the typo guard lexicon and changeset citations get).\n * Regenerate it from the proposal's headings when the alpha moves.\n */\nexport const PROPOSAL_COMMIT = \"b54ec6853bab77edd4fd373804a480633094b324\";\n\nexport const knownProposalAnchors: readonly string[] = [\n\t\"introduction\",\n\t\"relationship-to-public-broadcast\",\n\t\"terminology\",\n\t\"spaces\",\n\t\"addressing\",\n\t\"space-authority\",\n\t\"space-type\",\n\t\"space-type-declarations\",\n\t\"space-key-skey\",\n\t\"access-control\",\n\t\"credential-key-binding\",\n\t\"delegation-token\",\n\t\"client-attestation\",\n\t\"space-credential\",\n\t\"authorizing-space-sync\",\n\t\"presenting-a-space-credential\",\n\t\"credential-flow\",\n\t\"credential-expiration-and-revocation\",\n\t\"space-repos\",\n\t\"repo-lifecycle\",\n\t\"commit-digest\",\n\t\"commit-authenticity\",\n\t\"kem-key\",\n\t\"shared-secret\",\n\t\"requesting-a-mac\",\n\t\"commit-mac\",\n\t\"record-mac\",\n\t\"repo-serialization\",\n\t\"archive-limits\",\n\t\"sync\",\n\t\"incremental-sync\",\n\t\"full-state-recovery\",\n\t\"blob-sync\",\n\t\"write-notifications\",\n\t\"registering-for-notifications\",\n\t\"the-sync-boundary-writer-set\",\n\t\"space-deletion\",\n\t\"moderation\",\n\t\"label-records\",\n\t\"takedowns\",\n\t\"oauth-scopes\",\n\t\"read-access\",\n\t\"matching\",\n\t\"examples\",\n\t\"consent\",\n\t\"permission-sets\",\n\t\"xrpc-api\",\n\t\"space-policy\",\n\t\"baseline-policies\",\n\t\"publishing-to-readers\",\n\t\"personalspace\",\n\t\"memberspace\",\n\t\"managedspace\",\n\t\"account-migration\",\n\t\"space-meta-archive\",\n\t\"considerations\",\n\t\"access-control-in-applications\",\n\t\"scaling\",\n\t\"account-lifecycle\",\n\t\"appendix-shared-secret-without-hpke\",\n];\n","/**\n * @getcirrus/space-conformance – black-box conformance suite for atproto\n * spaces implementations (alpha).\n *\n * One check model, multiple runners: the same tiered, citation-carrying\n * checks run in-process against a local implementation, from a CLI against\n * a live host, or inside a web checker. `must` checks cite specified\n * behaviour; `should` checks are calibrated against the reference\n * implementation; `info` checks never fail anyone.\n */\n\nexport { pass, fail } from \"./model.js\";\nexport type {\n\tCapability,\n\tCheck,\n\tCheckContext,\n\tCheckOutcome,\n\tCheckResult,\n\tCheckStatus,\n\tCitation,\n\tHarnessIdentity,\n\tIdentityProvider,\n\tInboxDelivery,\n\tSyncerInbox,\n\tTarget,\n\tTier,\n} from \"./model.js\";\n\nexport { buildCatalog, defineCheck, filterCatalog } from \"./registry.js\";\nexport type { CatalogFilter, FilteredCatalog } from \"./registry.js\";\n\nexport { xrpcGet, xrpcPost, xrpcUrl, operatorHeaders } from \"./http.js\";\nexport type { XrpcResult } from \"./http.js\";\n\nexport { baseChecks } from \"./checks/base.js\";\nexport {\n\toperatorChecks,\n\tcreateProbeSpace,\n\tdeleteProbeSpace,\n\toperatorCreateRecord,\n\tobtainCredentialViaDelegation,\n\tobtainPublicCredential,\n\trequestCredential,\n\tcredentialCall,\n\tcredentialGet,\n\tmemberspace,\n\tpersonalspace,\n\tmanagedspace,\n\tpublicRead,\n} from \"./checks/operator.js\";\nexport type {\n\tCredential,\n\tCredentialCallOptions,\n\tCredentialResult,\n\tPolicy,\n\tProbeSpace,\n} from \"./checks/operator.js\";\n\nexport {\n\tcreateCredentialKey,\n\tcredentialSigMembers,\n\tencapsulate,\n\tformatMacRequest,\n\tisP256DidKey,\n\tspaceSigHeaders,\n\tCOMMIT_MAC_PROFILE,\n\tRECORD_MAC_PROFILE,\n\tMAC_COVERED_HEADER,\n\tSPACE_CREDENTIAL_SCHEME,\n} from \"./space-auth.js\";\nexport type {\n\tCredentialKey,\n\tCredentialSigOptions,\n\tMacProfile,\n} from \"./space-auth.js\";\nexport { createSyncerInbox } from \"./inbox.js\";\nexport type { SyncerInboxHandle } from \"./inbox.js\";\nexport {\n\tDEFAULT_PLC_DIRECTORY,\n\tdidDocumentUrl,\n\tresolveDidDocument,\n\tserviceEndpoint,\n\tverificationMethodDidKey,\n} from \"./did.js\";\nexport type { DidDocument } from \"./did.js\";\n\nexport { cryptoCheckDescriptors, descriptorToStub } from \"./descriptors.js\";\nexport type { CheckDescriptor } from \"./descriptors.js\";\n\nexport { ALPHA_BUILD } from \"./alpha.js\";\nexport { knownChangesets } from \"./changesets.js\";\nexport { knownProposalAnchors, PROPOSAL_COMMIT } from \"./proposal.js\";\n\nimport { baseChecks as base } from \"./checks/base.js\";\nimport { operatorChecks as operator } from \"./checks/operator.js\";\nimport { buildCatalog as build } from \"./registry.js\";\nimport {\n\tcryptoCheckDescriptors as descriptors,\n\tdescriptorToStub as stub,\n} from \"./descriptors.js\";\n\n/**\n * A catalog for transports that cannot run the crypto-bound checks (the\n * browser). The base checks run anonymously; the operator checks — writes,\n * space management, blobs, credential issuance and presentation — are real\n * and run whenever the harness supplies an operator session (an OAuth\n * sign-in in the web checker). Only the checks that genuinely need the\n * alpha crypto libs or foreign identities are metadata stubs, reported as\n * skipped (\"not testable here\") — listed rather than omitted, so a green\n * run never silently reads as fuller conformance than it proved.\n */\nexport const browserCatalog = build([\n\t...base,\n\t...operator,\n\t...descriptors.map(stub),\n]);\n\nexport { renderReport, runChecks } from \"./runner.js\";\nexport type { RunOptions, RunReport } from \"./runner.js\";\n\nexport {\n\tcoverageExemptions,\n\tcoverageReport,\n\tcoverageRequirements,\n} from \"./coverage.js\";\nexport type {\n\tCoverageExemption,\n\tCoverageReport,\n\tCoverageRequirement,\n} from \"./coverage.js\";\n\nexport { lexicons } from \"./lexicons.js\";\nexport type { LexiconDoc } from \"./lexicons.js\";\n"],"mappings":";;;;;;;;;;;;;AASA,MAAaA,kBAAqC;CACjD;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;;;;;;;;;;;AC7BD,MAAa,kBAAkB;AAE/B,MAAaC,uBAA0C;CACtD;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;;;;;;;;;;;;;;ACyCD,MAAa,iBAAiBC,aAAM;CACnC,GAAGC;CACH,GAAGC;CACH,GAAGC,uBAAY,IAAIC,iBAAK;CACxB,CAAC"}