@nakafa/aksara-contracts 1.0.0 → 1.0.1

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.
package/README.md CHANGED
@@ -2,7 +2,8 @@
2
2
 
3
3
  This package defines exact runtime contracts for the Aksara compiler and
4
4
  publisher. Nakafa runtime consumes the exact published contract: a proven npm
5
- package, its immutable release archive, and compatible renderer support.
5
+ package, its immutable release archive, and the renderer manifest that its
6
+ releases sign.
6
7
 
7
8
  This package contains schemas, branded identifiers, canonical wire encodings,
8
9
  and Web Crypto signature verification. It contains no corpus, renderer
@@ -11,9 +12,8 @@ runtime.
11
12
 
12
13
  Consumers install the exact `@nakafa/aksara-contracts` version from npm and
13
14
  commit its pnpm lockfile integrity. npm provenance and the matching immutable
14
- GitHub Release bind those package bytes to the reviewed Aksara source. Content
15
- requiring a newer contract may be activated only after a compatible Nakafa
16
- renderer is live.
15
+ GitHub Release bind those package bytes to the reviewed Aksara source. A contract
16
+ change ships with the Nakafa renderer that consumes it, in one step.
17
17
 
18
18
  Node-only writer and incremental digest exports remain isolated behind package
19
19
  conditions. Default-runtime exports used by Convex are audited to reject
@@ -68,9 +68,9 @@ Current consumers use unversioned semantic Interfaces:
68
68
  with typed `figure` props, twelve `interaction` kinds that hold no answer
69
69
  key, `scoring` as data, the `key` and the `explanation` of an item version as
70
70
  records of their own, `item` and `stimulus` versions named by a content hash,
71
- and the exam `profile`, the frozen `paper`, and the `tools` registry. It sits
72
- beside the `question/` and `tryout/` contracts until the release that
73
- switches their readers deletes them.
71
+ and the exam `profile`, the frozen `paper`, and the `tools` registry. It is
72
+ the successor to the `question/` and `tryout/` contracts, which the change that
73
+ switches their readers deletes.
74
74
  [ADR 0005](https://github.com/nakafaai/aksara/blob/main/docs/adr/assessment.md)
75
75
  records the decisions.
76
76
 
@@ -109,9 +109,9 @@ it still publishes the selected domain and contains every required component
109
109
  name. Every current manifest contains the complete canonical domain set. The same
110
110
  contract validates stored and deployed manifests. A renderer-changing release
111
111
  remains bound to the exact deployed manifest. A scoped content-only release may
112
- retain the active frozen manifest only when activation proves the live renderer still publishes every frozen
113
- domain and contains every frozen component name. The renderer is not a
114
- third signed value. Current production trusts authenticated
112
+ retain the active frozen manifest only when activation proves the live renderer
113
+ still publishes every frozen domain and contains every frozen component name. The
114
+ renderer is not a third signed value. Current production trusts authenticated
115
115
  Convex state for route/head membership, delivery class, and the active pointer;
116
116
  a release result digest is not a per-row inclusion proof. This boundary is
117
117
  recorded explicitly in
@@ -8,7 +8,10 @@ export declare const TrustedKeySchema: Schema.Struct<{
8
8
  export type TrustedKey = typeof TrustedKeySchema.Type;
9
9
  /** Only this reviewed identity may sign newly published content. */
10
10
  export declare const ACTIVE_SIGNING_KEY_ID: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSigningKeyId">;
11
- /** Production keys retained while signed content may still reference them. */
11
+ /**
12
+ * The one production key trusted to verify content. A retired key leaves this
13
+ * list in the change that rotates it.
14
+ */
12
15
  export declare const TRUSTED_CONTENT_KEYS: readonly Readonly<{
13
16
  readonly keyId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSigningKeyId">;
14
17
  readonly publicKeyPem: string;
@@ -12,7 +12,10 @@ const ACTIVE_CONTENT_KEY = Object.freeze(TrustedKeySchema.make({
12
12
  }));
13
13
  /** Only this reviewed identity may sign newly published content. */
14
14
  export const ACTIVE_SIGNING_KEY_ID = ACTIVE_CONTENT_KEY.keyId;
15
- /** Production keys retained while signed content may still reference them. */
15
+ /**
16
+ * The one production key trusted to verify content. A retired key leaves this
17
+ * list in the change that rotates it.
18
+ */
16
19
  export const TRUSTED_CONTENT_KEYS = Object.freeze([ACTIVE_CONTENT_KEY]);
17
20
  /** Builds an immutable exact-ID resolver from code-owned retained entries. */
18
21
  export function makeTrustedKeyResolver(entries) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nakafa/aksara-contracts",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Schemas and verification contracts for Nakafa content releases.",
5
5
  "homepage": "https://github.com/nakafaai/aksara#readme",
6
6
  "license": "SEE LICENSE IN LICENSE",