@nac3/runtime 2.5.1 → 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 +40 -0
- package/SPEC.md +12 -3
- 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,45 @@
|
|
|
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
|
+
|
|
3
43
|
## 2.5.1 -- 2026-10-26
|
|
4
44
|
|
|
5
45
|
A patch release with no runtime behaviour change. It exists because two
|
package/SPEC.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# NAC3 -- Native Agent Contract
|
|
2
2
|
|
|
3
|
-
**Version:** 2.5.
|
|
3
|
+
**Version:** 2.5.2 (stable -- the complete v2.5 surface: narrate, context+tree, expect+diff)
|
|
4
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)
|
|
@@ -194,12 +194,21 @@ of the specification repository, rendered at
|
|
|
194
194
|
|
|
195
195
|
The specification is also published as machine translations under
|
|
196
196
|
`i18n/<locale>/SPEC.md`. Those translations are **non-normative**. Each
|
|
197
|
-
one
|
|
198
|
-
|
|
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
|
|
199
200
|
carries no banner is a defect of the publication, not a translation.
|
|
200
201
|
Where a translation and the English text disagree, the English text
|
|
201
202
|
governs, and a conformance claim is a claim against the English text.
|
|
202
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
|
+
|
|
203
212
|
---
|
|
204
213
|
|
|
205
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