@nac3/runtime 2.5.0 → 2.5.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/CHANGELOG.md CHANGED
@@ -1,5 +1,39 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.5.1 -- 2026-10-26
4
+
5
+ A patch release with no runtime behaviour change. It exists because two
6
+ PUBLISHED surfaces contradicted themselves, and neither could be fixed
7
+ without a version: the contract API publishes `spec_sha384`, the hash of
8
+ SPEC.md's bytes, so editing that document moves the contract of a version
9
+ already in the chain.
10
+
11
+ ### Fixed
12
+
13
+ - **The `**Status:**` line of SPEC.md stopped restating the version**
14
+ (audit N-45, second half). The published 2.5.0 declared its version
15
+ twice in its first four lines and the two disagreed: line 3 said
16
+ `2.5.0 (stable)` and line 4 said `v2.5.0-alpha.5 ... Promoted to npm
17
+ dist-tag latest`. Line 4 was TRUE until 18:40 on 2026-10-26 -- the act of
18
+ promoting `latest` to the stable release is what falsified it, in both
19
+ halves. It now points at section 9.1 and names no version, and the
20
+ version coherence gate has a slot that refuses a Status line naming one,
21
+ with the line the 2.5.0 shipped with as its first red case.
22
+
23
+ ### Changed
24
+
25
+ - **Section 4.3 says what the ten-locale requirement is a requirement ON,
26
+ and section 4.3.2 declares the normative language** (decision D-03,
27
+ option C). The ten locales are a requirement on the adopter manifest's
28
+ `label_i18n`, not on the language of this document. The English text is
29
+ normative; the nine published translations are non-normative, each
30
+ partial and frozen at the revision its own banner declares; where they
31
+ disagree the English text governs, and a conformance claim is a claim
32
+ against the English text. Measured rather than estimated: all nine
33
+ carry the same 34 of the 83 sections SPEC.md has today -- they translate
34
+ the May document in full and the English text has grown 49 sections
35
+ since. No runtime surface changes.
36
+
3
37
  ## 2.5.0 -- 2026-10-26
4
38
 
5
39
  Stabilises the 2.5 line. First stable release of the 2.5 series: `latest`
package/SPEC.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # NAC3 -- Native Agent Contract
2
2
 
3
- **Version:** 2.5.0 (stable -- the complete v2.5 surface: narrate, context+tree, expect+diff)
4
- **Status:** v2.5.0-alpha.5 -- all 8 SHIPPED RFCs (V24-01/02/04/05 + V25-01/02/03/04) have runtime + Layer 2 visual + Layer 3 Pilot LIVE evidence. Promoted to npm dist-tag `latest`.
3
+ **Version:** 2.5.1 (stable -- the complete v2.5 surface: narrate, context+tree, expect+diff)
4
+ **Status:** Stable release. The npm dist-tag `latest` points here; section 9.1 states what that guarantees and what a prerelease does not. This document states its version in exactly one place, the line above. The shipped RFCs and their Layer 2 + Layer 3 evidence are listed in `README.md` and `runtime/CHANGELOG.md`.
5
5
  **License:** Apache-2.0
6
6
  **Editor:** Yujin (yujin.app)
7
7
 
@@ -178,6 +178,28 @@ es, en, pt, fr, ja, zh, hi, ar, de, it
178
178
  partial coverage during brownfield migration; production manifests
179
179
  should ship 10 locales.
180
180
 
181
+ #### 4.3.1 What the ten locales are a requirement ON
182
+
183
+ The requirement above is a requirement on the **adopter's manifest** --
184
+ the `label_i18n` map an agent reads to name an element in the user's
185
+ language. It is NOT a requirement on the language of this document, and
186
+ nothing in NAC3 obliges an implementation to publish its own
187
+ documentation in ten languages.
188
+
189
+ #### 4.3.2 Normative language of this specification
190
+
191
+ The normative text of NAC3 is the **English** one: `SPEC.md` at the root
192
+ of the specification repository, rendered at
193
+ `https://yujin.app/nac-spec/SPEC.html`.
194
+
195
+ The specification is also published as machine translations under
196
+ `i18n/<locale>/SPEC.md`. Those translations are **non-normative**. Each
197
+ one is partial and each is frozen at the source revision its own banner
198
+ declares; the banner is required, and a published translation that
199
+ carries no banner is a defect of the publication, not a translation.
200
+ Where a translation and the English text disagree, the English text
201
+ governs, and a conformance claim is a claim against the English text.
202
+
181
203
  ---
182
204
 
183
205
  ## 5. Public API
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "api_schema": 1,
3
- "chain_head": "sha384-tBEQVA0WiCwvJAQDkH4zAoE7BuCTweehwiYphpDJr//fm7ANhKFwzBQwK1F8/Jv4",
4
- "entry_count": 2,
3
+ "chain_head": "sha384-IEi9Sxq1e04WqL4ho3+BiKq6qXWJhYEkCKHfspmO9EUnPV9TiOD1dOTurNGc2pn9",
4
+ "entry_count": 3,
5
5
  "generated_by": "scripts/build-contract-api.mjs",
6
6
  "note": "The third of three independent witnesses of the contract chain head (audit N-24). This copy is immutable once published: npm does not allow a version to be republished, so a host that rewrites the chain cannot reach back and change it. If this head disagrees with the one the host serves for this version, do not trust the host. Present from 2.5.0 onward; earlier releases were published before this API existed.",
7
7
  "protocol": "NAC3",
8
8
  "published_at": "2026-10-26",
