You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4801ee9
Browse filesBrowse the repository at this point in the historyBrowse files
fix(aer1): close the first five named false accepts (22 → 5) (#113)
* fix(aer1): close the first five named false accepts
Five vectors from the published defect list now agree with the corpus, and the
rules behind them close twelve more rows that shared the same gaps:
- canonical_bytes must be padded base64 that re-encodes to itself
(ax-base64-unpadded, base64-unpadded, base64-pad-bit).
- created_at must be a real RFC 3339 calendar value, not timestamp-shaped
(ax-feb29-1900, ax-feb29-non-leap and six more), while leap day, maximum
offset and fractional-second records still verify.
- a record claiming verification must name an object tool with three
non-empty strings (ax-tool-empty-scope, tool-empty-name, tool-not-object);
the legacy bare record keeps its string form.
- the id is a lowercase UUID (bad-id, uppercase-id, id-trailing-newline);
shape-only, binding is unchanged and pinned.
Net: false accepts 22 -> 5, agree 21 -> 38, false rejects 0 throughout. The
table, totals and pinned count move with each rule, each rule has its own test.
Remaining five need a rule from the spec, not a guess: missing-inputs (valid
records also omit inputs), bad-provenance and provenance-trailing-newline (the
known-class list is not published), bad-verification-status, duplicate-member-name.
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
* fix(aer1): close the remaining five false accepts, bringing the count to zero
The interop table listed five records the corpus marks invalid that CG-AER1/1
still accepted. Each now has its own check and its own test:
- duplicate member names, scanned in the original text before any value is
trusted, because JSON.parse silently keeps the last member;
- an execution payload that carries outputs but no inputs object;
- a claimed verification_status other than "verified" on such a payload;
- a provenance_class outside the declared set, matched exactly so a trailing
newline is a different class;
- the same provenance rule closing the trailing-newline variant.
Legacy artifacts are exempt from the execution-payload rules: the corpus calls
records valid that commit neither inputs nor outputs, and a strict rule there
would be a false reject.
The table is regenerated (agree 43, false accepts 0, not checked 100, no false
rejects), its boundary line reads the measured total instead of a stale 30, and
the interop test pins zero rather than five.
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
---------
Co-authored-by: Mr-X <EslaM-X@users.noreply.github.com>
Co-authored-by: Codebuff <noreply@codebuff.com>
Copy file name to clipboardExpand all lines: AGENTS.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -158,7 +158,7 @@ New entries append chronologically and are never renumbered — a gap in the tag
158
158
159
159
## Files That Change Together
160
160
161
-
-`H1-H8.md` expected numbers ↔ engine version ↔ `npm test` test counts ↔ validator check count (currently 2.1.2 ↔ 16 ↔ 1999 ↔ 649 - the npm test number tracks the latest measured count; every literal here is a measured number, so a green run that disagrees means the number below is stale, not that the run is wrong).
161
+
-`H1-H8.md` expected numbers ↔ engine version ↔ `npm test` test counts ↔ validator check count (currently 2.1.2 ↔ 16 ↔ 2009 ↔ 649 - the npm test number tracks the latest measured count; every literal here is a measured number, so a green run that disagrees means the number below is stale, not that the run is wrong).
162
162
-`freeze-record-4.2.6.json` ↔ any file it pins ↔ `.gitattributes` tree list ↔ README pin-count claim (now 49 = 30+19; README.md's own pin is inside the record it links from). Take the split from the record itself, never from a remembered literal — the "47 = 28+19" figure that stood here for several cycles was two pins stale, and `test/verifier-c/validate-freeze.test.mjs` had the same class of rot frozen into its own header comment (it advertised `46/46` while the record held 49; the assertions were already deriving the number, only the documentation lied). The dashboard's `#payout` section is bilingual per the AGENTS.md i18n pattern: its `test/p2/governance-dashboard-i18n.test.js` contract keeps the EN markup defaults and the AR dictionary structurally paired — edit one side only and the pairing check fails by name.
163
163
- Bilingual dashboard pair ↔ AGENTS.md i18n pattern above ↔ the EN mirror (`coreguard-gate41-visual-en.html`) — regenerate the dictionary by structural pairing after ANY structural edit to either file. **Correction to an invariant that does not exist: the "637/637 node pairing" cited here for several cycles is dead** — no file, test, or script derives or checks 637. What is genuinely enforced is narrower and real, in two places. **(1) `docs/GOVERNANCE-DASHBOARD.html`** — `test/p2/governance-dashboard-i18n.test.js` binds the `PAYOUT_GATE_I18N` dictionary to that section's `data-i18n` markup (**11 keys**: every key present exactly once, no unused keys, EN/AR inline-tag sequences equal, tags balanced, AR values carrying Arabic). **(2) `docs/coreguard-gate41-visual.html`** — `test/p2/gate41-visual-i18n.test.js` pins that page's one runtime dictionary `D = {"nodes": {"<id>": {ar, en}}, "attrs": …}` as a **bijection** against the markup: **277 static `data-i18n` keys ↔ 277 entries**, 0 missing, 0 orphan, every entry carrying a non-empty `ar` and `en`, no `.en` leaking Arabic, and `apply()` itself asserted to still iterate `D.nodes` and select by the iterated key (data can be perfect while the switcher no longer reads it — the [C27] two-channel trap). Two measured facts that look like defects and are **not**: entries 84/93/104 have an `.ar` with no Arabic because they are the bare RTL arrows `←`/`→`, and **29** entries embed a *nested* `data-i18n` inside their own `.ar` value (the outer entry replaces `innerHTML`, so the inner attribute is redundant and order-dependent, yet every inner key also appears in static markup so nothing is orphaned and the page renders correctly) — the count is **pinned, not asserted zero**, because changing it is a deliberate edit to a live investor-facing page. **(3) the EN sister `coreguard-gate41-visual-en.html` itself** — this was the last unguarded piece, and `test/p2/gate41-visual-en-parity.test.js` now closes it. The invariant is **NOT** "the two files are identical" — measured, they are not, and asserting it would be another dead number like 637. The AR page is the *interactive* twin (language switcher); the sister is the *printable* twin (printhead + print button), which is exactly why [C5]'s dictionary walk dropped the EN `printhead` subtree first. So the contract pins (a) **all 277 dictionary `.en` values appear verbatim in the sister** — the cross-file link, 0 absent; (b) **load-bearing element counts are identical** (section 10 · h1 1 · h2 10 · h3 12 · h4 5 · table 4 · thead/tbody 4 · tr 30 · ul 5 · li 10 · a 14 · p 19 · button 3 · ids 34) — a row or heading that exists in one twin only means the sister is a stale snapshot, invisible to any per-file test; (c) the **only** permitted tag differences are `b`/`span`/`div` each **+1** in the sister, pinned as a set and re-checked against the presence of the `printhead` that causes them, so a new divergence cannot hide beside a sanctioned one; (d) the sister **stays dictionary-free** (0 `data-i18n`, 0 `D.nodes`, 0 `L(`) — it is literal English, and a second dictionary would be a second source of truth ([C27]); (e) the sister leaks **no Arabic** in any of its 539 text runs; (f) `lang="ar" dir="rtl"` vs `lang="en" dir="ltr"` — the one attribute pair that *should* differ, and wrong `dir` reverses the whole board's order while every text assertion still passes; (g) the role asymmetry is pinned as fact, so nobody "fixes" it and nobody lets it rot. One consequence worth knowing: **221 of the 277 `.ar` values are already literal Arabic in the static markup**, so the AR page renders with JS disabled — the dictionary is the *switcher's payload*, not its only source of text, and that count is pinned so stripping the literal text (a silent availability regression every dictionary assertion would pass) cannot land unnoticed. 12 negative controls, and the battery reports **coverage, not just a count**: all 8 tests were observed failing (the extractor needs `--test-reporter=tap`, because the default reporter prints glyphs and an ASCII `not ok` filter finds nothing).
| Independent Verifier | SHIPPED | JS / Rust-WASM / Python verifiers. Trust never depends on us running a hosted check. | مُحققات JS و Rust-WASM و Python. الثقة مش معتمدة إننا نشغّل فحص عندنا. |
293
293
| Badge Shield | SHIPPED | Embeddable verification badges rendered only from anchored manifests. | شارات تحقق تتحط في أي موقع، بتطلع بس من بيانات متثبّتة على السلسلة. |
294
294
| ★ PSAR/1 Pre-Sign Authorization Receipts | SHIPPED | A Stellar transaction carries its own authorization proof before any signature — PASS / BLOCK, bound to the exact XDR bytes. 37 tests; v1 does not semantically decode XDR. | معاملة Stellar بتشيل إثبات التصريح بتاعها قبل أي توقيع — PASS أو BLOCK، مربوطة بنفس بايتات المعاملة بالظبط. 37 اختبار؛ والإصدار الأول مش بيفك محتوى XDR دلاليًا. |
| CGXA/1 + CGXA-SOROBAN/1 — Execution Attestation | DRY_RUN | Offline attestation of the approval↔execution arc with Soroban consent-binding preparation. No broadcast; on-chain action is owner-gated. | شهادة دون اتصال لمسار الموافقة↔التنفيذ مع تجهيز ربط الموافقة على Soroban. بدون بث؛ التنفيذ على السلسلة بقرار المالك. |
Copy file name to clipboardExpand all lines: docs/AER1-INTEROP-TABLE.md
+8-32Lines changed: 8 additions & 32 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,16 +10,16 @@ A `verified` outcome here means the saved bytes were not changed after they were
10
10
11
11
| Outcome | Vectors |
12
12
|---|---|
13
-
| agree with the corpus |21|
14
-
|**false accept (ours — must be zero)**|**22**|
13
+
| agree with the corpus |43|
14
+
|**false accept (ours — must be zero)**|**0**|
15
15
| false reject (ours) | 0 |
16
16
| not checked (unimplemented family, schema or anchor) | 100 |
17
17
18
18
## Families
19
19
20
20
| Family | Vectors | Agree | False accepts | False rejects | Not checked |
21
21
|---|---|---|---|---|---|
22
-
|`invalid`| 36 |6|21| — | 9 |
22
+
|`invalid`| 36 |27|—| — | 9 |
23
23
|`chain`| 35 | 0 | — | — | 35 |
24
24
|`valid`| 21 | 9 | — | — | 12 |
25
25
|`merkle`| 9 | 0 | — | — | 9 |
@@ -29,7 +29,7 @@ A `verified` outcome here means the saved bytes were not changed after they were
29
29
|`id-binding`| 6 | 6 | — | — | — |
30
30
|`anchored`| 6 | 0 | — | — | 6 |
31
31
|`unicode`| 5 | 0 | — | — | 5 |
32
-
|`invalid-profile`| 1 |0|1| — | — |
32
+
|`invalid-profile`| 1 |1|—| — | — |
33
33
34
34
## The two interop pairs
35
35
@@ -45,32 +45,7 @@ Drift named by CG-AER1/1:
45
45
46
46
## False accepts — our defect list
47
47
48
-
These are vectors the corpus marks invalid that CG-AER1/1 accepts. They are the checks this build does not perform yet, named by the vector that exposes them. Until they are zero, no conformance claim is possible.
49
-
50
-
| Vector | Corpus reason |
51
-
|---|---|
52
-
|`missing-inputs.json`| — |
53
-
|`ax-base64-unpadded.json`| canonical_bytes is not valid base64 |
54
-
|`ax-feb29-1900.json`| created_at is not a valid calendar date/time |
55
-
|`ax-feb29-non-leap.json`| created_at is not a valid calendar date/time |
56
-
|`ax-tool-empty-scope.json`| tool is not an object with name/version/scope strings |
57
-
|`bad-created-at.json`| created_at is not RFC 3339 |
58
-
|`bad-id.json`| id is not a lowercase UUID |
59
-
|`bad-offset-range.json`| created_at is not a valid calendar date/time |
60
-
|`bad-provenance.json`| provenance_class is not a known class |
61
-
|`bad-verification-status.json`| verification_status is not verified |
62
-
|`base64-pad-bit.json`| — |
63
-
|`base64-unpadded.json`| canonical_bytes is not valid base64 |
64
-
|`duplicate-member-name.json`| duplicate member name: output_hash |
65
-
|`feb29-1900.json`| created_at is not a valid calendar date/time |
66
-
|`feb29-non-leap.json`| created_at is not a valid calendar date/time |
67
-
|`id-trailing-newline.json`| id is not a lowercase UUID |
68
-
|`impossible-date.json`| created_at is not a valid calendar date/time |
69
-
|`leap-second-created-at.json`| created_at is not a valid calendar date/time |
70
-
|`provenance-trailing-newline.json`| provenance_class is not a known class |
71
-
|`tool-empty-name.json`| tool is not an object with name/version/scope strings |
72
-
|`tool-not-object.json`| tool is not an object with name/version/scope strings |
73
-
|`uppercase-id.json`| id is not a lowercase UUID |
48
+
None.
74
49
75
50
## Not checked
76
51
@@ -79,6 +54,7 @@ These are vectors the corpus marks invalid that CG-AER1/1 accepts. They are the
79
54
80
55
## Boundary
81
56
82
-
- No conformance claim: 30 false accepts and unimplemented timeline families are listed above.
83
-
- The id-binding family is the only one this build judges end to end, and it agrees 6/6.
57
+
- No conformance claim: 0 false accepts and 100 not-checked vectors are listed above.
58
+
- The id-binding family is judged end to end and agrees 6/6.
59
+
- The single-record invalid set is now refused by: duplicate member names, unknown provenance class, an execution payload without inputs, a claimed status other than verified, and the canonical base64 and calendar checks.
| Reason (technical, no marketing) | I am developing CoreGuard, an open-source verification infrastructure project for Core-native Bitcoin DeFi. I need Testnet2 tCORE2 to deploy and test the EvidenceRegistry contract and perform on-chain proof anchoring. The project already has a public GitHub repository, 1999 / 1999 tests and 73/73 benchmarks, a deterministic trace/evidence pipeline, local fork-based anchoring, and a reproducible CI pipeline. The remaining integration step is a real Testnet2 deployment and on-chain anchorProof transaction, pending testnet funding. I need additional testnet funds to repeatedly deploy, test, and verify the contract under realistic conditions, including failed/tampered proof cases and independent verification. |
92
+
| Reason (technical, no marketing) | I am developing CoreGuard, an open-source verification infrastructure project for Core-native Bitcoin DeFi. I need Testnet2 tCORE2 to deploy and test the EvidenceRegistry contract and perform on-chain proof anchoring. The project already has a public GitHub repository, 2009 / 2009 tests and 73/73 benchmarks, a deterministic trace/evidence pipeline, local fork-based anchoring, and a reproducible CI pipeline. The remaining integration step is a real Testnet2 deployment and on-chain anchorProof transaction, pending testnet funding. I need additional testnet funds to repeatedly deploy, test, and verify the contract under realistic conditions, including failed/tampered proof cases and independent verification. |
93
93
| How many tokens do you need? | 20–50 tCORE2 — deploy EvidenceRegistry once, then repeated integration + adversarial (tampered/failed proof) anchoring and independent on-chain verification. |
94
94
95
95
Verifiable on request: the repo, CI, benchmarks, and the local fork anchor
0 commit comments