@nac3/runtime 2.5.0 → 2.5.2
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 +74 -0
- package/SPEC.md +33 -2
- package/contract-head.json +4 -4
- package/dist/cli-levels.json +1 -1
- package/dist/cli.js +2 -2
- package/dist/nac-v2-extensions.d.ts +1 -1
- package/dist/nac.browser.js +2 -2
- package/dist/nac.cjs +2 -2
- package/dist/nac.d.ts +1 -1
- package/dist/nac.mjs +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,79 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.5.2 -- 2026-10-27
|
|
4
|
+
|
|
5
|
+
A patch release with no runtime behaviour change. Like 2.5.1 it exists
|
|
6
|
+
because a PUBLISHED surface contradicted itself and could not be fixed
|
|
7
|
+
without a version: the contract API publishes `spec_sha384`, the hash of
|
|
8
|
+
SPEC.md's bytes, so editing the normative document moves the contract of
|
|
9
|
+
a version already in the signed chain.
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
- **Section 4.3.2 stopped calling the nine translations partial, and
|
|
14
|
+
states the no-veto rule** (decision D-05, option B). The 2.5.1 text
|
|
15
|
+
said each translation "is partial and each is frozen at the source
|
|
16
|
+
revision its own banner declares". The first half became false the
|
|
17
|
+
moment the nine were completed: they carry 283 of 283 translatable
|
|
18
|
+
units and 83 of 83 sections. The paragraph now says what is true and
|
|
19
|
+
checkable -- each declares, in a banner a reader sees and in
|
|
20
|
+
machine-readable frontmatter, which English revision it translates and
|
|
21
|
+
how much of it it covers -- and a second paragraph states the rule the
|
|
22
|
+
decision required: **a translation that is behind the English never
|
|
23
|
+
blocks the publication of the English**. Nine machine artefacts do not
|
|
24
|
+
hold a veto over the document they translate. The sentence naming the
|
|
25
|
+
historical coverage says "Through 2.5.1", not "before": the nine
|
|
26
|
+
shipped partial IN 2.5.1 and are complete from this release on.
|
|
27
|
+
|
|
28
|
+
- **The nine translations of SPEC.md are complete** (D-05, option B).
|
|
29
|
+
They went from 34 of 83 sections -- the May document translated in
|
|
30
|
+
full, against an English text that has grown 49 sections since -- to
|
|
31
|
+
83 of 83, produced from a per-locale unit store whose keys are the
|
|
32
|
+
sha256 of the English unit, so a future English edit moves only the
|
|
33
|
+
units it touches. Measured on the real document: editing one English
|
|
34
|
+
paragraph leaves 281 of 283 units untouched per locale. They remain
|
|
35
|
+
**non-normative**, and `scripts/test-spec-translations.mjs` compares
|
|
36
|
+
every identifier, link, URL, number, table row, list item and section
|
|
37
|
+
number against the English without reading the prose. The procedure is
|
|
38
|
+
`docs/TRANSLATION_PASS.md`.
|
|
39
|
+
|
|
40
|
+
No runtime surface changes: the API, the attributes, the events, the
|
|
41
|
+
conformance levels and the finding catalogue are byte-identical to 2.5.1.
|
|
42
|
+
|
|
43
|
+
## 2.5.1 -- 2026-10-26
|
|
44
|
+
|
|
45
|
+
A patch release with no runtime behaviour change. It exists because two
|
|
46
|
+
PUBLISHED surfaces contradicted themselves, and neither could be fixed
|
|
47
|
+
without a version: the contract API publishes `spec_sha384`, the hash of
|
|
48
|
+
SPEC.md's bytes, so editing that document moves the contract of a version
|
|
49
|
+
already in the chain.
|
|
50
|
+
|
|
51
|
+
### Fixed
|
|
52
|
+
|
|
53
|
+
- **The `**Status:**` line of SPEC.md stopped restating the version**
|
|
54
|
+
(audit N-45, second half). The published 2.5.0 declared its version
|
|
55
|
+
twice in its first four lines and the two disagreed: line 3 said
|
|
56
|
+
`2.5.0 (stable)` and line 4 said `v2.5.0-alpha.5 ... Promoted to npm
|
|
57
|
+
dist-tag latest`. Line 4 was TRUE until 18:40 on 2026-10-26 -- the act of
|
|
58
|
+
promoting `latest` to the stable release is what falsified it, in both
|
|
59
|
+
halves. It now points at section 9.1 and names no version, and the
|
|
60
|
+
version coherence gate has a slot that refuses a Status line naming one,
|
|
61
|
+
with the line the 2.5.0 shipped with as its first red case.
|
|
62
|
+
|
|
63
|
+
### Changed
|
|
64
|
+
|
|
65
|
+
- **Section 4.3 says what the ten-locale requirement is a requirement ON,
|
|
66
|
+
and section 4.3.2 declares the normative language** (decision D-03,
|
|
67
|
+
option C). The ten locales are a requirement on the adopter manifest's
|
|
68
|
+
`label_i18n`, not on the language of this document. The English text is
|
|
69
|
+
normative; the nine published translations are non-normative, each
|
|
70
|
+
partial and frozen at the revision its own banner declares; where they
|
|
71
|
+
disagree the English text governs, and a conformance claim is a claim
|
|
72
|
+
against the English text. Measured rather than estimated: all nine
|
|
73
|
+
carry the same 34 of the 83 sections SPEC.md has today -- they translate
|
|
74
|
+
the May document in full and the English text has grown 49 sections
|
|
75
|
+
since. No runtime surface changes.
|
|
76
|
+
|
|
3
77
|
## 2.5.0 -- 2026-10-26
|
|
4
78
|
|
|
5
79
|
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.
|
|
4
|
-
**Status:**
|
|
3
|
+
**Version:** 2.5.2 (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,37 @@ 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 declares, in a banner a reader sees and in machine-readable
|
|
198
|
+
frontmatter, which English revision it translates and how much of it it
|
|
199
|
+
covers; the banner is required, and a published translation that
|
|
200
|
+
carries no banner is a defect of the publication, not a translation.
|
|
201
|
+
Where a translation and the English text disagree, the English text
|
|
202
|
+
governs, and a conformance claim is a claim against the English text.
|
|
203
|
+
|
|
204
|
+
A translation that is behind the English **never blocks the publication
|
|
205
|
+
of the English**. The normative text ships when it is ready; a stale
|
|
206
|
+
translation is reported, per unit, and the release goes out. Nine
|
|
207
|
+
machine artefacts do not hold a veto over the document they translate.
|
|
208
|
+
Through 2.5.1 the nine covered 34 of the 83 sections and nothing said
|
|
209
|
+
so; they are produced from a per-locale store now, and the procedure is
|
|
210
|
+
`docs/TRANSLATION_PASS.md`.
|
|
211
|
+
|
|
181
212
|
---
|
|
182
213
|
|
|
183
214
|
## 5. Public API
|
package/contract-head.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"api_schema": 1,
|
|
3
|
-
"chain_head": "sha384-
|
|
4
|
-
"entry_count":
|
|
3
|
+
"chain_head": "sha384-mzie2uMo7z01FLUHuazrTGn1Dzkk+5hYse4hMOkMe0hiPumb8p7s7452Lxu3Xkvk",
|
|
4
|
+
"entry_count": 4,
|
|
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
|
-
"published_at": "2026-10-
|
|
9
|
-
"runtime_version": "2.5.
|
|
8
|
+
"published_at": "2026-10-27",
|
|
9
|
+
"runtime_version": "2.5.2",
|
|
10
10
|
"surface": "contract-head-witness",
|
|
11
11
|
"witnesses": {
|
|
12
12
|
"host": "api/index.json served by the web host (chain_head)",
|
package/dist/cli-levels.json
CHANGED
|
@@ -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.
|
|
4
|
+
"version": "2.5.2",
|
|
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.
|
|
3
|
+
NAC CLI v2.5.2 -- 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.
|
|
35
|
+
const VERSION = '2.5.2';
|
|
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.
|
|
2
|
+
// Brownfield + data-table extensions for @nac3/runtime v2.5.2.
|
|
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';
|
package/dist/nac.browser.js
CHANGED
|
@@ -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.
|
|
9
|
+
bottom of this file. `version: '2.5.2', 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.
|
|
7924
|
+
version: '2.5.2',
|
|
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.
|
|
10
|
+
bottom of this file. `version: '2.5.2', 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.
|
|
7925
|
+
version: '2.5.2',
|
|
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.
|
|
2
|
+
// Core runtime surface for @nac3/runtime v2.5.2.
|
|
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.
|
|
10
|
+
bottom of this file. `version: '2.5.2', 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.
|
|
7925
|
+
version: '2.5.2',
|
|
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