9
- "runtime_version": "2.5.0",
9
+ "runtime_version": "2.5.1",
10
10
  "surface": "contract-head-witness",
11
11
  "witnesses": {
12
12
  "host": "api/index.json served by the web host (chain_head)",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "generated_by": "runtime/build.mjs from SPEC.md section 8 via scripts/spec-levels.mjs",
3
3
  "note": "Build input for the CLI validator. The published, signed copy of the same facts is api/v/<version>/levels.json.",
4
- "version": "2.5.0",
4
+ "version": "2.5.1",
5
5
  "spec_version": "2.5",
6
6
  "locales_required": [
7
7
  "es",
package/dist/cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  /* =====================================================================
3
- NAC CLI v2.5.0 -- the entry point.
3
+ NAC CLI v2.5.1 -- the entry point.
4
4
 
5
5
  Two modes, and they do not pretend to be each other:
6
6
 
@@ -32,7 +32,7 @@ import fs from 'node:fs';
32
32
  import path from 'node:path';
33
33
  import { staticLint } from './cli-lint.mjs';
34
34
 
35
- const VERSION = '2.5.0';
35
+ const VERSION = '2.5.1';
36
36
  const SPEC_VERSION = '2.5';
37
37
 
38
38
  const args = process.argv.slice(2);
@@ -1,5 +1,5 @@
1
1
  // Generated by build.mjs -- do not edit. Source: js/nac-v2-extensions.js
2
- // Brownfield + data-table extensions for @nac3/runtime v2.5.0.
2
+ // Brownfield + data-table extensions for @nac3/runtime v2.5.1.
3
3
  // This module MUST load AFTER the core runtime; it attaches every
4
4
  // member below onto the same window.NAC object. Import as:
5
5
  // import '@nac3/runtime';
@@ -6,7 +6,7 @@
6
6
  =====================================================================
7
7
 
8
8
  AUTHORITATIVE VERSION CONSTANT: see the global.NAC export at the
9
- bottom of this file. `version: '2.5.0', spec_version: '2.5'`
9
+ bottom of this file. `version: '2.5.1', spec_version: '2.5'`
10
10
  is the normative declaration. The dated changelog sections below are
11
11
  historical notes; if they ever drift from the export, the export
12
12
  wins.
@@ -7921,7 +7921,7 @@
7921
7921
 
7922
7922
  global.NAC = {
7923
7923
  __nac_v1_installed: true,
7924
- version: '2.5.0',
7924
+ version: '2.5.1',
7925
7925
  spec_version: '2.5',
7926
7926
  /* v2.2.0 (V22-01) -- strict validation toggle. When true,
7927
7927
  NAC.register throws on findings (manifest_role_unknown,
package/dist/nac.cjs CHANGED
@@ -7,7 +7,7 @@ const _g = typeof globalThis !== 'undefined' ? globalThis : (typeof window !== '
7
7
  =====================================================================
8
8
 
9
9
  AUTHORITATIVE VERSION CONSTANT: see the global.NAC export at the
10
- bottom of this file. `version: '2.5.0', spec_version: '2.5'`
10
+ bottom of this file. `version: '2.5.1', spec_version: '2.5'`
11
11
  is the normative declaration. The dated changelog sections below are
12
12
  historical notes; if they ever drift from the export, the export
13
13
  wins.
@@ -7922,7 +7922,7 @@ const _g = typeof globalThis !== 'undefined' ? globalThis : (typeof window !== '
7922
7922
 
7923
7923
  global.NAC = {
7924
7924
  __nac_v1_installed: true,
7925
- version: '2.5.0',
7925
+ version: '2.5.1',
7926
7926
  spec_version: '2.5',
7927
7927
  /* v2.2.0 (V22-01) -- strict validation toggle. When true,
7928
7928
  NAC.register throws on findings (manifest_role_unknown,
package/dist/nac.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  // Generated by build.mjs -- do not edit. Source: js/nac.js
2
- // Core runtime surface for @nac3/runtime v2.5.0.
2
+ // Core runtime surface for @nac3/runtime v2.5.1.
3
3
  // The data-table (dt_*) + brownfield primitives live in the
4
4
  // extensions entry: import '@nac3/runtime/extensions' and see
5
5
  // the NACExtensions interface in nac-v2-extensions.d.ts.
package/dist/nac.mjs CHANGED
@@ -7,7 +7,7 @@ const _g = typeof globalThis !== 'undefined' ? globalThis : (typeof window !== '
7
7
  =====================================================================
8
8
 
9
9
  AUTHORITATIVE VERSION CONSTANT: see the global.NAC export at the
10
- bottom of this file. `version: '2.5.0', spec_version: '2.5'`
10
+ bottom of this file. `version: '2.5.1', spec_version: '2.5'`
11
11
  is the normative declaration. The dated changelog sections below are
12
12
  historical notes; if they ever drift from the export, the export
13
13
  wins.
@@ -7922,7 +7922,7 @@ const _g = typeof globalThis !== 'undefined' ? globalThis : (typeof window !== '
7922
7922
 
7923
7923
  global.NAC = {
7924
7924
  __nac_v1_installed: true,
7925
- version: '2.5.0',
7925
+ version: '2.5.1',
7926
7926
  spec_version: '2.5',
7927
7927
  /* v2.2.0 (V22-01) -- strict validation toggle. When true,
7928
7928
  NAC.register throws on findings (manifest_role_unknown,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nac3/runtime",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
4
4
  "description": "Native Agent Contract -- spec + reference runtime that lets web UIs be driven by AI agents, voice runners, and accessibility tools.",
5
5
  "keywords": [
6
6
  "nac",