srcx5 commited on
Commit
81f96ad
·
0 Parent(s):

sync from 1b353af1a844546a3f609b6f242e5ab34d3c16a9

Browse files
Files changed (17) hide show
  1. MIRRORS.json +26 -0
  2. NODES.json +17 -0
  3. README.md +14 -0
  4. SPEC_SRCX5_1_4_1.md +186 -0
  5. app.py +69 -0
  6. context.jsonld +16 -0
  7. llms.txt +20 -0
  8. log/log.jsonl +10 -0
  9. openapi.json +285 -0
  10. schema/record.schema.json +297 -0
  11. srcx5.py +318 -0
  12. srcx5_anchor.py +43 -0
  13. srcx5_install.py +32 -0
  14. srcx5_issue.py +39 -0
  15. srcx5_mcp.py +83 -0
  16. srcx5_net.py +223 -0
  17. srcx5_node.py +183 -0
MIRRORS.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "about": "Every copy of the SRC-X.5 log that anyone may read or sync from. Each answers the same paths (ids.json, head.json, log.json, records/<id>.json). Copies are checked, not trusted: every record's id is its own SHA-256. Add a mirror with one pull request.",
3
+ "mirrors": [
4
+ {
5
+ "url": "https://r-a-elu-architecture.github.io/srcx5/api",
6
+ "kind": "static",
7
+ "host": "GitHub Pages"
8
+ },
9
+ {
10
+ "url": "https://raw.githubusercontent.com/r-a-elu-architecture/srcx5/main/site/api",
11
+ "kind": "static",
12
+ "host": "GitHub raw content"
13
+ },
14
+ {
15
+ "url": "https://cdn.jsdelivr.net/gh/r-a-elu-architecture/srcx5@main/site/api",
16
+ "kind": "static",
17
+ "host": "jsDelivr (global CDN)"
18
+ }
19
+ ],
20
+ "archives": [
21
+ {
22
+ "url": "https://archive.softwareheritage.org/browse/origin/?origin_url=https://github.com/r-a-elu-architecture/srcx5",
23
+ "host": "Software Heritage"
24
+ }
25
+ ]
26
+ }
NODES.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "about": "Always-on SRC-X.5 nodes (read, submit, MCP over HTTP, A2A). The public log pulls admitted records from every node listed here every six hours. Add your node with one pull request.",
3
+ "nodes": [
4
+ {
5
+ "url": "https://rsos-srcx5.hf.space",
6
+ "host": "Hugging Face Spaces (RSOS/srcx5)",
7
+ "operator": "R. A. Elu",
8
+ "since": "2026-11-26",
9
+ "serves": [
10
+ "read",
11
+ "submit",
12
+ "mcp",
13
+ "a2a"
14
+ ]
15
+ }
16
+ ]
17
+ }
README.md ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: SRC-X.5 node
3
+ emoji: 🔗
4
+ colorFrom: green
5
+ colorTo: blue
6
+ sdk: gradio
7
+ app_file: app.py
8
+ pinned: true
9
+ license: apache-2.0
10
+ short_description: "SRC-X.5 node - open record of sealed claims, MCP, A2A"
11
+ ---
12
+ # SRC-X.5 node
13
+ An always-on node of the open record of sealed claims: read API, POST /submit, MCP over HTTP at /mcp, A2A at /a2a, agent card at /.well-known/agent-card.json.
14
+ Source: https://github.com/r-a-elu-architecture/srcx5
SPEC_SRCX5_1_4_1.md ADDED
@@ -0,0 +1,186 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SRC-X.5, specification v1.4.1
2
+
3
+ An open record of sealed claims, verified at the source.
4
+
5
+ **Status:** v1.4.1, 26 November 2026. Wording revision of v1.4 (`SPEC_SRCX5_1_4.md`, sealed with the v1.4 launch tests): terminology made consistent with engineering usage. Protocol, record format and every rule are unchanged; v1.4 added layer bindings (§L). Text CC BY 4.0; reference code Apache 2.0.
6
+ **Reference implementation:** `srcx5.py` (the rules: admission, the log, the core node; sealed, unchanged since v1.3), `srcx5_net.py` (the v1.4 network layer) and `srcx5_mcp.py` (the AI-agent interface). Python standard library only.
7
+
8
+ ## 0. Name and versions
9
+ - **Name:** SRC-X.5. Written `srcx5` where punctuation cannot go (file, package, repository). It was first written on
10
+ 8 June 2025 for a compact key that re-expands into its full content; a record's id is exactly that.
11
+ - **v1.3 changes the name only.** Every rule, check and threshold is the same as v1.2. The version field is now
12
+ `srcx5`; a v1.3 node also admits records carrying `rsc: "1.2"`, so the genesis log keeps every id and its chain.
13
+ - **v1.2** (`rsc.py`, sealed in `tests/SEAL_RSC.txt`) is kept unchanged as the reference that made the genesis log.
14
+ - **v1.4 changes connection only** (§L). The record format stays `srcx5: "1.3"`; `srcx5.py` is unchanged.
15
+
16
+ ## L. Layer bindings (v1.4)
17
+ A record is canonical bytes whose identity is their own SHA-256. Any layer of a communication stack can carry
18
+ bytes and any system can compute a hash, so SRC-X.5 defines a binding for each layer through that layer's main
19
+ standard. A client connects at whichever layer it operates on, using that layer's native interface.
20
+
21
+ **The OSI model**
22
+
23
+ | Layer | Main standard there | SRC-X.5 at that layer |
24
+ |---|---|---|
25
+ | 8 Application semantics (above OSI) | purpose, criteria, lineage; agents | every record states its purpose, its pass criteria fixed before the run, and its lineage; AI agents connect through MCP (`srcx5_mcp.py`) |
26
+ | 7 Application | HTTP/REST, git, MCP | the node API (`openapi.json`, OpenAPI 3.1); the log as a git repository; the browser verifier |
27
+ | 6 Presentation | UTF-8, JSON, JSON-LD | one canonical encoding (sorted keys, no spaces, UTF-8, integers only); `schema/record.schema.json`; a W3C PROV view in JSON-LD (`ld/<id>.jsonld`, `context.jsonld`) |
28
+ | 5 Session | peer synchronisation | digest sync: compare heads, move only missing records, resume after any break; first peer that answers is used |
29
+ | 4 Transport | TCP, QUIC; Bundle Protocol (space) | carried unchanged; each record is self-contained, so store-and-forward and long delays need nothing extra |
30
+ | 3 Network | IP; content addressing | content addressing: the id locates the bytes and verifies them over any route |
31
+ | 2 Data link | Ethernet, Wi-Fi, CCSDS space data link | any frame; integrity is end to end by the hash, not by the link |
32
+ | 1 Physical | fibre, radio, optical, print | any medium; bytes read back from any medium verify identically |
33
+
34
+ **The other models, the same way**
35
+
36
+ | Model | Where SRC-X.5 binds |
37
+ |---|---|
38
+ | TCP/IP (the internet) | layers 7-3 above, merged |
39
+ | Space and interplanetary (CCSDS, delay-tolerant networking) | records travel as bundles or files unchanged; sync tolerates hours of delay and broken links |
40
+ | Web and linked data (W3C) | JSON-LD and PROV: records are provenance entities in any semantic or scientific tool |
41
+ | Decentralized ledgers | the head hash anchored in a transaction (Bitcoin through OpenTimestamps in the reference set); anyone may anchor on any ledger |
42
+ | Archives and identifiers | DOI snapshots (Zenodo) and Software Heritage keep the log permanently citable |
43
+
44
+ **Uniform read interface.** A running node and a static mirror answer the same read paths: `ids.json`, `active.json`,
45
+ `head.json`, `log.json`, `records/<id>.json`, `ld/<id>.jsonld`, `.well-known/srcx5.json`. A running node also answers the
46
+ v1.3 paths and `POST /submit`. A client never needs to know which kind it reached.
47
+
48
+ **Mirrors and failover.** `MIRRORS.json` lists every known copy. Sync takes a list of peers and mirrors and uses the
49
+ first that answers; a copy that answers with a record whose id is not its own hash is skipped. A scheduled check
50
+ compares each mirror's head with the log and refreshes any that is stale. Anyone who runs a node holds a full copy and
51
+ can be added to the list with one pull request. No copy is trusted; every copy is checked.
52
+
53
+ **Anchors.** An anchor proves that the log head (and so every record before it) existed at a time, on a public
54
+ network. Anchors are stored beside the log (`anchors/<head>.json` and the network's proof), not inside it, so any
55
+ network can be added without changing a record.
56
+
57
+ **Hardening.** A node accepts at most 256 kB per submission and 30 submissions per client per minute, accepts only
58
+ UTF-8 JSON objects, answers 4xx to anything else, never crashes on bad input, and refuses edits and deletion (405).
59
+
60
+ ## 1. Purpose
61
+ A claim is easy to make and hard to check. An SRC-X.5 record makes one claim checkable by anyone, in any field. It states:
62
+ - what was intended;
63
+ - what was predicted, and by which pass criteria;
64
+ - which files were fixed, and when;
65
+ - when it ran;
66
+ - what came out;
67
+ - who replicated it;
68
+ - where it came from;
69
+ - that it carries no personal data.
70
+
71
+ SRC-X.5 carries no domain content. It works the same for an AI benchmark, a clinical protocol, a policy forecast or a
72
+ satellite schedule.
73
+
74
+ ## 2. The record
75
+ A record is one JSON object. Its `id` is the SHA-256 of its canonical form without `id`. The canonical form is JSON
76
+ with sorted keys, no spaces, UTF-8. Changing any byte changes the id.
77
+
78
+ | Field | Required for | Meaning |
79
+ |---|---|---|
80
+ | `srcx5` | all | protocol version, `"1.3"`. Records sealed under v1.2 carry `rsc: "1.2"` instead and stay valid with their ids |
81
+ | `type` | all | `claim` (a sealed test), `replication` (someone re-ran a claim), `forecast` (a sealed prediction about the future) |
82
+ | `title`, `purpose` | claim, forecast | what is tested, and why |
83
+ | `prediction.criteria` | claim, forecast | the pass criteria, fixed before the run |
84
+ | `seal.files[]` | claim, forecast | `{path, sha256}` for every file fixed before the run |
85
+ | `seal.sealed_at` | claim, forecast | ISO time the seal was committed |
86
+ | `seal.commit`, `seal.seal_file` | optional | where the seal can be checked |
87
+ | `run.started_at`, `run.run_id` | claim with an outcome | when and where it ran |
88
+ | `outcome.criteria_met` | all | `all`, `partly`, `none` or `pending`, plus `summary` and `result_files[]` |
89
+ | `replicates`, `by` | replication | the id replicated, and by whom |
90
+ | `lineage.parents[]` | optional | ids of the records it builds on |
91
+ | `consent_harm.personal_data` | all | must be `false`: the open log holds no personal data |
92
+ | `consent_harm.harm_reports[]` | optional | harm reported about this record |
93
+
94
+ **Outcomes are reported, not ranked.** `criteria_met` says whether the criteria fixed before the run were met. It says
95
+ nothing about importance. Records whose criteria were not met belong in the log as much as the others.
96
+
97
+ ## 2a. Checks, quarantine, supersede and peer audit
98
+ Every node runs seven checks on every record. Each reason a node returns names its check.
99
+
100
+ | Check | What a node checks in a record |
101
+ |---|---|
102
+ | `DISCLOSURE` | content matches its id; pass criteria stated; sealed before the run; no seal dated in the future |
103
+ | `CONSENT_PRIVACY` | no personal data; if people are affected, consent is declared |
104
+ | `HARM_BOUND` | declared predicted harm at or below 0.3 |
105
+ | `CONFORMANCE` | version, evidence domain, lineage, replicated and superseded records all valid |
106
+ | `NON_BLOCKING` | a valid record is never blocked (measured in every proof) |
107
+ | `ATTRIBUTION` | a measured outcome carries fingerprinted result files; a replication names who made it |
108
+ | `PURPOSE` | the record declares that it serves the stated mission |
109
+
110
+ **Mission:** "Healing, transforming and evolving, and signalling this to others, for the growth, development,
111
+ transformation and healing of all living beings."
112
+
113
+ **Quarantine, not rejection.** A record that fails a check is quarantined: kept by the node with its reasons, never
114
+ published, and the submitter receives the reasons (`202`). Admission is non-blocking: every submission is
115
+ evaluated, and nothing is deleted: the log is append-only.
116
+
117
+ **Evidence domain.** Every record declares `evidence`: `real` (shown on real-world data or systems), `simulated` (shown
118
+ in a simulated world) or `both`.
119
+
120
+ **Declarations.** Every record carries `declarations`: `affects_people`, `consent` (required if people are affected),
121
+ `predicted_harm`, `serves_mission`.
122
+
123
+ **Supersede with stable identity.** A record may carry `supersedes: <id>` and `lineage.identity`; the identity must
124
+ equal that of the record it supersedes. The superseded record stays in the log and leaves the active set (`GET /active`).
125
+
126
+ **Targeted repair.** Sync heals only the records that differ (digest sync, §5).
127
+
128
+ **Peer audit.** `srcx5.py audit --peer <node>` checks a peer with two independent signals: its chain does not verify, and
129
+ a record it serves differs from the auditor's. Drift is flagged only when both agree.
130
+
131
+ ## 3. Admission
132
+ Every node, the command-line tool and the public workflow run the same function, `check()`. A record is admitted only
133
+ if all of these hold:
134
+ 1. **Format:** the version, type and required fields are present, and the pass criteria are not empty.
135
+ 2. **Identity:** `id` equals the hash of the content. A tampered or forged record fails.
136
+ 3. **Seal before run:** `sealed_at` is earlier than `run.started_at`.
137
+ 4. **Fingerprints:** at least one file, each with a 64-hex SHA-256. With `--repo`, every file is checked byte for byte.
138
+ 5. **Lineage:** every parent and every replicated id is already in the log.
139
+ 6. **No personal data:** `personal_data` is false, and no text field contains an email address, phone number,
140
+ payment card number (Luhn-checked) or IBAN.
141
+ 7. **Held ids:** a record with an id already held is a no-op if identical, and is rejected otherwise.
142
+
143
+ A rejection returns every reason. Nothing is admitted silently, and nothing is deleted. A harmful record found later is
144
+ answered by a new record (a harm report or a replication with `criteria_met: none`), so the history stays whole.
145
+
146
+ ## 4. The log
147
+ - Append-only, one JSON line per entry: `{seq, prev, record, entry_hash}`.
148
+ - `entry_hash` is the SHA-256 of the canonical entry without `entry_hash`; `prev` is the previous entry's hash.
149
+ - Editing any stored entry breaks the chain from that point on. `srcx5.py check-log` finds it.
150
+
151
+ ## 5. Nodes and sync
152
+ A node serves the following over plain HTTP, open to every origin:
153
+
154
+ | Request | Answer |
155
+ |---|---|
156
+ | `GET /ids` | sorted ids held |
157
+ | `GET /record/<id>` | one record |
158
+ | `GET /log?ids=a,b` | entries, all or the listed ones |
159
+ | `GET /head` | chain head and count |
160
+ | `POST /submit` | `201` admitted, or `422` with reasons |
161
+
162
+ **Sync sends only what the receiver lacks.** A node fetches the peer's ids, requests only the missing entries, and
163
+ admits each through the same `check()`. A node never trusts a peer: every record is checked again on arrival.
164
+
165
+ ## 6. Replication
166
+ Anyone who re-runs a claim adds a `replication` record:
167
+
168
+ `srcx5.py replicate <id> --by <name or handle> --outcome all|partly|none --summary "…"`
169
+
170
+ Trust grows with independent replications, not with the number of claims.
171
+
172
+ ## 7. Privacy and safety
173
+ - Only hashes, criteria, times and outcomes are public. Data stays with its owner; a record proves that a file existed
174
+ unchanged, without publishing the file.
175
+ - Names in `by` are handles chosen by the replicator.
176
+ - The personal-data guard is a safety net, not a guarantee. Submitters remain responsible for what they submit.
177
+
178
+ ## 8. Roadmap
179
+ Runtime monitors for further invariants; need-based distribution (nodes subscribe to the relations and fields they
180
+ need instead of receiving everything); multiple audit perspectives (whole-log, per-record, per-peer); a defined
181
+ lifecycle order for records; path queries over the lineage graph; node declarations of their links; further checks.
182
+ Each enters the protocol only with a sealed proof.
183
+
184
+ ## 9. Versioning
185
+ Version changes are new records about the protocol itself, sealed before they take
186
+ effect. A node states the version it checks in `/health`.
app.py ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """SRC-X.5 node on a Hugging Face Space (Gradio SDK, CPU basic). Python standard library only.
3
+
4
+ Joins by syncing from the mirrors, then serves the v1.5 node (srcx5_node.py, unchanged). A browser that opens "/" gets a
5
+ landing page; every machine path (/health, /mcp, /a2a, /submit, /records/..., agent card) answers exactly as on any node.
6
+ """
7
+ import html, json, os, sys
8
+ sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
9
+ import srcx5 as core, srcx5_net as net, srcx5_node as node
10
+
11
+ PAGES = "https://r-a-elu-architecture.github.io/srcx5/"
12
+ REPO = "https://github.com/r-a-elu-architecture/srcx5"
13
+
14
+ PAGE = """<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
15
+ <title>SRC-X.5 node</title><style>
16
+ :root{{--a:#2a8a82;--t:#1d2327;--m:#5b6670;--l:#e6eaec}}
17
+ body{{margin:0;font:16px/1.55 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:var(--t);background:#fff}}
18
+ main{{max-width:780px;margin:0 auto;padding:40px 22px 56px}} h1{{font-size:28px;margin:0 0 6px}} h2{{font-size:17px;margin:30px 0 8px}}
19
+ p{{margin:8px 0}} .m{{color:var(--m)}} a{{color:var(--a)}} code{{font:14px ui-monospace,SFMono-Regular,Menlo,monospace;background:#f4f6f7;padding:1px 5px;border-radius:4px}}
20
+ .s{{display:flex;gap:14px;flex-wrap:wrap;margin:18px 0}} .s div{{border:1px solid var(--l);border-radius:8px;padding:10px 14px;min-width:120px}}
21
+ .s b{{display:block;font-size:20px}} .s span{{font-size:13px;color:var(--m)}}
22
+ table{{border-collapse:collapse;width:100%}} td{{border-top:1px solid var(--l);padding:8px 6px;vertical-align:top}} td:first-child{{width:34%;color:var(--m)}}
23
+ .bar{{height:3px;background:var(--a);opacity:.55;margin-bottom:26px}}
24
+ </style></head><body><main><div class="bar"></div>
25
+ <h1>SRC-X.5 node</h1>
26
+ <p class="m">An open record of sealed claims, verified at the source. Each record states what was predicted and by which
27
+ criteria, which files were fixed and when, what came out, and who replicated it. Its id is the SHA-256 of its canonical
28
+ form, so any copy is verified independently of where it came from.</p>
29
+ <div class="s"><div><b>{count}</b><span>records</span></div><div><b>{active}</b><span>active</span></div>
30
+ <div><b>{chain}</b><span>hash chain</span></div><div><b><code>{head}</code></b><span>log head</span></div></div>
31
+ <p><a href="{pages}">Verify every record in your browser</a> &middot; <a href="{repo}">Repository</a> &middot;
32
+ <a href="https://doi.org/10.5281/zenodo.24555259">Paper</a></p>
33
+ <h2>Connect</h2><table>
34
+ <tr><td>AI agents (MCP over HTTP)</td><td><code>POST {base}/mcp</code></td></tr>
35
+ <tr><td>Agent2Agent (A2A)</td><td><code>{base}/.well-known/agent-card.json</code> &middot; <code>POST {base}/a2a</code></td></tr>
36
+ <tr><td>HTTP and JSON</td><td><a href="{base}/openapi_v15.json"><code>/openapi_v15.json</code></a> (OpenAPI 3.1) &middot; <a href="{base}/health"><code>/health</code></a> &middot; <a href="{base}/ids.json"><code>/ids.json</code></a></td></tr>
37
+ <tr><td>Submit a record</td><td><code>POST {base}/submit</code>, or the <a href="{repo}/issues/new?template=submit-record.yml">issue form</a> (no git needed)</td></tr>
38
+ <tr><td>Python</td><td><code>pip install srcx5</code></td></tr>
39
+ <tr><td>Run your own node</td><td><code>docker run -p 7860:7860 ghcr.io/r-a-elu-architecture/srcx5</code></td></tr>
40
+ <tr><td>MCP Registry</td><td><code>io.github.r-a-elu-architecture/srcx5</code></td></tr>
41
+ </table>
42
+ <p class="m" style="margin-top:22px">Records admitted here reach the public log at the next heartbeat (every six hours) and every mirror after it.
43
+ Rules: <a href="{repo}/blob/main/SPEC_SRCX5_1_4_1.md">specification</a>. Code Apache 2.0, specification CC BY 4.0.</p>
44
+ </main></body></html>"""
45
+
46
+ def main():
47
+ log = core.Log("log")
48
+ peers = [m["url"] for m in json.load(open("MIRRORS.json"))["mirrors"]]
49
+ for u in peers: # join: take from the mirrors what this copy lacks, re-checked on arrival
50
+ try: net.sync_one(log, u); break
51
+ except Exception: pass
52
+ base = os.environ.get("PUBLIC_URL") or ("https://" + os.environ["SPACE_HOST"] if os.environ.get("SPACE_HOST") else "")
53
+ srv = node.serve(log, int(os.environ.get("PORT", 7860)), peers, base or None)
54
+ Base = srv.RequestHandlerClass
55
+ class H(Base):
56
+ def do_GET(s):
57
+ path = s.path.partition("?")[0]
58
+ if path in ("/", "/index.html") and "text/html" in (s.headers.get("Accept") or ""):
59
+ body = PAGE.format(count=len(log.entries), active=len(log.active()), chain="intact" if log.verify_chain() == [] else "broken",
60
+ head=html.escape(log.head()[:12]) + "…", pages=PAGES, repo=REPO, base=html.escape(base)).encode("utf-8")
61
+ s.send_response(200); s.send_header("Content-Type", "text/html; charset=utf-8")
62
+ s.send_header("Content-Length", str(len(body))); s.end_headers(); s.wfile.write(body); return
63
+ return super().do_GET()
64
+ srv.RequestHandlerClass = H
65
+ print(f"SRC-X.5 node on :{srv.server_address[1]}", flush=True)
66
+ srv.serve_forever()
67
+
68
+ if __name__ == "__main__":
69
+ main()
context.jsonld ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "@context": {
3
+ "@version": 1.1,
4
+ "prov": "http://www.w3.org/ns/prov#",
5
+ "dct": "http://purl.org/dc/terms/",
6
+ "foaf": "http://xmlns.com/foaf/0.1/",
7
+ "xsd": "http://www.w3.org/2001/XMLSchema#",
8
+ "srcx5": "https://r-a-elu-architecture.github.io/srcx5/vocab#",
9
+ "srcx5:sealedAt": {
10
+ "@type": "xsd:dateTime"
11
+ },
12
+ "srcx5:sha256": {
13
+ "@type": "xsd:string"
14
+ }
15
+ }
16
+ }
llms.txt ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SRC-X.5
2
+
3
+ > An open record of sealed claims, verified at the source. A record says what was predicted and by which criteria, which
4
+ > files were fixed and when, when it ran, what came out, and who replicated it. Its id is the SHA-256 of its canonical
5
+ > form, so any copy, from any host or network, is checked rather than trusted. Apache 2.0; the specification is CC BY 4.0.
6
+
7
+ ## Read
8
+ - [Discovery](.well-known/srcx5.json): versions, head, where everything is
9
+ - [All ids](api/ids.json), [head](api/head.json), [the whole chain](api/log.json), one record: api/records/<id>.json
10
+ - One record as W3C PROV JSON-LD: api/ld/<id>.jsonld
11
+
12
+ ## Interfaces
13
+ - [OpenAPI 3.1](openapi.json) for any HTTP client or SDK
14
+ - [JSON Schema](schema/record.schema.json) for the record format
15
+ - [JSON-LD context](context.jsonld) for linked data
16
+ - [Mirrors](MIRRORS.json): every copy; use the first that answers
17
+ - MCP server for AI agents: `python srcx5_mcp.py --log log` (tools: srcx5_list, srcx5_get, srcx5_verify, srcx5_verify_log, srcx5_submit, srcx5_ld)
18
+
19
+ ## Rules
20
+ - [Specification v1.4](SPEC_SRCX5_1_4.md): the layer map, transport, the seven checks, quarantine, supersede, audit
log/log.jsonl ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {"entry_hash": "5b273bfadd6f4c0a81f995271e044cf263535d4e6a0bd94e683e79b9a3249a6f", "prev": "0000000000000000000000000000000000000000000000000000000000000000", "record": {"consent_harm": {"harm_reports": [], "personal_data": false}, "declarations": {"affects_people": false, "note": "AI, data and simulated hosts; no living participants", "predicted_harm": 0, "serves_mission": true}, "evidence": "both", "id": "bc739fb1c0060a58f42861c5f70daa1903bc58746d42c6b4658544171bf7900d", "lineage": {"parents": [], "source": "sealed research record"}, "outcome": {"criteria_met": "partly", "result_files": [{"path": "real/RESULTS_REAL3.md", "sha256": "2df2a0e651c72e7e9d3b989c6c9715640c62025397662e7644d64d237c38bb17"}], "summary": "Shown in 7 of 10 domains under the pre-registered rule (4 after Holm across units); quantum and neural sensing not shown; biology undecided on 6 of 8 cells. Five crashed units re-run under FIX1, disclosed."}, "prediction": {"criteria": "Per domain: two-look sequential test on fresh cells 201-216; shown when the 97.5 % interval of the gain lies above zero (PREREG_REAL3.md)"}, "purpose": "Does one shared decision selector beat each domain's standard method across ten real domains?", "rsc": "1.2", "run": {"run_id": "45536337290", "started_at": "2026-11-25T02:55:17Z", "where": "GitHub Actions, r-a-elu-architecture/RSOS-Multimodal-World"}, "seal": {"commit": "ed5a2f5c783ae000ce43d0f3dec4a3a8c5a1f42e", "files": [{"path": "real/seed.py", "sha256": "51813143cfbeec90aff64b55afd1ea41df156c6f837f8d27b5f333291ee4ce8b"}, {"path": "real/seed3.py", "sha256": "472845a35c7e72e1d704a01b3a4de90019a3a212f44d81d841a227865f62838f"}, {"path": "real/seed3_ops.py", "sha256": "d846d20461a77e7f046b5bb978b1a86d853d4e678bf2909a17f838805c71d70c"}, {"path": "real/hosts/ai_agents.py", "sha256": "83a346ba88af30447b8556c2dd7f56068a32c45b3ace2f8b8d402ad7925b4594"}, {"path": "real/hosts/ai_agents_blind.py", "sha256": "18209eeb1bfb761838632fe673e949cdb61f5cd193f669cbe7a594dc481a713c"}, {"path": "real/hosts/ai_agents_quick.py", "sha256": "e798d8288c5f3293b4bc1710189ef4a1419109509a8242f6d4608f54b05e7fcf"}, {"path": "real/hosts/ai_agents_tree.py", "sha256": "1f3b8cec16f496c658215adb8c6ffd077ac968d7d6f0668d57bcd38279819d49"}, {"path": "real/hosts/ai_ai.py", "sha256": "6182df0838c1a1ccfa20d651c8ab3c2736186795d7e007da269cbb7163d200db"}, {"path": "real/hosts/ai_ai_quick.py", "sha256": "f2347e02b22bc4fe7cb742ff9c31b08c245cf78044900237371f04769dfc035e"}, {"path": "real/hosts/ai_human.py", "sha256": "af82fe72582647c83bddda0037b53d7f1248886f8aee281425c71e422d45d225"}, {"path": "real/hosts/ai_human_fetch.py", "sha256": "f89f62f46fde7eac08f6507c901e6128c5d01a32b71d4436443612c04622935b"}, {"path": "real/hosts/ai_human_quick.py", "sha256": "4edc1d36bc613d908aa0d545c59c53fc6d6851a72d22eb5750bdaddedfac7546"}, {"path": "real/hosts/ai_human_tree.py", "sha256": "18d8ff6ef13493e184a4875812451f3ec6ff793dae0e2bff5c517edaaddadfee"}, {"path": "real/hosts/biology.py", "sha256": "4c49e68562c54134207a363dbce60ba854ace7f34f5f89ddcaa373975015ca72"}, {"path": "real/hosts/biology_landing_check.py", "sha256": "1a3a37bf6dc244aead3f5a55e40bb8df0f38c50321b57587ceb23e5c9282a101"}, {"path": "real/hosts/biology_quick.py", "sha256": "4bb933812937e97ae682e51cb4a92d54eb665b6e2b70e20a1bba25822ead67ab"}, {"path": "real/hosts/economics.py", "sha256": "2e4dd0ea882fd955317cb1e59bf1f4564e7c6070fa3a3d1e13e2748d28443ae5"}, {"path": "real/hosts/economics_fetch.py", "sha256": "ff97f76fd5adb18010b6163bfb94a571b051ecca17f436c9642c80939c451f31"}, {"path": "real/hosts/economics_quick.py", "sha256": "405cd86825ada90722f237db9296d730a131529b1e3cceb3fd7b43168cf6d4ab"}, {"path": "real/hosts/energy.py", "sha256": "4ca6148de61ed57e4c2bc1b3e071708742d4808d59a4366b51d6f4b56ae87c0b"}, {"path": "real/hosts/energy_fetch.py", "sha256": "5ebd484a6452f68fd6a55cf1c0809663d85d6e7093f2d08870c9b490db6ffcfd"}, {"path": "real/hosts/energy_quick.py", "sha256": "5ffe8cb035bfc7ee139206a24459e78bcdd15564f4b1b34c6097916f767ecf84"}, {"path": "real/hosts/llm_bounded.py", "sha256": "53d9f24c262a3f428a33b1a738def924b7d94d5f360535971845ffb6d1f9ed91"}, {"path": "real/hosts/neuro.py", "sha256": "0d19948caea9a24ab4b884f6c5a98099bfd6480115d326ad40c547239e8a4d00"}, {"path": "real/hosts/neuro_fetch.py", "sha256": "0de6440a836dbf47d0f9764f871fd715333e2a677a66a0d66ba1f0e1a909a954"}, {"path": "real/hosts/neuro_quick.py", "sha256": "ed2e62408edeef20aba313517f591aaaac28cd637e5916415a7368337b7018a5"}, {"path": "real/hosts/quantum.py", "sha256": "fda9d7692eb006034d27a0a3629d83c02e6b43960408e4028caa1ba0c155f4d4"}, {"path": "real/hosts/quantum_quick.py", "sha256": "33b46e46c41452bcbd5bd963a17270896d2d886982121a9f251c22384db5b673"}, {"path": "real/hosts/robotics.py", "sha256": "552ce00d657180bcdd4886f0eb6999d71270c6c0a2a75cf1238a10ff8251fd38"}, {"path": "real/hosts/robotics_quick.py", "sha256": "38d857a0d2ca804b714a240055262a3b5be4e4f196c8be944657594db006edc8"}, {"path": "real/hosts/space.py", "sha256": "9f5746726dce81e2df2c00008c245bbe5a2599a78c0bec97178ea9c8df630264"}, {"path": "real/hosts/space_fetch.py", "sha256": "1e9757ec1ccd228308bcb913a65a173e5d461f250c21cf8d9aa9abdb3891d870"}, {"path": "real/hosts/space_quick.py", "sha256": "8b23a3d1d3956cf2c46e04b63589db57e9f9e7d5eaca4960706cfd991fe95d7e"}, {"path": "cloud/real3_unit.py", "sha256": "1765985482890091c96d6985bb483dec20a1f63b61e92681dee8b9d6104ed177"}, {"path": "real/analyze_real3.py", "sha256": "7ca64ecc1ec7dbe0ae4f9ce8c1bd7674b80cb782905d4e573a8f5aa03cbf8b8d"}, {"path": "real/PREREG_REAL3.md", "sha256": "5d21f43e0faba1b91ad0acc47b996a8ceec0b705cffa91a0df0f85b82e9a4026"}, {"path": ".github/workflows/rsos_real3_s1.yml", "sha256": "f056160c7e1ac80cdef9ec6c835cf83ba334db7da4b7a1cb5ffa77a55c9d3639"}, {"path": ".github/workflows/rsos_real3_s2.yml", "sha256": "0398d1965e4a3fe207859e45f12d6dd6ad5e5949ba43a92a7f974819c200960c"}], "seal_file": "real/SEAL_REAL3.txt", "sealed_at": "2026-11-25T02:55:12Z"}, "title": "REAL3: one shared selector across ten real domains", "type": "claim"}, "seq": 0}
2
+ {"entry_hash": "bf0002f1c77312a76ffa87b57bc007f6dba03ae73d8459856526c933edc5e145", "prev": "5b273bfadd6f4c0a81f995271e044cf263535d4e6a0bd94e683e79b9a3249a6f", "record": {"consent_harm": {"harm_reports": [], "personal_data": false}, "declarations": {"affects_people": false, "note": "AI, data and simulated hosts; no living participants", "predicted_harm": 0, "serves_mission": true}, "evidence": "both", "id": "0bafcabb63f814c8b7756d968f575775d3f489baf6309d62299f809c200d920d", "lineage": {"parents": ["bc739fb1c0060a58f42861c5f70daa1903bc58746d42c6b4658544171bf7900d"], "source": "sealed research record"}, "outcome": {"criteria_met": "none", "result_files": [{"path": "real/results_cloud/struct1/RESULTS_STRUCT1.md", "sha256": "9057f3a80e87328fb0a7abbef70c522cff0c9d5cbdc068c97b5ccb20fcb643a6"}], "summary": "Not met in any of 5 rows: the bare structure matches plain rollout. The full seed replicated its gains on fresh cells."}, "prediction": {"criteria": "At least 4 of 5 rows pass both tests at Holm p < 1e-5 (PREREG_STRUCT1.md)"}, "purpose": "With every domain-written lever off, does the general structure beat plain rollout?", "rsc": "1.2", "run": {"run_id": "45596832492", "started_at": "2026-11-25T10:37:57Z", "where": "GitHub Actions, r-a-elu-architecture/RSOS-Multimodal-World"}, "seal": {"commit": "925abf5569601a22630696ea832af64cdcd3923d", "files": [{"path": "real/seed.py", "sha256": "51813143cfbeec90aff64b55afd1ea41df156c6f837f8d27b5f333291ee4ce8b"}, {"path": "real/seed3.py", "sha256": "472845a35c7e72e1d704a01b3a4de90019a3a212f44d81d841a227865f62838f"}, {"path": "real/seed3_ops.py", "sha256": "d846d20461a77e7f046b5bb978b1a86d853d4e678bf2909a17f838805c71d70c"}, {"path": "real/hosts/ai_agents.py", "sha256": "83a346ba88af30447b8556c2dd7f56068a32c45b3ace2f8b8d402ad7925b4594"}, {"path": "real/hosts/ai_agents_blind.py", "sha256": "18209eeb1bfb761838632fe673e949cdb61f5cd193f669cbe7a594dc481a713c"}, {"path": "real/hosts/ai_agents_quick.py", "sha256": "e798d8288c5f3293b4bc1710189ef4a1419109509a8242f6d4608f54b05e7fcf"}, {"path": "real/hosts/ai_agents_tree.py", "sha256": "1f3b8cec16f496c658215adb8c6ffd077ac968d7d6f0668d57bcd38279819d49"}, {"path": "real/hosts/ai_ai.py", "sha256": "6182df0838c1a1ccfa20d651c8ab3c2736186795d7e007da269cbb7163d200db"}, {"path": "real/hosts/ai_ai_quick.py", "sha256": "f2347e02b22bc4fe7cb742ff9c31b08c245cf78044900237371f04769dfc035e"}, {"path": "real/hosts/ai_human.py", "sha256": "af82fe72582647c83bddda0037b53d7f1248886f8aee281425c71e422d45d225"}, {"path": "real/hosts/ai_human_fetch.py", "sha256": "f89f62f46fde7eac08f6507c901e6128c5d01a32b71d4436443612c04622935b"}, {"path": "real/hosts/ai_human_quick.py", "sha256": "4edc1d36bc613d908aa0d545c59c53fc6d6851a72d22eb5750bdaddedfac7546"}, {"path": "real/hosts/ai_human_tree.py", "sha256": "18d8ff6ef13493e184a4875812451f3ec6ff793dae0e2bff5c517edaaddadfee"}, {"path": "real/hosts/biology.py", "sha256": "4c49e68562c54134207a363dbce60ba854ace7f34f5f89ddcaa373975015ca72"}, {"path": "real/hosts/biology_landing_check.py", "sha256": "1a3a37bf6dc244aead3f5a55e40bb8df0f38c50321b57587ceb23e5c9282a101"}, {"path": "real/hosts/biology_quick.py", "sha256": "4bb933812937e97ae682e51cb4a92d54eb665b6e2b70e20a1bba25822ead67ab"}, {"path": "real/hosts/economics.py", "sha256": "2e4dd0ea882fd955317cb1e59bf1f4564e7c6070fa3a3d1e13e2748d28443ae5"}, {"path": "real/hosts/economics_fetch.py", "sha256": "ff97f76fd5adb18010b6163bfb94a571b051ecca17f436c9642c80939c451f31"}, {"path": "real/hosts/economics_quick.py", "sha256": "405cd86825ada90722f237db9296d730a131529b1e3cceb3fd7b43168cf6d4ab"}, {"path": "real/hosts/energy.py", "sha256": "4ca6148de61ed57e4c2bc1b3e071708742d4808d59a4366b51d6f4b56ae87c0b"}, {"path": "real/hosts/energy_fetch.py", "sha256": "5ebd484a6452f68fd6a55cf1c0809663d85d6e7093f2d08870c9b490db6ffcfd"}, {"path": "real/hosts/energy_quick.py", "sha256": "5ffe8cb035bfc7ee139206a24459e78bcdd15564f4b1b34c6097916f767ecf84"}, {"path": "real/hosts/llm_bounded.py", "sha256": "53d9f24c262a3f428a33b1a738def924b7d94d5f360535971845ffb6d1f9ed91"}, {"path": "real/hosts/neuro.py", "sha256": "0d19948caea9a24ab4b884f6c5a98099bfd6480115d326ad40c547239e8a4d00"}, {"path": "real/hosts/neuro_fetch.py", "sha256": "0de6440a836dbf47d0f9764f871fd715333e2a677a66a0d66ba1f0e1a909a954"}, {"path": "real/hosts/neuro_quick.py", "sha256": "ed2e62408edeef20aba313517f591aaaac28cd637e5916415a7368337b7018a5"}, {"path": "real/hosts/quantum.py", "sha256": "fda9d7692eb006034d27a0a3629d83c02e6b43960408e4028caa1ba0c155f4d4"}, {"path": "real/hosts/quantum_quick.py", "sha256": "33b46e46c41452bcbd5bd963a17270896d2d886982121a9f251c22384db5b673"}, {"path": "real/hosts/robotics.py", "sha256": "552ce00d657180bcdd4886f0eb6999d71270c6c0a2a75cf1238a10ff8251fd38"}, {"path": "real/hosts/robotics_quick.py", "sha256": "38d857a0d2ca804b714a240055262a3b5be4e4f196c8be944657594db006edc8"}, {"path": "real/hosts/space.py", "sha256": "9f5746726dce81e2df2c00008c245bbe5a2599a78c0bec97178ea9c8df630264"}, {"path": "real/hosts/space_fetch.py", "sha256": "1e9757ec1ccd228308bcb913a65a173e5d461f250c21cf8d9aa9abdb3891d870"}, {"path": "real/hosts/space_quick.py", "sha256": "8b23a3d1d3956cf2c46e04b63589db57e9f9e7d5eaca4960706cfd991fe95d7e"}, {"path": "cloud/real3_unit.py", "sha256": "1765985482890091c96d6985bb483dec20a1f63b61e92681dee8b9d6104ed177"}, {"path": "real/analyze_real3.py", "sha256": "7ca64ecc1ec7dbe0ae4f9ce8c1bd7674b80cb782905d4e573a8f5aa03cbf8b8d"}, {"path": "real/PREREG_REAL3.md", "sha256": "5d21f43e0faba1b91ad0acc47b996a8ceec0b705cffa91a0df0f85b82e9a4026"}, {"path": ".github/workflows/rsos_real3_s1.yml", "sha256": "f056160c7e1ac80cdef9ec6c835cf83ba334db7da4b7a1cb5ffa77a55c9d3639"}, {"path": ".github/workflows/rsos_real3_s2.yml", "sha256": "0398d1965e4a3fe207859e45f12d6dd6ad5e5949ba43a92a7f974819c200960c"}, {"path": "real/PREREG_REAL3_FIX1.md", "sha256": "a9a4de4953ca25db88a113e962cbdbcea2b3ae41b262d64f675fa31750ed7cae"}, {"path": "cloud/real3_unit_fix1.py", "sha256": "589e4cca2e7ce091c0ccbb09eb11702617471bb3d637a3444d129f48c4a78928"}, {"path": "cloud/struct1_unit.py", "sha256": "698daa28f2ee693d7ac592fcaf16157b356b5cee9dd408c7aa6b109350675896"}, {"path": "real/analyze_struct1.py", "sha256": "367ee014c053c4bcd16a4a25b4243314e819404e3c5e3753cc0ec71d97300bc1"}, {"path": "real/PREREG_STRUCT1.md", "sha256": "64bbc2b8af28420a299eb074e00f3b44ecfff714bff3efbce29517e63f0b5592"}, {"path": ".github/workflows/rsos_struct1.yml", "sha256": "e914703af405d1a0dcba43e444b6598899c0e62a3fec0ca97a735b56e649d06f"}, {"path": "experiments/agents/tasks.py", "sha256": "c07ff0610d3d525ebe1582ccc10ce871f43fba315a927789479c7cd96f30fcd1"}, {"path": "experiments/agents/agent.py", "sha256": "53397a85fcd8bd6c47591e60feb5b3e72132b4f9d276965153489292d9376f33"}, {"path": "experiments/agents/llm.py", "sha256": "716c301847ab4674f1735edde360a3ddb6cb98b8412e18a6b8b9fcbdc7c7fe9f"}, {"path": "real/hosts/data/ai_agents_tree.json", "sha256": "3f7b1afafbfe1ff766e1e4d4eae3ca60472471f84306e081325d6d64499044d2"}, {"path": "real/hosts/data/household_load_uci_hourly.csv", "sha256": "7195b2765721906d8a90db861eb8224e6531d3ea22e7657cf9f738b4ff00140a"}, {"path": "real/hosts/data/topical_chat/.gitignore", "sha256": "240a3e0d37d2e86b614063f5347eb02d4f99ca6c254de6b82871ff8d95532a7d"}, {"path": "real/hosts/data/walmart_sales_weekly.csv", "sha256": "4d7b1a97a1605b07f0c51c39127d2131da01febcba04168ded49f0c1d0747123"}], "seal_file": "real/SEAL_STRUCT1.txt", "sealed_at": "2026-11-25T10:37:43Z"}, "title": "STRUCT1: the structure alone vs plain rollout", "type": "claim"}, "seq": 1}
3
+ {"entry_hash": "09982d823bf784a07b6ae23305fb14b0aa909133e1090884b41b788cf0ed3dec", "prev": "bf0002f1c77312a76ffa87b57bc007f6dba03ae73d8459856526c933edc5e145", "record": {"consent_harm": {"harm_reports": [], "personal_data": false}, "declarations": {"affects_people": false, "note": "AI, data and simulated hosts; no living participants", "predicted_harm": 0, "serves_mission": true}, "evidence": "both", "id": "606476c33bee6ec881257fc02579107ff5217caa688c3ae00a710b9a85b05ce0", "lineage": {"parents": ["0bafcabb63f814c8b7756d968f575775d3f489baf6309d62299f809c200d920d"], "source": "sealed research record"}, "outcome": {"criteria_met": "all", "result_files": [{"path": "real/RESULTS_CONF1.md", "sha256": "00862af176aba7c31f8331027635d7dbad778c224e7d6c7db3b3cded645a3bde"}], "summary": "AI agents 58-69 % fewer tokens with higher accuracy (p 8.5e-11, 5.5e-27); AI-human 42 % (4.9e-21); inventory +1.42 %, 12/12 (1.1e-9); satellite +1.67 %, 12/12 (1.4e-9). Satellite re-ran on frozen orbit data after CelesTrak returned HTTP 503 (FIX1)."}, "prediction": {"criteria": "All 4 domains at Holm p < 1e-5, every used lever traced (PREREG_CONF1.md, FIX1 addendum)"}, "purpose": "Does the full seed beat each domain's standard on fresh cells, with every lever traced to an RSOS operator?", "rsc": "1.2", "run": {"run_id": "45615498047", "started_at": "2026-11-25T12:37:13Z", "where": "GitHub Actions, r-a-elu-architecture/RSOS-Multimodal-World"}, "seal": {"commit": "63c7bdeac51f57510af8d3fe51cfa59eda6cb120", "files": [{"path": "real/seed.py", "sha256": "51813143cfbeec90aff64b55afd1ea41df156c6f837f8d27b5f333291ee4ce8b"}, {"path": "real/seed3.py", "sha256": "472845a35c7e72e1d704a01b3a4de90019a3a212f44d81d841a227865f62838f"}, {"path": "real/seed3_ops.py", "sha256": "d846d20461a77e7f046b5bb978b1a86d853d4e678bf2909a17f838805c71d70c"}, {"path": "real/hosts/ai_agents.py", "sha256": "83a346ba88af30447b8556c2dd7f56068a32c45b3ace2f8b8d402ad7925b4594"}, {"path": "real/hosts/ai_agents_blind.py", "sha256": "18209eeb1bfb761838632fe673e949cdb61f5cd193f669cbe7a594dc481a713c"}, {"path": "real/hosts/ai_agents_quick.py", "sha256": "e798d8288c5f3293b4bc1710189ef4a1419109509a8242f6d4608f54b05e7fcf"}, {"path": "real/hosts/ai_agents_tree.py", "sha256": "1f3b8cec16f496c658215adb8c6ffd077ac968d7d6f0668d57bcd38279819d49"}, {"path": "real/hosts/ai_ai.py", "sha256": "6182df0838c1a1ccfa20d651c8ab3c2736186795d7e007da269cbb7163d200db"}, {"path": "real/hosts/ai_ai_quick.py", "sha256": "f2347e02b22bc4fe7cb742ff9c31b08c245cf78044900237371f04769dfc035e"}, {"path": "real/hosts/ai_human.py", "sha256": "af82fe72582647c83bddda0037b53d7f1248886f8aee281425c71e422d45d225"}, {"path": "real/hosts/ai_human_fetch.py", "sha256": "f89f62f46fde7eac08f6507c901e6128c5d01a32b71d4436443612c04622935b"}, {"path": "real/hosts/ai_human_quick.py", "sha256": "4edc1d36bc613d908aa0d545c59c53fc6d6851a72d22eb5750bdaddedfac7546"}, {"path": "real/hosts/ai_human_tree.py", "sha256": "18d8ff6ef13493e184a4875812451f3ec6ff793dae0e2bff5c517edaaddadfee"}, {"path": "real/hosts/biology.py", "sha256": "4c49e68562c54134207a363dbce60ba854ace7f34f5f89ddcaa373975015ca72"}, {"path": "real/hosts/biology_landing_check.py", "sha256": "1a3a37bf6dc244aead3f5a55e40bb8df0f38c50321b57587ceb23e5c9282a101"}, {"path": "real/hosts/biology_quick.py", "sha256": "4bb933812937e97ae682e51cb4a92d54eb665b6e2b70e20a1bba25822ead67ab"}, {"path": "real/hosts/economics.py", "sha256": "2e4dd0ea882fd955317cb1e59bf1f4564e7c6070fa3a3d1e13e2748d28443ae5"}, {"path": "real/hosts/economics_fetch.py", "sha256": "ff97f76fd5adb18010b6163bfb94a571b051ecca17f436c9642c80939c451f31"}, {"path": "real/hosts/economics_quick.py", "sha256": "405cd86825ada90722f237db9296d730a131529b1e3cceb3fd7b43168cf6d4ab"}, {"path": "real/hosts/energy.py", "sha256": "4ca6148de61ed57e4c2bc1b3e071708742d4808d59a4366b51d6f4b56ae87c0b"}, {"path": "real/hosts/energy_fetch.py", "sha256": "5ebd484a6452f68fd6a55cf1c0809663d85d6e7093f2d08870c9b490db6ffcfd"}, {"path": "real/hosts/energy_quick.py", "sha256": "5ffe8cb035bfc7ee139206a24459e78bcdd15564f4b1b34c6097916f767ecf84"}, {"path": "real/hosts/llm_bounded.py", "sha256": "53d9f24c262a3f428a33b1a738def924b7d94d5f360535971845ffb6d1f9ed91"}, {"path": "real/hosts/neuro.py", "sha256": "0d19948caea9a24ab4b884f6c5a98099bfd6480115d326ad40c547239e8a4d00"}, {"path": "real/hosts/neuro_fetch.py", "sha256": "0de6440a836dbf47d0f9764f871fd715333e2a677a66a0d66ba1f0e1a909a954"}, {"path": "real/hosts/neuro_quick.py", "sha256": "ed2e62408edeef20aba313517f591aaaac28cd637e5916415a7368337b7018a5"}, {"path": "real/hosts/quantum.py", "sha256": "fda9d7692eb006034d27a0a3629d83c02e6b43960408e4028caa1ba0c155f4d4"}, {"path": "real/hosts/quantum_quick.py", "sha256": "33b46e46c41452bcbd5bd963a17270896d2d886982121a9f251c22384db5b673"}, {"path": "real/hosts/robotics.py", "sha256": "552ce00d657180bcdd4886f0eb6999d71270c6c0a2a75cf1238a10ff8251fd38"}, {"path": "real/hosts/robotics_quick.py", "sha256": "38d857a0d2ca804b714a240055262a3b5be4e4f196c8be944657594db006edc8"}, {"path": "real/hosts/space.py", "sha256": "9f5746726dce81e2df2c00008c245bbe5a2599a78c0bec97178ea9c8df630264"}, {"path": "real/hosts/space_fetch.py", "sha256": "1e9757ec1ccd228308bcb913a65a173e5d461f250c21cf8d9aa9abdb3891d870"}, {"path": "real/hosts/space_quick.py", "sha256": "8b23a3d1d3956cf2c46e04b63589db57e9f9e7d5eaca4960706cfd991fe95d7e"}, {"path": "cloud/real3_unit.py", "sha256": "1765985482890091c96d6985bb483dec20a1f63b61e92681dee8b9d6104ed177"}, {"path": "real/analyze_real3.py", "sha256": "7ca64ecc1ec7dbe0ae4f9ce8c1bd7674b80cb782905d4e573a8f5aa03cbf8b8d"}, {"path": "real/PREREG_REAL3.md", "sha256": "5d21f43e0faba1b91ad0acc47b996a8ceec0b705cffa91a0df0f85b82e9a4026"}, {"path": ".github/workflows/rsos_real3_s1.yml", "sha256": "f056160c7e1ac80cdef9ec6c835cf83ba334db7da4b7a1cb5ffa77a55c9d3639"}, {"path": ".github/workflows/rsos_real3_s2.yml", "sha256": "0398d1965e4a3fe207859e45f12d6dd6ad5e5949ba43a92a7f974819c200960c"}, {"path": "real/PREREG_REAL3_FIX1.md", "sha256": "a9a4de4953ca25db88a113e962cbdbcea2b3ae41b262d64f675fa31750ed7cae"}, {"path": "cloud/real3_unit_fix1.py", "sha256": "589e4cca2e7ce091c0ccbb09eb11702617471bb3d637a3444d129f48c4a78928"}, {"path": "real/PREREG_CONF1.md", "sha256": "454b62253ca073483cf771219221cb102515ccb3b5488623447aa9598241bea2"}, {"path": "cloud/conf1_unit.py", "sha256": "5d678c07e35a17e74ad6e4a7d239b696fbd39caa32502e47780651cff94d0b1f"}, {"path": "real/analyze_conf1.py", "sha256": "995dc2f608e56dbf47e84a80197237630b8a50d4084387db371af7388955832b"}, {"path": ".github/workflows/rsos_conf1_space.yml", "sha256": "d584cce3cf690a454bbde5d3b77b883316f7189b9cdc2c15d346cc45d63ac298"}, {"path": ".github/workflows/rsos_conf1_ai.yml", "sha256": "3be2787cbbd2607bae19f3a3afa7b5e7591a5ff3442f28b07e0022174e952e55"}, {"path": "experiments/agents/tasks.py", "sha256": "c07ff0610d3d525ebe1582ccc10ce871f43fba315a927789479c7cd96f30fcd1"}, {"path": "experiments/agents/agent.py", "sha256": "53397a85fcd8bd6c47591e60feb5b3e72132b4f9d276965153489292d9376f33"}, {"path": "experiments/agents/llm.py", "sha256": "716c301847ab4674f1735edde360a3ddb6cb98b8412e18a6b8b9fcbdc7c7fe9f"}, {"path": "real/hosts/data/ai_agents_tree.json", "sha256": "3f7b1afafbfe1ff766e1e4d4eae3ca60472471f84306e081325d6d64499044d2"}, {"path": "real/hosts/data/household_load_uci_hourly.csv", "sha256": "7195b2765721906d8a90db861eb8224e6531d3ea22e7657cf9f738b4ff00140a"}, {"path": "real/hosts/data/topical_chat/.gitignore", "sha256": "240a3e0d37d2e86b614063f5347eb02d4f99ca6c254de6b82871ff8d95532a7d"}, {"path": "real/hosts/data/walmart_sales_weekly.csv", "sha256": "4d7b1a97a1605b07f0c51c39127d2131da01febcba04168ded49f0c1d0747123"}], "seal_file": "real/SEAL_CONF1_A.txt", "sealed_at": "2026-11-25T12:19:24Z"}, "title": "CONF1: the full seed vs the standard in four domains", "type": "claim"}, "seq": 2}
4
+ {"entry_hash": "00748bded258c89dec6291990ced1f13363d133e69745a45ed4c2387c3aa2a99", "prev": "09982d823bf784a07b6ae23305fb14b0aa909133e1090884b41b788cf0ed3dec", "record": {"consent_harm": {"harm_reports": [], "personal_data": false}, "declarations": {"affects_people": false, "note": "AI, data and simulated hosts; no living participants", "predicted_harm": 0, "serves_mission": true}, "evidence": "both", "id": "1b391c9195388b0922b412266c41f6e219d0630ad754f837b499377a6711cbea", "lineage": {"parents": ["606476c33bee6ec881257fc02579107ff5217caa688c3ae00a710b9a85b05ce0"], "source": "sealed research record"}, "outcome": {"criteria_met": "partly", "result_files": [{"path": "real/RESULTS_CONF2.md", "sha256": "ff8bd9a31955d093523f799d274e96ac2fad9f6bb541063b9fd0e277e0437388"}], "summary": "Claim 1 met in 4 of 5 rows, claim 2 in 2 of 3, claim 3 in none (one-move-per-operator was a drift from the RSOS grammar, corrected in CONF3)."}, "prediction": {"criteria": "Claim 1: 5 rows at Holm p < 1e-5; claim 2: 3 AI rows at p < 1e-7 with equal or better result; claim 3: generated moves beat the standard in 4 rows (PREREG_CONF2.md)"}, "purpose": "Three claims on fresh cells, sealed separately from CONF1.", "rsc": "1.2", "run": {"run_id": "45615652848", "started_at": "2026-11-25T12:38:11Z", "where": "GitHub Actions, r-a-elu-architecture/RSOS-Multimodal-World"}, "seal": {"commit": "970f5b7de7e0c8583748b81fee1a3fd0545d14bc", "files": [{"path": "real/seed.py", "sha256": "51813143cfbeec90aff64b55afd1ea41df156c6f837f8d27b5f333291ee4ce8b"}, {"path": "real/seed3.py", "sha256": "472845a35c7e72e1d704a01b3a4de90019a3a212f44d81d841a227865f62838f"}, {"path": "real/seed3_ops.py", "sha256": "d846d20461a77e7f046b5bb978b1a86d853d4e678bf2909a17f838805c71d70c"}, {"path": "real/hosts/ai_agents.py", "sha256": "83a346ba88af30447b8556c2dd7f56068a32c45b3ace2f8b8d402ad7925b4594"}, {"path": "real/hosts/ai_agents_blind.py", "sha256": "18209eeb1bfb761838632fe673e949cdb61f5cd193f669cbe7a594dc481a713c"}, {"path": "real/hosts/ai_agents_quick.py", "sha256": "e798d8288c5f3293b4bc1710189ef4a1419109509a8242f6d4608f54b05e7fcf"}, {"path": "real/hosts/ai_agents_tree.py", "sha256": "1f3b8cec16f496c658215adb8c6ffd077ac968d7d6f0668d57bcd38279819d49"}, {"path": "real/hosts/ai_ai.py", "sha256": "6182df0838c1a1ccfa20d651c8ab3c2736186795d7e007da269cbb7163d200db"}, {"path": "real/hosts/ai_ai_quick.py", "sha256": "f2347e02b22bc4fe7cb742ff9c31b08c245cf78044900237371f04769dfc035e"}, {"path": "real/hosts/ai_human.py", "sha256": "af82fe72582647c83bddda0037b53d7f1248886f8aee281425c71e422d45d225"}, {"path": "real/hosts/ai_human_fetch.py", "sha256": "f89f62f46fde7eac08f6507c901e6128c5d01a32b71d4436443612c04622935b"}, {"path": "real/hosts/ai_human_quick.py", "sha256": "4edc1d36bc613d908aa0d545c59c53fc6d6851a72d22eb5750bdaddedfac7546"}, {"path": "real/hosts/ai_human_tree.py", "sha256": "18d8ff6ef13493e184a4875812451f3ec6ff793dae0e2bff5c517edaaddadfee"}, {"path": "real/hosts/biology.py", "sha256": "4c49e68562c54134207a363dbce60ba854ace7f34f5f89ddcaa373975015ca72"}, {"path": "real/hosts/biology_landing_check.py", "sha256": "1a3a37bf6dc244aead3f5a55e40bb8df0f38c50321b57587ceb23e5c9282a101"}, {"path": "real/hosts/biology_quick.py", "sha256": "4bb933812937e97ae682e51cb4a92d54eb665b6e2b70e20a1bba25822ead67ab"}, {"path": "real/hosts/economics.py", "sha256": "2e4dd0ea882fd955317cb1e59bf1f4564e7c6070fa3a3d1e13e2748d28443ae5"}, {"path": "real/hosts/economics_fetch.py", "sha256": "ff97f76fd5adb18010b6163bfb94a571b051ecca17f436c9642c80939c451f31"}, {"path": "real/hosts/economics_quick.py", "sha256": "405cd86825ada90722f237db9296d730a131529b1e3cceb3fd7b43168cf6d4ab"}, {"path": "real/hosts/energy.py", "sha256": "4ca6148de61ed57e4c2bc1b3e071708742d4808d59a4366b51d6f4b56ae87c0b"}, {"path": "real/hosts/energy_fetch.py", "sha256": "5ebd484a6452f68fd6a55cf1c0809663d85d6e7093f2d08870c9b490db6ffcfd"}, {"path": "real/hosts/energy_quick.py", "sha256": "5ffe8cb035bfc7ee139206a24459e78bcdd15564f4b1b34c6097916f767ecf84"}, {"path": "real/hosts/llm_bounded.py", "sha256": "53d9f24c262a3f428a33b1a738def924b7d94d5f360535971845ffb6d1f9ed91"}, {"path": "real/hosts/neuro.py", "sha256": "0d19948caea9a24ab4b884f6c5a98099bfd6480115d326ad40c547239e8a4d00"}, {"path": "real/hosts/neuro_fetch.py", "sha256": "0de6440a836dbf47d0f9764f871fd715333e2a677a66a0d66ba1f0e1a909a954"}, {"path": "real/hosts/neuro_quick.py", "sha256": "ed2e62408edeef20aba313517f591aaaac28cd637e5916415a7368337b7018a5"}, {"path": "real/hosts/quantum.py", "sha256": "fda9d7692eb006034d27a0a3629d83c02e6b43960408e4028caa1ba0c155f4d4"}, {"path": "real/hosts/quantum_quick.py", "sha256": "33b46e46c41452bcbd5bd963a17270896d2d886982121a9f251c22384db5b673"}, {"path": "real/hosts/robotics.py", "sha256": "552ce00d657180bcdd4886f0eb6999d71270c6c0a2a75cf1238a10ff8251fd38"}, {"path": "real/hosts/robotics_quick.py", "sha256": "38d857a0d2ca804b714a240055262a3b5be4e4f196c8be944657594db006edc8"}, {"path": "real/hosts/space.py", "sha256": "9f5746726dce81e2df2c00008c245bbe5a2599a78c0bec97178ea9c8df630264"}, {"path": "real/hosts/space_fetch.py", "sha256": "1e9757ec1ccd228308bcb913a65a173e5d461f250c21cf8d9aa9abdb3891d870"}, {"path": "real/hosts/space_quick.py", "sha256": "8b23a3d1d3956cf2c46e04b63589db57e9f9e7d5eaca4960706cfd991fe95d7e"}, {"path": "cloud/real3_unit.py", "sha256": "1765985482890091c96d6985bb483dec20a1f63b61e92681dee8b9d6104ed177"}, {"path": "real/analyze_real3.py", "sha256": "7ca64ecc1ec7dbe0ae4f9ce8c1bd7674b80cb782905d4e573a8f5aa03cbf8b8d"}, {"path": "real/PREREG_REAL3.md", "sha256": "5d21f43e0faba1b91ad0acc47b996a8ceec0b705cffa91a0df0f85b82e9a4026"}, {"path": ".github/workflows/rsos_real3_s1.yml", "sha256": "f056160c7e1ac80cdef9ec6c835cf83ba334db7da4b7a1cb5ffa77a55c9d3639"}, {"path": ".github/workflows/rsos_real3_s2.yml", "sha256": "0398d1965e4a3fe207859e45f12d6dd6ad5e5949ba43a92a7f974819c200960c"}, {"path": "real/PREREG_REAL3_FIX1.md", "sha256": "a9a4de4953ca25db88a113e962cbdbcea2b3ae41b262d64f675fa31750ed7cae"}, {"path": "cloud/real3_unit_fix1.py", "sha256": "589e4cca2e7ce091c0ccbb09eb11702617471bb3d637a3444d129f48c4a78928"}, {"path": "real/PREREG_CONF2.md", "sha256": "0144ea6738db5df84c47082469847d41e84713cf447e168cc83e6411fd711011"}, {"path": "cloud/conf2_unit.py", "sha256": "946847f45bc46cacfc7b7a2350c64a0d24491a8318d7f84404eb2dd2bb156898"}, {"path": "real/analyze_conf2.py", "sha256": "07867e73ff959d5e9823c7cb44a93db0b3f150e66cd79b2ab672d272e047f6ea"}, {"path": ".github/workflows/rsos_conf2.yml", "sha256": "ac6c4ff5e195f17f68ecd02b43df1c06ff5eb0768e1c1f0862ca670db46b924e"}, {"path": "real/generated/ai_ai_moves.py", "sha256": "d80ed374ad8fa813dabca2b4e09751fb62a1e31f64dc0c9c78d219e63c40a523"}, {"path": "real/generated/space_moves.py", "sha256": "a9d62a447759dd8535c36f4be79da0dc4df789255dd4b8b3b1ae81f069cc665f"}, {"path": "real/generated/ai_agents_moves.py", "sha256": "f3cfd6ae42bed78610e5bbe1dadf47a25adb5f3eb9dcf56d72ca33278546ce1d"}, {"path": "real/generated/ai_human_moves.py", "sha256": "3f99c201d1fa4cd03aac6865fb554f677d658c1788ab50e1f0da48cb446f00b5"}, {"path": "real/hosts/data/space_tle_frozen.txt", "sha256": "adc60fc7d0d46ae11c1330e1d09a78a00ac29b6701551720ae418f2cc9bfe037"}, {"path": "real/hosts/data/space_tle_frozen.meta.json", "sha256": "15f0bae61ce2f33c895c335c94bdeff1bba7075aa751c6f6cce4b0c705663fb5"}, {"path": "real/SEAL_CONF1_A.txt", "sha256": "5fa27662dc01dca097ccc9ede09aa5e91c1715ef14cb216c664240bbd9d221dc"}, {"path": "real/SEAL_CONF1_B.txt", "sha256": "58d6ee1b260b4e13d317cd7f046a57fd682ccab066f4ee8da52e1f9fc005276a"}, {"path": "real/SEAL_CONF1_FIX1.txt", "sha256": "630b32f1e3301885a3db0b9a929e5e82923d370e00c47e2a0a9d7738704fd63d"}, {"path": "experiments/agents/llm.py", "sha256": "716c301847ab4674f1735edde360a3ddb6cb98b8412e18a6b8b9fcbdc7c7fe9f"}, {"path": "real/hosts/data/ai_agents_tree.json", "sha256": "3f7b1afafbfe1ff766e1e4d4eae3ca60472471f84306e081325d6d64499044d2"}, {"path": "real/hosts/data/household_load_uci_hourly.csv", "sha256": "7195b2765721906d8a90db861eb8224e6531d3ea22e7657cf9f738b4ff00140a"}, {"path": "real/hosts/data/topical_chat/.gitignore", "sha256": "240a3e0d37d2e86b614063f5347eb02d4f99ca6c254de6b82871ff8d95532a7d"}, {"path": "real/hosts/data/walmart_sales_weekly.csv", "sha256": "4d7b1a97a1605b07f0c51c39127d2131da01febcba04168ded49f0c1d0747123"}], "seal_file": "real/SEAL_CONF2.txt", "sealed_at": "2026-11-25T12:37:49Z"}, "title": "CONF2: cross-domain seed, communication principle, one move per operator", "type": "claim"}, "seq": 3}
5
+ {"entry_hash": "d43f0ff3072330a4a2243eab718eb14fe43063c2c1854ab1a65e02c31bf44ca3", "prev": "00748bded258c89dec6291990ced1f13363d133e69745a45ed4c2387c3aa2a99", "record": {"consent_harm": {"harm_reports": [], "personal_data": false}, "declarations": {"affects_people": false, "note": "AI, data and simulated hosts; no living participants", "predicted_harm": 0, "serves_mission": true}, "evidence": "both", "id": "059c77a0bebd8a7be116d693dc9368cd4828d7354cb9e1bea9e53aa8dfea2fac", "lineage": {"parents": ["1b391c9195388b0922b412266c41f6e219d0630ad754f837b499377a6711cbea"], "source": "sealed research record"}, "outcome": {"criteria_met": "partly", "result_files": [{"path": "real/RESULTS_CONF3.md", "sha256": "a846a842692b072ca7c02b957f5bad1a45a0368bd7bc78253d8da9724416ed5c"}], "summary": "Claim 2 all met (25-61 % fewer tokens in 3 AI rows, p < 1e-7); claim 3 all met (3 of 4 rows: AI agents 45 %, AI-AI 27 %, satellite +1.01 % 22/23); claim 1 met in 4 of 5 rows. Satellite cell 706 timed out."}, "prediction": {"criteria": "Claim 1: 5 rows at Holm p < 1e-5; claim 2: 3 AI rows at p < 1e-7 with equal or better result; claim 3: composed moves beat the standard in at least 3 of 4 rows (PREREG_CONF3.md)"}, "purpose": "Higher-powered confirmation with a composed-operator arm.", "rsc": "1.2", "run": {"run_id": "45621782974", "started_at": "2026-11-25T13:15:47Z", "where": "GitHub Actions, r-a-elu-architecture/RSOS-Multimodal-World"}, "seal": {"commit": "eb2e6ea6812623a0e40476ce9125ae74a2834b40", "files": [{"path": "real/seed.py", "sha256": "51813143cfbeec90aff64b55afd1ea41df156c6f837f8d27b5f333291ee4ce8b"}, {"path": "real/seed3.py", "sha256": "472845a35c7e72e1d704a01b3a4de90019a3a212f44d81d841a227865f62838f"}, {"path": "real/seed3_ops.py", "sha256": "d846d20461a77e7f046b5bb978b1a86d853d4e678bf2909a17f838805c71d70c"}, {"path": "real/hosts/ai_agents.py", "sha256": "83a346ba88af30447b8556c2dd7f56068a32c45b3ace2f8b8d402ad7925b4594"}, {"path": "real/hosts/ai_agents_blind.py", "sha256": "18209eeb1bfb761838632fe673e949cdb61f5cd193f669cbe7a594dc481a713c"}, {"path": "real/hosts/ai_agents_quick.py", "sha256": "e798d8288c5f3293b4bc1710189ef4a1419109509a8242f6d4608f54b05e7fcf"}, {"path": "real/hosts/ai_agents_tree.py", "sha256": "1f3b8cec16f496c658215adb8c6ffd077ac968d7d6f0668d57bcd38279819d49"}, {"path": "real/hosts/ai_ai.py", "sha256": "6182df0838c1a1ccfa20d651c8ab3c2736186795d7e007da269cbb7163d200db"}, {"path": "real/hosts/ai_ai_quick.py", "sha256": "f2347e02b22bc4fe7cb742ff9c31b08c245cf78044900237371f04769dfc035e"}, {"path": "real/hosts/ai_human.py", "sha256": "af82fe72582647c83bddda0037b53d7f1248886f8aee281425c71e422d45d225"}, {"path": "real/hosts/ai_human_fetch.py", "sha256": "f89f62f46fde7eac08f6507c901e6128c5d01a32b71d4436443612c04622935b"}, {"path": "real/hosts/ai_human_quick.py", "sha256": "4edc1d36bc613d908aa0d545c59c53fc6d6851a72d22eb5750bdaddedfac7546"}, {"path": "real/hosts/ai_human_tree.py", "sha256": "18d8ff6ef13493e184a4875812451f3ec6ff793dae0e2bff5c517edaaddadfee"}, {"path": "real/hosts/biology.py", "sha256": "4c49e68562c54134207a363dbce60ba854ace7f34f5f89ddcaa373975015ca72"}, {"path": "real/hosts/biology_landing_check.py", "sha256": "1a3a37bf6dc244aead3f5a55e40bb8df0f38c50321b57587ceb23e5c9282a101"}, {"path": "real/hosts/biology_quick.py", "sha256": "4bb933812937e97ae682e51cb4a92d54eb665b6e2b70e20a1bba25822ead67ab"}, {"path": "real/hosts/economics.py", "sha256": "2e4dd0ea882fd955317cb1e59bf1f4564e7c6070fa3a3d1e13e2748d28443ae5"}, {"path": "real/hosts/economics_fetch.py", "sha256": "ff97f76fd5adb18010b6163bfb94a571b051ecca17f436c9642c80939c451f31"}, {"path": "real/hosts/economics_quick.py", "sha256": "405cd86825ada90722f237db9296d730a131529b1e3cceb3fd7b43168cf6d4ab"}, {"path": "real/hosts/energy.py", "sha256": "4ca6148de61ed57e4c2bc1b3e071708742d4808d59a4366b51d6f4b56ae87c0b"}, {"path": "real/hosts/energy_fetch.py", "sha256": "5ebd484a6452f68fd6a55cf1c0809663d85d6e7093f2d08870c9b490db6ffcfd"}, {"path": "real/hosts/energy_quick.py", "sha256": "5ffe8cb035bfc7ee139206a24459e78bcdd15564f4b1b34c6097916f767ecf84"}, {"path": "real/hosts/llm_bounded.py", "sha256": "53d9f24c262a3f428a33b1a738def924b7d94d5f360535971845ffb6d1f9ed91"}, {"path": "real/hosts/neuro.py", "sha256": "0d19948caea9a24ab4b884f6c5a98099bfd6480115d326ad40c547239e8a4d00"}, {"path": "real/hosts/neuro_fetch.py", "sha256": "0de6440a836dbf47d0f9764f871fd715333e2a677a66a0d66ba1f0e1a909a954"}, {"path": "real/hosts/neuro_quick.py", "sha256": "ed2e62408edeef20aba313517f591aaaac28cd637e5916415a7368337b7018a5"}, {"path": "real/hosts/quantum.py", "sha256": "fda9d7692eb006034d27a0a3629d83c02e6b43960408e4028caa1ba0c155f4d4"}, {"path": "real/hosts/quantum_quick.py", "sha256": "33b46e46c41452bcbd5bd963a17270896d2d886982121a9f251c22384db5b673"}, {"path": "real/hosts/robotics.py", "sha256": "552ce00d657180bcdd4886f0eb6999d71270c6c0a2a75cf1238a10ff8251fd38"}, {"path": "real/hosts/robotics_quick.py", "sha256": "38d857a0d2ca804b714a240055262a3b5be4e4f196c8be944657594db006edc8"}, {"path": "real/hosts/space.py", "sha256": "9f5746726dce81e2df2c00008c245bbe5a2599a78c0bec97178ea9c8df630264"}, {"path": "real/hosts/space_fetch.py", "sha256": "1e9757ec1ccd228308bcb913a65a173e5d461f250c21cf8d9aa9abdb3891d870"}, {"path": "real/hosts/space_quick.py", "sha256": "8b23a3d1d3956cf2c46e04b63589db57e9f9e7d5eaca4960706cfd991fe95d7e"}, {"path": "cloud/real3_unit.py", "sha256": "1765985482890091c96d6985bb483dec20a1f63b61e92681dee8b9d6104ed177"}, {"path": "real/analyze_real3.py", "sha256": "7ca64ecc1ec7dbe0ae4f9ce8c1bd7674b80cb782905d4e573a8f5aa03cbf8b8d"}, {"path": "real/PREREG_REAL3.md", "sha256": "5d21f43e0faba1b91ad0acc47b996a8ceec0b705cffa91a0df0f85b82e9a4026"}, {"path": ".github/workflows/rsos_real3_s1.yml", "sha256": "f056160c7e1ac80cdef9ec6c835cf83ba334db7da4b7a1cb5ffa77a55c9d3639"}, {"path": ".github/workflows/rsos_real3_s2.yml", "sha256": "0398d1965e4a3fe207859e45f12d6dd6ad5e5949ba43a92a7f974819c200960c"}, {"path": "real/PREREG_REAL3_FIX1.md", "sha256": "a9a4de4953ca25db88a113e962cbdbcea2b3ae41b262d64f675fa31750ed7cae"}, {"path": "cloud/real3_unit_fix1.py", "sha256": "589e4cca2e7ce091c0ccbb09eb11702617471bb3d637a3444d129f48c4a78928"}, {"path": "real/PREREG_CONF3.md", "sha256": "b3943c7787f7e28ba4615698c05dabc6a00184f56b1b5251421409c1a09a2d02"}, {"path": "cloud/conf3_unit.py", "sha256": "2128e79e249d3251e9c04da915c939206a83776a1833226e733ffd6172c38882"}, {"path": "real/analyze_conf3.py", "sha256": "611390be163c87c8d582885254b195631d38199c37ef33daa026f26d5845260a"}, {"path": ".github/workflows/rsos_conf3.yml", "sha256": "b3bcf4f05b1f939a2463604ec03399b449ea30e0415da8ddc341e55e2dc5c7bb"}, {"path": "real/composed/ai_agents_moves.py", "sha256": "103d5aa36c14e03807496266853707a29964f7c29a1664dd82dee3e23f3234ac"}, {"path": "real/composed/ai_human_moves.py", "sha256": "fabf6361690d62e7c6036d3a9fddb1dd661c56873e4213809d4402c84ba6ec3b"}, {"path": "real/composed/ai_ai_moves.py", "sha256": "2165e51cf5a3fea4aa3fc93a5dcf344d3e598a49220b8ccad699f9cf1f0829e2"}, {"path": "real/composed/space_moves.py", "sha256": "9e0292b354ebb33e8ee799de785d2761cba1751f853c3c6ce36e430c64e18818"}, {"path": "real/hosts/data/space_tle_frozen.txt", "sha256": "adc60fc7d0d46ae11c1330e1d09a78a00ac29b6701551720ae418f2cc9bfe037"}, {"path": "real/hosts/data/space_tle_frozen.meta.json", "sha256": "15f0bae61ce2f33c895c335c94bdeff1bba7075aa751c6f6cce4b0c705663fb5"}, {"path": "experiments/agents/llm.py", "sha256": "716c301847ab4674f1735edde360a3ddb6cb98b8412e18a6b8b9fcbdc7c7fe9f"}, {"path": "experiments/agents/tasks.py", "sha256": "c07ff0610d3d525ebe1582ccc10ce871f43fba315a927789479c7cd96f30fcd1"}, {"path": "experiments/agents/agent.py", "sha256": "53397a85fcd8bd6c47591e60feb5b3e72132b4f9d276965153489292d9376f33"}, {"path": "real/hosts/data/ai_agents_tree.json", "sha256": "3f7b1afafbfe1ff766e1e4d4eae3ca60472471f84306e081325d6d64499044d2"}, {"path": "real/hosts/data/household_load_uci_hourly.csv", "sha256": "7195b2765721906d8a90db861eb8224e6531d3ea22e7657cf9f738b4ff00140a"}, {"path": "real/hosts/data/topical_chat/.gitignore", "sha256": "240a3e0d37d2e86b614063f5347eb02d4f99ca6c254de6b82871ff8d95532a7d"}, {"path": "real/hosts/data/walmart_sales_weekly.csv", "sha256": "4d7b1a97a1605b07f0c51c39127d2131da01febcba04168ded49f0c1d0747123"}], "seal_file": "real/SEAL_CONF3.txt", "sealed_at": "2026-11-25T13:15:31Z"}, "title": "CONF3: communication principle and moves composed in the RSOS language", "type": "claim"}, "seq": 4}
6
+ {"entry_hash": "fabae537fcb5a27a47c7204df371520eb7d867d2e67f1a02f727a8ae68e553cc", "prev": "d43f0ff3072330a4a2243eab718eb14fe43063c2c1854ab1a65e02c31bf44ca3", "record": {"consent_harm": {"harm_reports": [], "personal_data": false}, "declarations": {"affects_people": false, "note": "AI, data and simulated hosts; no living participants", "predicted_harm": 0, "serves_mission": true}, "evidence": "both", "id": "902b600738fc444de152e1ab6eeef22aa6f13d46171cd8a4866d2a07cded2576", "lineage": {"parents": ["059c77a0bebd8a7be116d693dc9368cd4828d7354cb9e1bea9e53aa8dfea2fac"], "source": "sealed research record"}, "outcome": {"criteria_met": "none", "result_files": [{"path": "real/RESULTS_CONF4.md", "sha256": "613055a5967c6ac33a2eb591cede9814f8ed99e6b4a664a4081066d722d9048a"}], "summary": "Met in 1 of 4 rows: AI agents (ReAct) 6.7k vs 12.0k tokens, -44 %, p 4.9e-16; other rows no difference. Both sides had the compiled operators, so this measured what the text adds on top of them."}, "prediction": {"criteria": "At least 3 of 4 rows at Holm p < 1e-5, no harm, use >= 25 %, above the floor (PREREG_CONF4.md)"}, "purpose": "Does the RSOS language as text make better decision programs? Three RSOS agents vs three control agents, same compiled operator channels.", "rsc": "1.2", "run": {"run_id": "45659293703", "started_at": "2026-11-25T16:56:11Z", "where": "GitHub Actions, r-a-elu-architecture/RSOS-Multimodal-World"}, "seal": {"commit": "a53eac952c81d4c4566e0f8564e2566b4a3ab748", "files": [{"path": "real/seed.py", "sha256": "51813143cfbeec90aff64b55afd1ea41df156c6f837f8d27b5f333291ee4ce8b"}, {"path": "real/seed3.py", "sha256": "472845a35c7e72e1d704a01b3a4de90019a3a212f44d81d841a227865f62838f"}, {"path": "real/seed3_ops.py", "sha256": "d846d20461a77e7f046b5bb978b1a86d853d4e678bf2909a17f838805c71d70c"}, {"path": "real/hosts/ai_agents.py", "sha256": "83a346ba88af30447b8556c2dd7f56068a32c45b3ace2f8b8d402ad7925b4594"}, {"path": "real/hosts/ai_agents_blind.py", "sha256": "18209eeb1bfb761838632fe673e949cdb61f5cd193f669cbe7a594dc481a713c"}, {"path": "real/hosts/ai_agents_quick.py", "sha256": "e798d8288c5f3293b4bc1710189ef4a1419109509a8242f6d4608f54b05e7fcf"}, {"path": "real/hosts/ai_agents_tree.py", "sha256": "1f3b8cec16f496c658215adb8c6ffd077ac968d7d6f0668d57bcd38279819d49"}, {"path": "real/hosts/ai_ai.py", "sha256": "6182df0838c1a1ccfa20d651c8ab3c2736186795d7e007da269cbb7163d200db"}, {"path": "real/hosts/ai_ai_quick.py", "sha256": "f2347e02b22bc4fe7cb742ff9c31b08c245cf78044900237371f04769dfc035e"}, {"path": "real/hosts/ai_human.py", "sha256": "af82fe72582647c83bddda0037b53d7f1248886f8aee281425c71e422d45d225"}, {"path": "real/hosts/ai_human_fetch.py", "sha256": "f89f62f46fde7eac08f6507c901e6128c5d01a32b71d4436443612c04622935b"}, {"path": "real/hosts/ai_human_quick.py", "sha256": "4edc1d36bc613d908aa0d545c59c53fc6d6851a72d22eb5750bdaddedfac7546"}, {"path": "real/hosts/ai_human_tree.py", "sha256": "18d8ff6ef13493e184a4875812451f3ec6ff793dae0e2bff5c517edaaddadfee"}, {"path": "real/hosts/biology.py", "sha256": "4c49e68562c54134207a363dbce60ba854ace7f34f5f89ddcaa373975015ca72"}, {"path": "real/hosts/biology_landing_check.py", "sha256": "1a3a37bf6dc244aead3f5a55e40bb8df0f38c50321b57587ceb23e5c9282a101"}, {"path": "real/hosts/biology_quick.py", "sha256": "4bb933812937e97ae682e51cb4a92d54eb665b6e2b70e20a1bba25822ead67ab"}, {"path": "real/hosts/economics.py", "sha256": "2e4dd0ea882fd955317cb1e59bf1f4564e7c6070fa3a3d1e13e2748d28443ae5"}, {"path": "real/hosts/economics_fetch.py", "sha256": "ff97f76fd5adb18010b6163bfb94a571b051ecca17f436c9642c80939c451f31"}, {"path": "real/hosts/economics_quick.py", "sha256": "405cd86825ada90722f237db9296d730a131529b1e3cceb3fd7b43168cf6d4ab"}, {"path": "real/hosts/energy.py", "sha256": "4ca6148de61ed57e4c2bc1b3e071708742d4808d59a4366b51d6f4b56ae87c0b"}, {"path": "real/hosts/energy_fetch.py", "sha256": "5ebd484a6452f68fd6a55cf1c0809663d85d6e7093f2d08870c9b490db6ffcfd"}, {"path": "real/hosts/energy_quick.py", "sha256": "5ffe8cb035bfc7ee139206a24459e78bcdd15564f4b1b34c6097916f767ecf84"}, {"path": "real/hosts/llm_bounded.py", "sha256": "53d9f24c262a3f428a33b1a738def924b7d94d5f360535971845ffb6d1f9ed91"}, {"path": "real/hosts/neuro.py", "sha256": "0d19948caea9a24ab4b884f6c5a98099bfd6480115d326ad40c547239e8a4d00"}, {"path": "real/hosts/neuro_fetch.py", "sha256": "0de6440a836dbf47d0f9764f871fd715333e2a677a66a0d66ba1f0e1a909a954"}, {"path": "real/hosts/neuro_quick.py", "sha256": "ed2e62408edeef20aba313517f591aaaac28cd637e5916415a7368337b7018a5"}, {"path": "real/hosts/quantum.py", "sha256": "fda9d7692eb006034d27a0a3629d83c02e6b43960408e4028caa1ba0c155f4d4"}, {"path": "real/hosts/quantum_quick.py", "sha256": "33b46e46c41452bcbd5bd963a17270896d2d886982121a9f251c22384db5b673"}, {"path": "real/hosts/robotics.py", "sha256": "552ce00d657180bcdd4886f0eb6999d71270c6c0a2a75cf1238a10ff8251fd38"}, {"path": "real/hosts/robotics_quick.py", "sha256": "38d857a0d2ca804b714a240055262a3b5be4e4f196c8be944657594db006edc8"}, {"path": "real/hosts/space.py", "sha256": "9f5746726dce81e2df2c00008c245bbe5a2599a78c0bec97178ea9c8df630264"}, {"path": "real/hosts/space_fetch.py", "sha256": "1e9757ec1ccd228308bcb913a65a173e5d461f250c21cf8d9aa9abdb3891d870"}, {"path": "real/hosts/space_quick.py", "sha256": "8b23a3d1d3956cf2c46e04b63589db57e9f9e7d5eaca4960706cfd991fe95d7e"}, {"path": "cloud/real3_unit.py", "sha256": "1765985482890091c96d6985bb483dec20a1f63b61e92681dee8b9d6104ed177"}, {"path": "real/analyze_real3.py", "sha256": "7ca64ecc1ec7dbe0ae4f9ce8c1bd7674b80cb782905d4e573a8f5aa03cbf8b8d"}, {"path": "real/PREREG_REAL3.md", "sha256": "5d21f43e0faba1b91ad0acc47b996a8ceec0b705cffa91a0df0f85b82e9a4026"}, {"path": ".github/workflows/rsos_real3_s1.yml", "sha256": "f056160c7e1ac80cdef9ec6c835cf83ba334db7da4b7a1cb5ffa77a55c9d3639"}, {"path": ".github/workflows/rsos_real3_s2.yml", "sha256": "0398d1965e4a3fe207859e45f12d6dd6ad5e5949ba43a92a7f974819c200960c"}, {"path": "real/PREREG_REAL3_FIX1.md", "sha256": "a9a4de4953ca25db88a113e962cbdbcea2b3ae41b262d64f675fa31750ed7cae"}, {"path": "cloud/real3_unit_fix1.py", "sha256": "589e4cca2e7ce091c0ccbb09eb11702617471bb3d637a3444d129f48c4a78928"}, {"path": "real/hosts/data/space_tle_frozen.txt", "sha256": "adc60fc7d0d46ae11c1330e1d09a78a00ac29b6701551720ae418f2cc9bfe037"}, {"path": "real/hosts/data/space_tle_frozen.meta.json", "sha256": "15f0bae61ce2f33c895c335c94bdeff1bba7075aa751c6f6cce4b0c705663fb5"}, {"path": "experiments/agents/llm.py", "sha256": "716c301847ab4674f1735edde360a3ddb6cb98b8412e18a6b8b9fcbdc7c7fe9f"}, {"path": "experiments/agents/tasks.py", "sha256": "c07ff0610d3d525ebe1582ccc10ce871f43fba315a927789479c7cd96f30fcd1"}, {"path": "experiments/agents/agent.py", "sha256": "53397a85fcd8bd6c47591e60feb5b3e72132b4f9d276965153489292d9376f33"}, {"path": "real/hosts/data/ai_agents_tree.json", "sha256": "3f7b1afafbfe1ff766e1e4d4eae3ca60472471f84306e081325d6d64499044d2"}, {"path": "real/hosts/data/household_load_uci_hourly.csv", "sha256": "7195b2765721906d8a90db861eb8224e6531d3ea22e7657cf9f738b4ff00140a"}, {"path": "real/hosts/data/topical_chat/.gitignore", "sha256": "240a3e0d37d2e86b614063f5347eb02d4f99ca6c254de6b82871ff8d95532a7d"}, {"path": "real/hosts/data/walmart_sales_weekly.csv", "sha256": "4d7b1a97a1605b07f0c51c39127d2131da01febcba04168ded49f0c1d0747123"}, {"path": "cloud/conf4_unit.py", "sha256": "5a497fc42a08dbd51d782e51139bfa008eeb1b9a2e343aa1990a87329c4df8dc"}, {"path": "real/analyze_conf4.py", "sha256": "ec6785f0524050737be964cc952f0fbbeca89fbe02fea7096ef2418218713966"}, {"path": "real/PREREG_CONF4.md", "sha256": "72cce399cc63552d506e3821b7fae2f0787af10eb6652c6aa6eb607ffc60aa1b"}, {"path": ".github/workflows/rsos_conf4.yml", "sha256": "3da544664eb26dc89c9a43193f1210bc36f7f92a8c80f8888700fe922610f66c"}, {"path": "reproduce_conf4.sh", "sha256": "a6eff6a016c09e934af6522fc9b25f45132f4b361c77eb5ce76f3481d7ac94c7"}, {"path": "real/conf4/DOMAINS.md", "sha256": "1f2370e9a044dac091f51b72c827656aed637c898b9d5d9072c60bbb28f8513a"}, {"path": "real/conf4/C1/ai_agents_moves.py", "sha256": "cc6f75bd9521b405af3d6d39cd6aa3985f1a1d08b125d437cde02808b99900fe"}, {"path": "real/conf4/C1/ai_ai_moves.py", "sha256": "a4def4c4f1fd4adab6fe003ac15bcbf7e41b88e7351b2f6c2a68808af9c2ce5d"}, {"path": "real/conf4/C1/ai_human_moves.py", "sha256": "210a5ac0075010970767900635aa8e8312e9d97569b6478c0d70cd19c5232671"}, {"path": "real/conf4/C1/space_moves.py", "sha256": "e591d11031a0f6a0cc804279c78ac136e5d09d47c09a40a8d19e130226a6af28"}, {"path": "real/conf4/C2/ai_agents_moves.py", "sha256": "9678de8469ec020470bc7316bfb6020c2253464031d1ee33df5e68764d30d541"}, {"path": "real/conf4/C2/ai_ai_moves.py", "sha256": "62983fadf13961583c2a91052f36c89fd765451ff8480d25321ffc42eba617bd"}, {"path": "real/conf4/C2/ai_human_moves.py", "sha256": "3a717dd46be6068b372ffa3d5fb35e4340b193f9d0f716d9bb5a4bd28eceb329"}, {"path": "real/conf4/C2/space_moves.py", "sha256": "919cddb3916cd34cd7fd41a7a55548598b856c0605aa1852e34db2c7a697bd8f"}, {"path": "real/conf4/C3/ai_agents_moves.py", "sha256": "baf3fbdcac6006fda5dba315f4248a359b5d51abdc18fa5d0016911bea16759b"}, {"path": "real/conf4/C3/ai_ai_moves.py", "sha256": "fa6e2cdc2c8da8c086f554664252bd9670283ee7e4b203465788594da1c63d57"}, {"path": "real/conf4/C3/ai_human_moves.py", "sha256": "99956e36c537b082c09e90d4365eb7c481abc3b865f37c4dca324064dd37afd6"}, {"path": "real/conf4/C3/space_moves.py", "sha256": "a17e2b1b0ecaa734dd84875400bc3895e46b942b3801aff5fc11849d5dbcd096"}, {"path": "real/conf4/R1/ai_agents_moves.py", "sha256": "7628eb59c5ee913a7fd1d91fe7bda8810b19c3245bf141f73b6264c71804b7a2"}, {"path": "real/conf4/R1/ai_ai_moves.py", "sha256": "fbd83dd8110fdf623e738fa39ddf08cd9ff1f14628b5b050a3ee81171e40db1d"}, {"path": "real/conf4/R1/ai_human_moves.py", "sha256": "1d2aa0b4d260a6e036da54da0195e0fb8849b2d8059ece5033fd100901da919c"}, {"path": "real/conf4/R1/space_moves.py", "sha256": "84c62953a071932a70c7aba238751fc37f80daa7feebc77c35051527b7d6a95e"}, {"path": "real/conf4/R2/ai_agents_moves.py", "sha256": "834f28fc87095153de1a4dc72c9eac04d841314d1a43fd8572a50dd208c888ab"}, {"path": "real/conf4/R2/ai_ai_moves.py", "sha256": "713e4d97934e8064952efc01aad23dd58b0a9561683e5c4ee2195ba95ee70c3a"}, {"path": "real/conf4/R2/ai_human_moves.py", "sha256": "db75df435e797a6284b222437da8dc5fea14e5b48b7774d1710d9e6ba9e780bf"}, {"path": "real/conf4/R2/space_moves.py", "sha256": "97a581b383c760382f9d397c67c8510cb5bc50cb94cff2f1157b6913979dd1ae"}, {"path": "real/conf4/R3/ai_agents_moves.py", "sha256": "99ae6b121f585cea0b0c564eb7ba950a5a12639be0b4304e9afeaf0c1990ff25"}, {"path": "real/conf4/R3/ai_ai_moves.py", "sha256": "054a7eb683f0d78b5983875bf70f445398ee901a032a7c9ee3aa51260fe14ce8"}, {"path": "real/conf4/R3/ai_human_moves.py", "sha256": "149c8436c5ed111e7bce8c9cc438117e69b33fb5b405596116b7b7aeabdf2341"}, {"path": "real/conf4/R3/space_moves.py", "sha256": "86ce08fcc17798f5af89926eaadbf814c1c39f66c5fa0fbe192a80fe88dcbfd2"}], "seal_file": "real/SEAL_CONF4.txt", "sealed_at": "2026-11-25T16:55:57Z"}, "title": "CONF4: programs by an AI given the RSOS sources vs the same AI without them", "type": "claim"}, "seq": 5}
7
+ {"entry_hash": "b84303af4988694a4772c322defff315aedb2bb454b539b2663a6217bded726d", "prev": "fabae537fcb5a27a47c7204df371520eb7d867d2e67f1a02f727a8ae68e553cc", "record": {"consent_harm": {"harm_reports": [], "personal_data": false}, "declarations": {"affects_people": false, "note": "AI, data and simulated hosts; no living participants", "predicted_harm": 0, "serves_mission": true}, "evidence": "both", "id": "76ae197815f59b85a88bc64c02e4a5ad24264918ef21c8cc995c3b4a12ea504c", "lineage": {"parents": ["059c77a0bebd8a7be116d693dc9368cd4828d7354cb9e1bea9e53aa8dfea2fac"], "source": "sealed research record"}, "outcome": {"criteria_met": "none", "result_files": [{"path": "real/RESULTS_ABL1.md", "sha256": "20d3a286c5427cc74f25d78cb8b5dc3e06c74ded95a807fbd9f87a8df466cffb"}], "summary": "Not met in any row: full RSOS beat the standard everywhere (p 1e-25 to 2e-15), but the switched operators were barely chosen. Design error, disclosed."}, "prediction": {"criteria": "All 3 rows: switching the row's operator off costs the result at Holm p < 1e-5; full RSOS beats the standard; no harm (PREREG_ABL1.md)"}, "purpose": "Does each named operator cause the gain it carries?", "rsc": "1.2", "run": {"run_id": "45666010082", "started_at": "2026-11-25T17:33:28Z", "where": "GitHub Actions, r-a-elu-architecture/RSOS-Multimodal-World"}, "seal": {"commit": "7c4d1840d67789f2acc944b965687f1f33c59668", "files": [{"path": "real/seed.py", "sha256": "51813143cfbeec90aff64b55afd1ea41df156c6f837f8d27b5f333291ee4ce8b"}, {"path": "real/seed3.py", "sha256": "472845a35c7e72e1d704a01b3a4de90019a3a212f44d81d841a227865f62838f"}, {"path": "real/seed3_ops.py", "sha256": "d846d20461a77e7f046b5bb978b1a86d853d4e678bf2909a17f838805c71d70c"}, {"path": "real/hosts/ai_agents.py", "sha256": "83a346ba88af30447b8556c2dd7f56068a32c45b3ace2f8b8d402ad7925b4594"}, {"path": "real/hosts/ai_agents_blind.py", "sha256": "18209eeb1bfb761838632fe673e949cdb61f5cd193f669cbe7a594dc481a713c"}, {"path": "real/hosts/ai_agents_quick.py", "sha256": "e798d8288c5f3293b4bc1710189ef4a1419109509a8242f6d4608f54b05e7fcf"}, {"path": "real/hosts/ai_agents_tree.py", "sha256": "1f3b8cec16f496c658215adb8c6ffd077ac968d7d6f0668d57bcd38279819d49"}, {"path": "real/hosts/ai_ai.py", "sha256": "6182df0838c1a1ccfa20d651c8ab3c2736186795d7e007da269cbb7163d200db"}, {"path": "real/hosts/ai_ai_quick.py", "sha256": "f2347e02b22bc4fe7cb742ff9c31b08c245cf78044900237371f04769dfc035e"}, {"path": "real/hosts/ai_human.py", "sha256": "af82fe72582647c83bddda0037b53d7f1248886f8aee281425c71e422d45d225"}, {"path": "real/hosts/ai_human_fetch.py", "sha256": "f89f62f46fde7eac08f6507c901e6128c5d01a32b71d4436443612c04622935b"}, {"path": "real/hosts/ai_human_quick.py", "sha256": "4edc1d36bc613d908aa0d545c59c53fc6d6851a72d22eb5750bdaddedfac7546"}, {"path": "real/hosts/ai_human_tree.py", "sha256": "18d8ff6ef13493e184a4875812451f3ec6ff793dae0e2bff5c517edaaddadfee"}, {"path": "real/hosts/biology.py", "sha256": "4c49e68562c54134207a363dbce60ba854ace7f34f5f89ddcaa373975015ca72"}, {"path": "real/hosts/biology_landing_check.py", "sha256": "1a3a37bf6dc244aead3f5a55e40bb8df0f38c50321b57587ceb23e5c9282a101"}, {"path": "real/hosts/biology_quick.py", "sha256": "4bb933812937e97ae682e51cb4a92d54eb665b6e2b70e20a1bba25822ead67ab"}, {"path": "real/hosts/economics.py", "sha256": "2e4dd0ea882fd955317cb1e59bf1f4564e7c6070fa3a3d1e13e2748d28443ae5"}, {"path": "real/hosts/economics_fetch.py", "sha256": "ff97f76fd5adb18010b6163bfb94a571b051ecca17f436c9642c80939c451f31"}, {"path": "real/hosts/economics_quick.py", "sha256": "405cd86825ada90722f237db9296d730a131529b1e3cceb3fd7b43168cf6d4ab"}, {"path": "real/hosts/energy.py", "sha256": "4ca6148de61ed57e4c2bc1b3e071708742d4808d59a4366b51d6f4b56ae87c0b"}, {"path": "real/hosts/energy_fetch.py", "sha256": "5ebd484a6452f68fd6a55cf1c0809663d85d6e7093f2d08870c9b490db6ffcfd"}, {"path": "real/hosts/energy_quick.py", "sha256": "5ffe8cb035bfc7ee139206a24459e78bcdd15564f4b1b34c6097916f767ecf84"}, {"path": "real/hosts/llm_bounded.py", "sha256": "53d9f24c262a3f428a33b1a738def924b7d94d5f360535971845ffb6d1f9ed91"}, {"path": "real/hosts/neuro.py", "sha256": "0d19948caea9a24ab4b884f6c5a98099bfd6480115d326ad40c547239e8a4d00"}, {"path": "real/hosts/neuro_fetch.py", "sha256": "0de6440a836dbf47d0f9764f871fd715333e2a677a66a0d66ba1f0e1a909a954"}, {"path": "real/hosts/neuro_quick.py", "sha256": "ed2e62408edeef20aba313517f591aaaac28cd637e5916415a7368337b7018a5"}, {"path": "real/hosts/quantum.py", "sha256": "fda9d7692eb006034d27a0a3629d83c02e6b43960408e4028caa1ba0c155f4d4"}, {"path": "real/hosts/quantum_quick.py", "sha256": "33b46e46c41452bcbd5bd963a17270896d2d886982121a9f251c22384db5b673"}, {"path": "real/hosts/robotics.py", "sha256": "552ce00d657180bcdd4886f0eb6999d71270c6c0a2a75cf1238a10ff8251fd38"}, {"path": "real/hosts/robotics_quick.py", "sha256": "38d857a0d2ca804b714a240055262a3b5be4e4f196c8be944657594db006edc8"}, {"path": "real/hosts/space.py", "sha256": "9f5746726dce81e2df2c00008c245bbe5a2599a78c0bec97178ea9c8df630264"}, {"path": "real/hosts/space_fetch.py", "sha256": "1e9757ec1ccd228308bcb913a65a173e5d461f250c21cf8d9aa9abdb3891d870"}, {"path": "real/hosts/space_quick.py", "sha256": "8b23a3d1d3956cf2c46e04b63589db57e9f9e7d5eaca4960706cfd991fe95d7e"}, {"path": "cloud/real3_unit.py", "sha256": "1765985482890091c96d6985bb483dec20a1f63b61e92681dee8b9d6104ed177"}, {"path": "real/analyze_real3.py", "sha256": "7ca64ecc1ec7dbe0ae4f9ce8c1bd7674b80cb782905d4e573a8f5aa03cbf8b8d"}, {"path": "real/PREREG_REAL3.md", "sha256": "5d21f43e0faba1b91ad0acc47b996a8ceec0b705cffa91a0df0f85b82e9a4026"}, {"path": ".github/workflows/rsos_real3_s1.yml", "sha256": "f056160c7e1ac80cdef9ec6c835cf83ba334db7da4b7a1cb5ffa77a55c9d3639"}, {"path": ".github/workflows/rsos_real3_s2.yml", "sha256": "0398d1965e4a3fe207859e45f12d6dd6ad5e5949ba43a92a7f974819c200960c"}, {"path": "real/PREREG_REAL3_FIX1.md", "sha256": "a9a4de4953ca25db88a113e962cbdbcea2b3ae41b262d64f675fa31750ed7cae"}, {"path": "cloud/real3_unit_fix1.py", "sha256": "589e4cca2e7ce091c0ccbb09eb11702617471bb3d637a3444d129f48c4a78928"}, {"path": "real/composed/ai_agents_moves.py", "sha256": "103d5aa36c14e03807496266853707a29964f7c29a1664dd82dee3e23f3234ac"}, {"path": "real/composed/ai_human_moves.py", "sha256": "fabf6361690d62e7c6036d3a9fddb1dd661c56873e4213809d4402c84ba6ec3b"}, {"path": "real/composed/ai_ai_moves.py", "sha256": "2165e51cf5a3fea4aa3fc93a5dcf344d3e598a49220b8ccad699f9cf1f0829e2"}, {"path": "real/composed/space_moves.py", "sha256": "9e0292b354ebb33e8ee799de785d2761cba1751f853c3c6ce36e430c64e18818"}, {"path": "real/hosts/data/space_tle_frozen.txt", "sha256": "adc60fc7d0d46ae11c1330e1d09a78a00ac29b6701551720ae418f2cc9bfe037"}, {"path": "real/hosts/data/space_tle_frozen.meta.json", "sha256": "15f0bae61ce2f33c895c335c94bdeff1bba7075aa751c6f6cce4b0c705663fb5"}, {"path": "experiments/agents/llm.py", "sha256": "716c301847ab4674f1735edde360a3ddb6cb98b8412e18a6b8b9fcbdc7c7fe9f"}, {"path": "experiments/agents/tasks.py", "sha256": "c07ff0610d3d525ebe1582ccc10ce871f43fba315a927789479c7cd96f30fcd1"}, {"path": "experiments/agents/agent.py", "sha256": "53397a85fcd8bd6c47591e60feb5b3e72132b4f9d276965153489292d9376f33"}, {"path": "real/hosts/data/ai_agents_tree.json", "sha256": "3f7b1afafbfe1ff766e1e4d4eae3ca60472471f84306e081325d6d64499044d2"}, {"path": "real/hosts/data/household_load_uci_hourly.csv", "sha256": "7195b2765721906d8a90db861eb8224e6531d3ea22e7657cf9f738b4ff00140a"}, {"path": "real/hosts/data/topical_chat/.gitignore", "sha256": "240a3e0d37d2e86b614063f5347eb02d4f99ca6c254de6b82871ff8d95532a7d"}, {"path": "real/hosts/data/walmart_sales_weekly.csv", "sha256": "4d7b1a97a1605b07f0c51c39127d2131da01febcba04168ded49f0c1d0747123"}, {"path": "cloud/abl1_unit.py", "sha256": "20e6799e13a8ed1551aa0d515e9686a61eea05657e12a1c7c7b3d11e8cc1fb16"}, {"path": "real/analyze_abl1.py", "sha256": "9cc3343286b0e235224173451042057423bd29156e87f2b7ea1ad1f942ddd4a2"}, {"path": "real/PREREG_ABL1.md", "sha256": "3fd0eede9c019a1d2aa9592fa39bc1c66e04933217d6d82d1cdab1d091ee3211"}, {"path": ".github/workflows/rsos_abl1.yml", "sha256": "ccbf3eb415e23000499c24d375374cc4368d7b8cae126c3654761b3d53446210"}, {"path": "reproduce_abl1.sh", "sha256": "c08b84fcc8fb210e8bdc31e4fee01bc650f804565fdb2c8f4412ca948efcbddd"}], "seal_file": "real/SEAL_ABL1.txt", "sealed_at": "2026-11-25T17:33:16Z"}, "title": "ABL1: one operator switched off per row", "type": "claim"}, "seq": 6}
8
+ {"entry_hash": "00a80fa6459345ad4ec39f1eaeae890b2082e51a3bb6fc45659ebc7833ced277", "prev": "b84303af4988694a4772c322defff315aedb2bb454b539b2663a6217bded726d", "record": {"consent_harm": {"harm_reports": [], "personal_data": false}, "declarations": {"affects_people": false, "note": "AI, data and simulated hosts; no living participants", "predicted_harm": 0, "serves_mission": true}, "evidence": "both", "id": "e4b7ae16a3de73a82350a815f2bc31db711ca129f1ed374f0dd4c52823bcb092", "lineage": {"parents": ["76ae197815f59b85a88bc64c02e4a5ad24264918ef21c8cc995c3b4a12ea504c", "0bafcabb63f814c8b7756d968f575775d3f489baf6309d62299f809c200d920d"], "source": "sealed research record"}, "outcome": {"criteria_met": "partly", "result_files": [{"path": "real/RESULTS_CONF5.md", "sha256": "c6a42f3fdc62d3f5100fb2f27baf5d916c891901f580602f4a2735c110b26d53"}, {"path": "real/pilot/PILOT1_NOTES.md", "sha256": "0dc3bdbade57caea6fd5986c6b2b53ce86a2eddbd900c05cf0568e9302405b18"}], "summary": "Met in 2 of 3 rows: AI agents 43 % fewer tokens at accuracy 0.95 vs 0.83 (p 1.9e-13, 44/48); satellite +0.74 %, 20/20 (p 1.5e-8). AI-AI not on tokens (p 0.25)."}, "prediction": {"criteria": "All 3 rows: RSOS beats plain rollout, Holm p < 1e-5, guard and no harm (PREREG_CONF5.md)"}, "purpose": "Does the structure that carries each host's gain (identified on development cells) beat RSOS-free planning?", "rsc": "1.2", "run": {"run_id": "45675642649", "started_at": "2026-11-25T18:29:13Z", "where": "GitHub Actions, r-a-elu-architecture/RSOS-Multimodal-World"}, "seal": {"commit": "15c9b6b018b8a816c7e2014ec1aedf4b157cc181", "files": [{"path": ".github/workflows/rsos_conf5.yml", "sha256": "8971f898fdd9e12ee357fc75e7d3808ce00c51b818638fae8c2fac3d6d876e99"}, {"path": ".github/workflows/rsos_real3_s1.yml", "sha256": "f056160c7e1ac80cdef9ec6c835cf83ba334db7da4b7a1cb5ffa77a55c9d3639"}, {"path": ".github/workflows/rsos_real3_s2.yml", "sha256": "0398d1965e4a3fe207859e45f12d6dd6ad5e5949ba43a92a7f974819c200960c"}, {"path": "cloud/conf5_unit.py", "sha256": "df40a6d01c7fae77d07e056176b0015ce3b3ce9008cbd36f284fd65c03598342"}, {"path": "cloud/real3_unit.py", "sha256": "1765985482890091c96d6985bb483dec20a1f63b61e92681dee8b9d6104ed177"}, {"path": "cloud/real3_unit_fix1.py", "sha256": "589e4cca2e7ce091c0ccbb09eb11702617471bb3d637a3444d129f48c4a78928"}, {"path": "experiments/agents/agent.py", "sha256": "53397a85fcd8bd6c47591e60feb5b3e72132b4f9d276965153489292d9376f33"}, {"path": "experiments/agents/llm.py", "sha256": "716c301847ab4674f1735edde360a3ddb6cb98b8412e18a6b8b9fcbdc7c7fe9f"}, {"path": "experiments/agents/tasks.py", "sha256": "c07ff0610d3d525ebe1582ccc10ce871f43fba315a927789479c7cd96f30fcd1"}, {"path": "real/PREREG_CONF5.md", "sha256": "c5b6b27fcfdc49afbae841ca24695fe93a47795fd7d98a9cd6c44468677c6253"}, {"path": "real/PREREG_REAL3.md", "sha256": "5d21f43e0faba1b91ad0acc47b996a8ceec0b705cffa91a0df0f85b82e9a4026"}, {"path": "real/PREREG_REAL3_FIX1.md", "sha256": "a9a4de4953ca25db88a113e962cbdbcea2b3ae41b262d64f675fa31750ed7cae"}, {"path": "real/analyze_conf5.py", "sha256": "4e80d2b3b68d2e41c085fdecdd855a72c054d9f72353aca5ace02b11bb07ed83"}, {"path": "real/analyze_real3.py", "sha256": "7ca64ecc1ec7dbe0ae4f9ce8c1bd7674b80cb782905d4e573a8f5aa03cbf8b8d"}, {"path": "real/composed/ai_agents_moves.py", "sha256": "103d5aa36c14e03807496266853707a29964f7c29a1664dd82dee3e23f3234ac"}, {"path": "real/composed/ai_ai_moves.py", "sha256": "2165e51cf5a3fea4aa3fc93a5dcf344d3e598a49220b8ccad699f9cf1f0829e2"}, {"path": "real/composed/ai_human_moves.py", "sha256": "fabf6361690d62e7c6036d3a9fddb1dd661c56873e4213809d4402c84ba6ec3b"}, {"path": "real/composed/space_moves.py", "sha256": "9e0292b354ebb33e8ee799de785d2761cba1751f853c3c6ce36e430c64e18818"}, {"path": "real/hosts/ai_agents.py", "sha256": "83a346ba88af30447b8556c2dd7f56068a32c45b3ace2f8b8d402ad7925b4594"}, {"path": "real/hosts/ai_agents_blind.py", "sha256": "18209eeb1bfb761838632fe673e949cdb61f5cd193f669cbe7a594dc481a713c"}, {"path": "real/hosts/ai_agents_quick.py", "sha256": "e798d8288c5f3293b4bc1710189ef4a1419109509a8242f6d4608f54b05e7fcf"}, {"path": "real/hosts/ai_agents_tree.py", "sha256": "1f3b8cec16f496c658215adb8c6ffd077ac968d7d6f0668d57bcd38279819d49"}, {"path": "real/hosts/ai_ai.py", "sha256": "6182df0838c1a1ccfa20d651c8ab3c2736186795d7e007da269cbb7163d200db"}, {"path": "real/hosts/ai_ai_quick.py", "sha256": "f2347e02b22bc4fe7cb742ff9c31b08c245cf78044900237371f04769dfc035e"}, {"path": "real/hosts/ai_human.py", "sha256": "af82fe72582647c83bddda0037b53d7f1248886f8aee281425c71e422d45d225"}, {"path": "real/hosts/ai_human_fetch.py", "sha256": "f89f62f46fde7eac08f6507c901e6128c5d01a32b71d4436443612c04622935b"}, {"path": "real/hosts/ai_human_quick.py", "sha256": "4edc1d36bc613d908aa0d545c59c53fc6d6851a72d22eb5750bdaddedfac7546"}, {"path": "real/hosts/ai_human_tree.py", "sha256": "18d8ff6ef13493e184a4875812451f3ec6ff793dae0e2bff5c517edaaddadfee"}, {"path": "real/hosts/biology.py", "sha256": "4c49e68562c54134207a363dbce60ba854ace7f34f5f89ddcaa373975015ca72"}, {"path": "real/hosts/biology_landing_check.py", "sha256": "1a3a37bf6dc244aead3f5a55e40bb8df0f38c50321b57587ceb23e5c9282a101"}, {"path": "real/hosts/biology_quick.py", "sha256": "4bb933812937e97ae682e51cb4a92d54eb665b6e2b70e20a1bba25822ead67ab"}, {"path": "real/hosts/data/ai_agents_tree.json", "sha256": "3f7b1afafbfe1ff766e1e4d4eae3ca60472471f84306e081325d6d64499044d2"}, {"path": "real/hosts/data/household_load_uci_hourly.csv", "sha256": "7195b2765721906d8a90db861eb8224e6531d3ea22e7657cf9f738b4ff00140a"}, {"path": "real/hosts/data/space_tle_frozen.meta.json", "sha256": "15f0bae61ce2f33c895c335c94bdeff1bba7075aa751c6f6cce4b0c705663fb5"}, {"path": "real/hosts/data/space_tle_frozen.txt", "sha256": "adc60fc7d0d46ae11c1330e1d09a78a00ac29b6701551720ae418f2cc9bfe037"}, {"path": "real/hosts/data/topical_chat/.gitignore", "sha256": "240a3e0d37d2e86b614063f5347eb02d4f99ca6c254de6b82871ff8d95532a7d"}, {"path": "real/hosts/data/walmart_sales_weekly.csv", "sha256": "4d7b1a97a1605b07f0c51c39127d2131da01febcba04168ded49f0c1d0747123"}, {"path": "real/hosts/economics.py", "sha256": "2e4dd0ea882fd955317cb1e59bf1f4564e7c6070fa3a3d1e13e2748d28443ae5"}, {"path": "real/hosts/economics_fetch.py", "sha256": "ff97f76fd5adb18010b6163bfb94a571b051ecca17f436c9642c80939c451f31"}, {"path": "real/hosts/economics_quick.py", "sha256": "405cd86825ada90722f237db9296d730a131529b1e3cceb3fd7b43168cf6d4ab"}, {"path": "real/hosts/energy.py", "sha256": "4ca6148de61ed57e4c2bc1b3e071708742d4808d59a4366b51d6f4b56ae87c0b"}, {"path": "real/hosts/energy_fetch.py", "sha256": "5ebd484a6452f68fd6a55cf1c0809663d85d6e7093f2d08870c9b490db6ffcfd"}, {"path": "real/hosts/energy_quick.py", "sha256": "5ffe8cb035bfc7ee139206a24459e78bcdd15564f4b1b34c6097916f767ecf84"}, {"path": "real/hosts/llm_bounded.py", "sha256": "53d9f24c262a3f428a33b1a738def924b7d94d5f360535971845ffb6d1f9ed91"}, {"path": "real/hosts/neuro.py", "sha256": "0d19948caea9a24ab4b884f6c5a98099bfd6480115d326ad40c547239e8a4d00"}, {"path": "real/hosts/neuro_fetch.py", "sha256": "0de6440a836dbf47d0f9764f871fd715333e2a677a66a0d66ba1f0e1a909a954"}, {"path": "real/hosts/neuro_quick.py", "sha256": "ed2e62408edeef20aba313517f591aaaac28cd637e5916415a7368337b7018a5"}, {"path": "real/hosts/quantum.py", "sha256": "fda9d7692eb006034d27a0a3629d83c02e6b43960408e4028caa1ba0c155f4d4"}, {"path": "real/hosts/quantum_quick.py", "sha256": "33b46e46c41452bcbd5bd963a17270896d2d886982121a9f251c22384db5b673"}, {"path": "real/hosts/robotics.py", "sha256": "552ce00d657180bcdd4886f0eb6999d71270c6c0a2a75cf1238a10ff8251fd38"}, {"path": "real/hosts/robotics_quick.py", "sha256": "38d857a0d2ca804b714a240055262a3b5be4e4f196c8be944657594db006edc8"}, {"path": "real/hosts/space.py", "sha256": "9f5746726dce81e2df2c00008c245bbe5a2599a78c0bec97178ea9c8df630264"}, {"path": "real/hosts/space_fetch.py", "sha256": "1e9757ec1ccd228308bcb913a65a173e5d461f250c21cf8d9aa9abdb3891d870"}, {"path": "real/hosts/space_quick.py", "sha256": "8b23a3d1d3956cf2c46e04b63589db57e9f9e7d5eaca4960706cfd991fe95d7e"}, {"path": "real/pilot/PILOT1_NOTES.md", "sha256": "0dc3bdbade57caea6fd5986c6b2b53ce86a2eddbd900c05cf0568e9302405b18"}, {"path": "real/pilot/pilot_ladder.py", "sha256": "247c718e86784e066c5f4b8824b9e2dc6aa21006fb1c5d4d4935bc75b2111ea7"}, {"path": "real/seed.py", "sha256": "51813143cfbeec90aff64b55afd1ea41df156c6f837f8d27b5f333291ee4ce8b"}, {"path": "real/seed3.py", "sha256": "472845a35c7e72e1d704a01b3a4de90019a3a212f44d81d841a227865f62838f"}, {"path": "real/seed3_ops.py", "sha256": "d846d20461a77e7f046b5bb978b1a86d853d4e678bf2909a17f838805c71d70c"}, {"path": "reproduce_conf5.sh", "sha256": "74152df143f920c335082cf92c3fb9ce553c34093b900f423c63bea0f9bf8d78"}], "seal_file": "real/SEAL_CONF5.txt", "sealed_at": "2026-11-25T18:29:02Z"}, "title": "CONF5: the identified RSOS structure vs plain rollout", "type": "claim"}, "seq": 7}
9
+ {"entry_hash": "dd9852e526b383a60f21662888c0c68dea5555ea1bdae0f212a12c5d0b80eb81", "prev": "00a80fa6459345ad4ec39f1eaeae890b2082e51a3bb6fc45659ebc7833ced277", "record": {"consent_harm": {"harm_reports": [], "personal_data": false}, "declarations": {"affects_people": false, "note": "AI, data and simulated hosts; no living participants", "predicted_harm": 0, "serves_mission": true}, "evidence": "both", "id": "ed3a1660eb64c5615ff54429ffaf04442b0ed066e63358f5c2c6c5f7eeae76eb", "lineage": {"parents": ["e4b7ae16a3de73a82350a815f2bc31db711ca129f1ed374f0dd4c52823bcb092"], "source": "sealed research record"}, "outcome": {"criteria_met": "all", "result_files": [{"path": "real/RESULTS_CONF6.md", "sha256": "4126d768b7eac76aed95ca77b03f4806a600ef105121f2829f218ee729a74617"}, {"path": "real/pilot/PILOT2_NOTES.md", "sha256": "ea52c249a8115f85cb58a2491d582af6a745565385be53569866ea4282395fc2"}], "summary": "Accuracy 1.000 vs 0.875 (25 better, 0 worse; Holm p 1.3e-7); tokens 1,286 vs 2,645, -51 % (180/200; p 5.1e-28); no harm. Compact-message arm switched off: no difference."}, "prediction": {"criteria": "Accuracy gain and tokens saved vs plain rollout both at Holm p < 1e-5, no harm vs the standard, 200 fresh cells (PREREG_CONF6.md)"}, "purpose": "Does binding the whole two-agent system to one structure beat RSOS-free planning on accuracy and tokens?", "rsc": "1.2", "run": {"run_id": "45752828112", "started_at": "2026-11-26T04:04:05Z", "where": "GitHub Actions, r-a-elu-architecture/RSOS-Multimodal-World"}, "seal": {"commit": "23a5e633619b140fbda1d6d0a660cb7b4f058e3c", "files": [{"path": ".github/workflows/rsos_conf6.yml", "sha256": "32612387608ca777a9b336559071b67a28ff8c4949aaf682e8d6bef3b4fb44d0"}, {"path": "cloud/conf6_unit.py", "sha256": "b8084136b4dfc62fe12a11bc2173655651a747400ffe14f5be1e19088b919487"}, {"path": "experiments/agents/llm.py", "sha256": "716c301847ab4674f1735edde360a3ddb6cb98b8412e18a6b8b9fcbdc7c7fe9f"}, {"path": "real/PREREG_CONF6.md", "sha256": "5a90c198d66b2629d6f18a3f868bcf7fc917e9a1853e4da3e5284c2bbd5be9d0"}, {"path": "real/analyze_conf6.py", "sha256": "3f15942fec46def61fdb089a695fb52def08f89b1775d7fab55097195f0d3ac8"}, {"path": "real/hosts/ai_ai.py", "sha256": "6182df0838c1a1ccfa20d651c8ab3c2736186795d7e007da269cbb7163d200db"}, {"path": "real/hosts/llm_bounded.py", "sha256": "53d9f24c262a3f428a33b1a738def924b7d94d5f360535971845ffb6d1f9ed91"}, {"path": "real/pilot/PILOT2_NOTES.md", "sha256": "ea52c249a8115f85cb58a2491d582af6a745565385be53569866ea4282395fc2"}, {"path": "real/pilot/out2/ai_ai_rollout_13_16.json", "sha256": "8a3e700f1c4f9d45686594e3ba3b67de54264ecb6970fc58d7e5450f4688232e"}, {"path": "real/pilot/out2/ai_ai_rollout_1_4.json", "sha256": "15b150d4bdf2f2588e27f914a196621429d97562f4e9d7aeef359ae4077f4ca4"}, {"path": "real/pilot/out2/ai_ai_rollout_5_8.json", "sha256": "80281a69097e60e00b7645fef02cea5630e5bd753638c4a720b1fe55a923e87d"}, {"path": "real/pilot/out2/ai_ai_rollout_9_12.json", "sha256": "78a425cbb57bb3fc19cf4b8cde47c0cc6a0422ea53fbbe8beee578dacbb4d3ff"}, {"path": "real/pilot/out2/ai_ai_v1_13_16.json", "sha256": "636ca789bc68ab179dd710bf5426c93f75e743bae8b5601c1ae10469a0391023"}, {"path": "real/pilot/out2/ai_ai_v1_1_4.json", "sha256": "fa267c668b50f40650c1c45fc8aed059a9dbe0ebf49ce08340accc11b745bbdc"}, {"path": "real/pilot/out2/ai_ai_v1_5_8.json", "sha256": "cb967f648138f29946f2d1528218fd30088c6af163efccbda8ed660139f1d14c"}, {"path": "real/pilot/out2/ai_ai_v1_9_12.json", "sha256": "43d931eda0c11cb5f70097cf191688483c6f6b5250c9007dea4aaf01b9d2d905"}, {"path": "real/pilot/out2/ai_ai_whole_13_16.json", "sha256": "c10f30fdcee622897c4b740536f69466a94b86cbf57b2316f1849594291c23b7"}, {"path": "real/pilot/out2/ai_ai_whole_1_4.json", "sha256": "e892c278afc3aa752fd156646b8a75c748d5ef1e7221c549b99c6ea8e6f55a2a"}, {"path": "real/pilot/out2/ai_ai_whole_5_8.json", "sha256": "0e1f20b42fc86344e4f39aa1f504cb0f029b4c82e5b2eedd8d79846ca60b6811"}, {"path": "real/pilot/out2/ai_ai_whole_9_12.json", "sha256": "84b1572a70a8f0d85ceb4dafa221f0b2121e576d355cb3ac080e7f2ee8e5e431"}, {"path": "real/pilot/pilot2_whole.py", "sha256": "74150d4d5739578ed1ecd884f82d2fee295994de5e41c0ee1fd065e966c0b1df"}, {"path": "real/seed.py", "sha256": "51813143cfbeec90aff64b55afd1ea41df156c6f837f8d27b5f333291ee4ce8b"}, {"path": "real/seed3.py", "sha256": "472845a35c7e72e1d704a01b3a4de90019a3a212f44d81d841a227865f62838f"}, {"path": "real/seed3_ops.py", "sha256": "d846d20461a77e7f046b5bb978b1a86d853d4e678bf2909a17f838805c71d70c"}, {"path": "reproduce_conf6.sh", "sha256": "cd983655c9f6aebd5ded6c256b34b056de6ea3d06ccac1eb87c285adc10db078"}], "seal_file": "real/SEAL_CONF6.txt", "sealed_at": "2026-11-26T04:03:59Z"}, "title": "CONF6: the whole AI-AI system bound to one RSOS structure vs plain rollout", "type": "claim"}, "seq": 8}
10
+ {"entry_hash": "d3d70d58bafd97ab91ce9b9d977d0b5578b27e46f86866074b2fb87575bcbdda", "prev": "dd9852e526b383a60f21662888c0c68dea5555ea1bdae0f212a12c5d0b80eb81", "record": {"consent_harm": {"harm_reports": [], "personal_data": false}, "declarations": {"affects_people": false, "predicted_harm": 0, "serves_mission": true}, "evidence": "simulated", "id": "ff460c82eb467497caecc48aa2c7f260f9cfc272ff13db503cffd30608a09a2c", "lineage": {"parents": ["ed3a1660eb64c5615ff54429ffaf04442b0ed066e63358f5c2c6c5f7eeae76eb"]}, "outcome": {"criteria_met": "all", "result_files": [{"path": "protocol/tests/out/admission_3.json", "sha256": "1189cd39b618a885ac4c535e7e7ec38177fd25e43fdfdbb934431ed5c5e09468"}, {"path": "protocol/tests/out/checks_3.json", "sha256": "0de929282024dd12dde95b732378cdfce6da630e121e2e6cd992ad12dca7da6c"}, {"path": "protocol/tests/out/sync_3.json", "sha256": "a7f1b446386dcc722b323c5f3bdf4044d8be86615cea1ce91fa3b73e4ab2131d"}, {"path": "protocol/tests/RESULTS.md", "sha256": "76e92211c9b165f35d78cad0e1d759c49ee454b29cb6d77aaa938b27ff7727f6"}], "summary": "Admission 600/600 quarantined, 0/200 valid blocked, storage edit detected; every check 30/30 quarantined and named; supersede kept identity; only the edited peer flagged; sync converged moving only what was missing."}, "prediction": {"criteria": "Five sets of criteria fixed in tests/PREDICTIONS.md before the confirming runs (seed 3)"}, "purpose": "Does the protocol quarantine what fails its checks without blocking anything valid, keep identity through supersede, see a corrupted peer, and sync only what is missing?", "rsc": "1.2", "run": {"run_id": "launch-proofs-3", "started_at": "2026-11-26T05:40:47Z", "where": "local, reference implementation"}, "seal": {"commit": "59f9c5d6", "files": [{"path": "protocol/rsc.py", "sha256": "1ccabfbd2331a0a6619617790ca9eebe63f649c264d7eb8a40aed6d65d997b47"}, {"path": "protocol/tests/launch_proofs.py", "sha256": "3e93adf2c56ed28e2e0a798c361951626a526a24d61c41fdd7a6a16dda7f044a"}, {"path": "protocol/tests/proofs_checks.py", "sha256": "7d73995ef08a307176e4ad951155c4c7fb2c07fc21524d1c550f03550a40f04c"}, {"path": "protocol/tests/PREDICTIONS.md", "sha256": "cd954d4a486ed6bb44d01a68925e8a7b6130c1b8b73cc333c402edce86d960d6"}, {"path": "protocol/SPEC.md", "sha256": "e72c34a7996fddf8349a008733d0b80d8808b18a78cddb92671140d3483796a7"}], "seal_file": "protocol/tests/SEAL_RSC.txt", "sealed_at": "2026-11-26T05:39:47Z"}, "title": "RSC v1.2 launch proofs: admission, checks, supersede, peer audit, sync", "type": "claim"}, "seq": 9}
openapi.json ADDED
@@ -0,0 +1,285 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "openapi": "3.1.0",
3
+ "info": {
4
+ "title": "SRC-X.5",
5
+ "version": "1.4",
6
+ "summary": "An open record of sealed claims, verified at the source.",
7
+ "description": "Every node and every static mirror answers the read paths below; only a running node accepts POST /submit. Identity is the SHA-256 of a record's canonical form, so any copy is checked, not trusted.",
8
+ "license": {
9
+ "name": "Apache-2.0",
10
+ "identifier": "Apache-2.0"
11
+ }
12
+ },
13
+ "servers": [
14
+ {
15
+ "url": "https://r-a-elu-architecture.github.io/srcx5/api",
16
+ "description": "static mirror (read)"
17
+ },
18
+ {
19
+ "url": "http://localhost:8787",
20
+ "description": "your own node (read and submit)"
21
+ }
22
+ ],
23
+ "paths": {
24
+ "/ids.json": {
25
+ "get": {
26
+ "operationId": "listIds",
27
+ "summary": "All record ids",
28
+ "responses": {
29
+ "200": {
30
+ "description": "ids",
31
+ "content": {
32
+ "application/json": {
33
+ "schema": {
34
+ "type": "array",
35
+ "items": {
36
+ "type": "string",
37
+ "pattern": "^[0-9a-f]{64}$"
38
+ }
39
+ }
40
+ }
41
+ }
42
+ }
43
+ }
44
+ }
45
+ },
46
+ "/active.json": {
47
+ "get": {
48
+ "operationId": "listActive",
49
+ "summary": "Ids not superseded",
50
+ "responses": {
51
+ "200": {
52
+ "description": "ids",
53
+ "content": {
54
+ "application/json": {
55
+ "schema": {
56
+ "type": "array",
57
+ "items": {
58
+ "type": "string",
59
+ "pattern": "^[0-9a-f]{64}$"
60
+ }
61
+ }
62
+ }
63
+ }
64
+ }
65
+ }
66
+ }
67
+ },
68
+ "/head.json": {
69
+ "get": {
70
+ "operationId": "getHead",
71
+ "summary": "Head of the hash chain",
72
+ "responses": {
73
+ "200": {
74
+ "description": "head",
75
+ "content": {
76
+ "application/json": {
77
+ "schema": {
78
+ "type": "object",
79
+ "required": [
80
+ "head",
81
+ "count"
82
+ ],
83
+ "properties": {
84
+ "head": {
85
+ "type": "string",
86
+ "pattern": "^[0-9a-f]{64}$"
87
+ },
88
+ "count": {
89
+ "type": "integer"
90
+ },
91
+ "srcx5": {
92
+ "type": "string"
93
+ },
94
+ "transport": {
95
+ "type": "string"
96
+ }
97
+ }
98
+ }
99
+ }
100
+ }
101
+ }
102
+ }
103
+ }
104
+ },
105
+ "/log.json": {
106
+ "get": {
107
+ "operationId": "getLog",
108
+ "summary": "The whole chain, in order",
109
+ "responses": {
110
+ "200": {
111
+ "description": "entries",
112
+ "content": {
113
+ "application/json": {
114
+ "schema": {
115
+ "type": "array",
116
+ "items": {
117
+ "type": "object",
118
+ "required": [
119
+ "seq",
120
+ "prev",
121
+ "record",
122
+ "entry_hash"
123
+ ],
124
+ "properties": {
125
+ "seq": {
126
+ "type": "integer"
127
+ },
128
+ "prev": {
129
+ "type": "string",
130
+ "pattern": "^[0-9a-f]{64}$"
131
+ },
132
+ "entry_hash": {
133
+ "type": "string",
134
+ "pattern": "^[0-9a-f]{64}$"
135
+ },
136
+ "record": {
137
+ "$ref": "schema/record.schema.json"
138
+ }
139
+ }
140
+ }
141
+ }
142
+ }
143
+ }
144
+ }
145
+ }
146
+ }
147
+ },
148
+ "/records/{id}.json": {
149
+ "get": {
150
+ "operationId": "getRecord",
151
+ "summary": "One record",
152
+ "parameters": [
153
+ {
154
+ "name": "id",
155
+ "in": "path",
156
+ "required": true,
157
+ "schema": {
158
+ "type": "string",
159
+ "pattern": "^[0-9a-f]{64}$"
160
+ }
161
+ }
162
+ ],
163
+ "responses": {
164
+ "200": {
165
+ "description": "record",
166
+ "content": {
167
+ "application/json": {
168
+ "schema": {
169
+ "$ref": "schema/record.schema.json"
170
+ }
171
+ }
172
+ }
173
+ },
174
+ "404": {
175
+ "description": "unknown id"
176
+ }
177
+ }
178
+ }
179
+ },
180
+ "/ld/{id}.jsonld": {
181
+ "get": {
182
+ "operationId": "getRecordLD",
183
+ "summary": "One record as JSON-LD (W3C PROV)",
184
+ "parameters": [
185
+ {
186
+ "name": "id",
187
+ "in": "path",
188
+ "required": true,
189
+ "schema": {
190
+ "type": "string",
191
+ "pattern": "^[0-9a-f]{64}$"
192
+ }
193
+ }
194
+ ],
195
+ "responses": {
196
+ "200": {
197
+ "description": "JSON-LD",
198
+ "content": {
199
+ "application/ld+json": {
200
+ "schema": {
201
+ "type": "object"
202
+ }
203
+ }
204
+ }
205
+ },
206
+ "404": {
207
+ "description": "unknown id"
208
+ }
209
+ }
210
+ }
211
+ },
212
+ "/.well-known/srcx5.json": {
213
+ "get": {
214
+ "operationId": "discover",
215
+ "summary": "Discovery: versions, head and where the interfaces are",
216
+ "responses": {
217
+ "200": {
218
+ "description": "discovery",
219
+ "content": {
220
+ "application/json": {
221
+ "schema": {
222
+ "type": "object"
223
+ }
224
+ }
225
+ }
226
+ }
227
+ }
228
+ }
229
+ },
230
+ "/health": {
231
+ "get": {
232
+ "operationId": "health",
233
+ "summary": "Node status (running nodes only)",
234
+ "responses": {
235
+ "200": {
236
+ "description": "status",
237
+ "content": {
238
+ "application/json": {
239
+ "schema": {
240
+ "type": "object"
241
+ }
242
+ }
243
+ }
244
+ }
245
+ }
246
+ }
247
+ },
248
+ "/submit": {
249
+ "post": {
250
+ "operationId": "submitRecord",
251
+ "summary": "Submit a record (running nodes only)",
252
+ "requestBody": {
253
+ "required": true,
254
+ "content": {
255
+ "application/json": {
256
+ "schema": {
257
+ "$ref": "schema/record.schema.json"
258
+ }
259
+ }
260
+ }
261
+ },
262
+ "responses": {
263
+ "201": {
264
+ "description": "admitted"
265
+ },
266
+ "202": {
267
+ "description": "quarantined, with reasons (never deleted)"
268
+ },
269
+ "411": {
270
+ "description": "length required"
271
+ },
272
+ "413": {
273
+ "description": "too large"
274
+ },
275
+ "422": {
276
+ "description": "not a JSON object"
277
+ },
278
+ "429": {
279
+ "description": "too many submissions"
280
+ }
281
+ }
282
+ }
283
+ }
284
+ }
285
+ }
schema/record.schema.json ADDED
@@ -0,0 +1,297 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://r-a-elu-architecture.github.io/srcx5/schema/record.schema.json",
4
+ "title": "SRC-X.5 record",
5
+ "description": "One sealed claim, replication, forecast or health report. Its id is the SHA-256 of its canonical form (sorted keys, no spaces, UTF-8) without the id field. Numbers are integers or strings. This schema checks shape; srcx5.py check() applies every rule.",
6
+ "type": "object",
7
+ "$defs": {
8
+ "sha256": {
9
+ "type": "string",
10
+ "pattern": "^[0-9a-f]{64}$"
11
+ },
12
+ "fingerprint": {
13
+ "type": "object",
14
+ "required": [
15
+ "path",
16
+ "sha256"
17
+ ],
18
+ "properties": {
19
+ "path": {
20
+ "type": "string",
21
+ "minLength": 1
22
+ },
23
+ "sha256": {
24
+ "$ref": "#/$defs/sha256"
25
+ }
26
+ }
27
+ },
28
+ "time": {
29
+ "type": "string",
30
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?(Z|[+-]\\d{2}:\\d{2})$"
31
+ }
32
+ },
33
+ "required": [
34
+ "id",
35
+ "type",
36
+ "consent_harm"
37
+ ],
38
+ "properties": {
39
+ "id": {
40
+ "$ref": "#/$defs/sha256"
41
+ },
42
+ "srcx5": {
43
+ "const": "1.3",
44
+ "description": "record format version (v1.4 changed transport only)"
45
+ },
46
+ "rsc": {
47
+ "const": "1.2",
48
+ "description": "records sealed under the earlier name keep this key and their ids"
49
+ },
50
+ "type": {
51
+ "enum": [
52
+ "claim",
53
+ "replication",
54
+ "forecast",
55
+ "health"
56
+ ]
57
+ },
58
+ "title": {
59
+ "type": "string",
60
+ "minLength": 1
61
+ },
62
+ "purpose": {
63
+ "type": "string"
64
+ },
65
+ "evidence": {
66
+ "enum": [
67
+ "real",
68
+ "simulated",
69
+ "both"
70
+ ]
71
+ },
72
+ "prediction": {
73
+ "type": "object",
74
+ "required": [
75
+ "criteria"
76
+ ],
77
+ "properties": {
78
+ "criteria": {
79
+ "type": "string",
80
+ "minLength": 1
81
+ }
82
+ }
83
+ },
84
+ "seal": {
85
+ "type": "object",
86
+ "required": [
87
+ "files",
88
+ "sealed_at"
89
+ ],
90
+ "properties": {
91
+ "files": {
92
+ "type": "array",
93
+ "minItems": 1,
94
+ "items": {
95
+ "$ref": "#/$defs/fingerprint"
96
+ }
97
+ },
98
+ "sealed_at": {
99
+ "$ref": "#/$defs/time"
100
+ },
101
+ "seal_file": {
102
+ "type": "string"
103
+ },
104
+ "commit": {
105
+ "type": "string"
106
+ }
107
+ }
108
+ },
109
+ "run": {
110
+ "type": "object",
111
+ "properties": {
112
+ "started_at": {
113
+ "$ref": "#/$defs/time"
114
+ },
115
+ "run_id": {
116
+ "type": "string"
117
+ },
118
+ "where": {
119
+ "type": "string"
120
+ }
121
+ }
122
+ },
123
+ "outcome": {
124
+ "type": "object",
125
+ "required": [
126
+ "criteria_met"
127
+ ],
128
+ "properties": {
129
+ "criteria_met": {
130
+ "enum": [
131
+ "all",
132
+ "partly",
133
+ "none",
134
+ "pending"
135
+ ]
136
+ },
137
+ "summary": {
138
+ "type": "string"
139
+ },
140
+ "result_files": {
141
+ "type": "array",
142
+ "items": {
143
+ "$ref": "#/$defs/fingerprint"
144
+ }
145
+ }
146
+ }
147
+ },
148
+ "lineage": {
149
+ "type": "object",
150
+ "properties": {
151
+ "parents": {
152
+ "type": "array",
153
+ "items": {
154
+ "$ref": "#/$defs/sha256"
155
+ }
156
+ },
157
+ "identity": {
158
+ "type": "string"
159
+ },
160
+ "source": {
161
+ "type": "string"
162
+ }
163
+ }
164
+ },
165
+ "declarations": {
166
+ "type": "object",
167
+ "properties": {
168
+ "affects_people": {
169
+ "type": "boolean"
170
+ },
171
+ "consent": {
172
+ "type": "boolean"
173
+ },
174
+ "predicted_harm": {
175
+ "type": [
176
+ "integer",
177
+ "string"
178
+ ]
179
+ },
180
+ "serves_mission": {
181
+ "type": "boolean"
182
+ },
183
+ "note": {
184
+ "type": "string"
185
+ }
186
+ }
187
+ },
188
+ "consent_harm": {
189
+ "type": "object",
190
+ "required": [
191
+ "personal_data"
192
+ ],
193
+ "properties": {
194
+ "personal_data": {
195
+ "const": false
196
+ },
197
+ "harm_reports": {
198
+ "type": "array"
199
+ }
200
+ }
201
+ },
202
+ "replicates": {
203
+ "$ref": "#/$defs/sha256"
204
+ },
205
+ "supersedes": {
206
+ "$ref": "#/$defs/sha256"
207
+ },
208
+ "by": {
209
+ "type": "string",
210
+ "minLength": 1
211
+ }
212
+ },
213
+ "oneOf": [
214
+ {
215
+ "required": [
216
+ "srcx5"
217
+ ]
218
+ },
219
+ {
220
+ "required": [
221
+ "rsc"
222
+ ]
223
+ }
224
+ ],
225
+ "allOf": [
226
+ {
227
+ "if": {
228
+ "properties": {
229
+ "type": {
230
+ "const": "claim"
231
+ }
232
+ }
233
+ },
234
+ "then": {
235
+ "required": [
236
+ "title",
237
+ "purpose",
238
+ "prediction",
239
+ "seal",
240
+ "outcome",
241
+ "lineage"
242
+ ]
243
+ }
244
+ },
245
+ {
246
+ "if": {
247
+ "properties": {
248
+ "type": {
249
+ "const": "forecast"
250
+ }
251
+ }
252
+ },
253
+ "then": {
254
+ "required": [
255
+ "title",
256
+ "purpose",
257
+ "prediction",
258
+ "seal",
259
+ "outcome"
260
+ ]
261
+ }
262
+ },
263
+ {
264
+ "if": {
265
+ "properties": {
266
+ "type": {
267
+ "const": "replication"
268
+ }
269
+ }
270
+ },
271
+ "then": {
272
+ "required": [
273
+ "title",
274
+ "replicates",
275
+ "outcome",
276
+ "by"
277
+ ]
278
+ }
279
+ },
280
+ {
281
+ "if": {
282
+ "properties": {
283
+ "type": {
284
+ "const": "health"
285
+ }
286
+ }
287
+ },
288
+ "then": {
289
+ "required": [
290
+ "title",
291
+ "by",
292
+ "outcome"
293
+ ]
294
+ }
295
+ }
296
+ ]
297
+ }
srcx5.py ADDED
@@ -0,0 +1,318 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """SRC-X.5 v1.3: an open record of sealed claims, verified at the source. Reference node, command-line tool and sync, in one file (Python standard library only).
3
+
4
+ A sealed claim record says, checkably: what was intended, what was predicted and by which criteria, which files were
5
+ fixed (fingerprinted) and when, when it ran, what came out, who replicated it, where it came from, and that it carries
6
+ no personal data. Specification: SPEC.md (v1.3: SPEC_SRCX5.md). Records made by v1.2 (rsc.py) stay valid unchanged. Licence: Apache 2.0.
7
+
8
+ python srcx5.py verify <record.json>... [--repo DIR] check records (and, with --repo, every fingerprinted file)
9
+ python srcx5.py admit <record.json> --log DIR run admission and append to a log
10
+ python srcx5.py create --title T --purpose P --criteria C --seal-file F --sealed-at ISO [--run-at ISO] [--parent ID] > rec.json
11
+ python srcx5.py replicate <record-id> --by NAME --outcome all|partly|none --summary S [--log DIR] > rep.json
12
+ python srcx5.py serve --log DIR [--port 8787] [--peer URL]... run a node (HTTP API below)
13
+ python srcx5.py sync --log DIR --peer URL pull only the records this log lacks
14
+ python srcx5.py check-log --log DIR verify the whole hash chain
15
+
16
+ HTTP API of a node: GET /ids, GET /record/<id>, GET /log, GET /head, POST /submit (JSON record) -> 201 or 422 with reasons.
17
+ """
18
+ import argparse, hashlib, json, os, re, sys, threading, urllib.request
19
+ from datetime import datetime
20
+ from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer
21
+
22
+ VERSION = "1.3"
23
+ VERSIONS = ("1.3",)
24
+ LEGACY = ("1.2",) # records sealed under the earlier name keep their key "rsc" and their ids
25
+ KEY = "srcx5"
26
+ TYPES = ("claim", "replication", "forecast", "health")
27
+ EVIDENCE = ("real", "simulated", "both") # where the claim was shown
28
+ OUTCOMES = ("all", "partly", "none", "pending")
29
+ REQUIRED = {"claim": ("title", "purpose", "prediction", "seal", "outcome", "lineage", "consent_harm"),
30
+ "replication": ("title", "replicates", "outcome", "by", "consent_harm"),
31
+ "forecast": ("title", "purpose", "prediction", "seal", "outcome", "consent_harm"),
32
+ "health": ("title", "by", "audits", "outcome", "consent_harm")}
33
+
34
+ MISSION = ("Healing, transforming and evolving, and signalling this to others, for the growth, development, "
35
+ "transformation and healing of all living beings.")
36
+ CHECKS = [("DISCLOSURE", "disclosed and logged before it runs: content matches its id, criteria stated, sealed before the run"),
37
+ ("CONSENT_PRIVACY", "no personal data; everyone affected has consented"),
38
+ ("HARM_BOUND", "declared predicted harm at or below 0.3"),
39
+ ("CONFORMANCE", "version, evidence domain, lineage and references are valid"),
40
+ ("NON_BLOCKING", "a valid record is never blocked (measured in every proof)"),
41
+ ("ATTRIBUTION", "a measured outcome carries fingerprinted results; a replication names who made it"),
42
+ ("PURPOSE", "declares that it serves the stated mission")]
43
+ HARM_MAX = 0.3
44
+ def _luhn(d):
45
+ d = [int(c) for c in d if c.isdigit()]; t = 0
46
+ for i, x in enumerate(reversed(d)): t += x if i % 2 == 0 else (x * 2 - 9 if x > 4 else x * 2)
47
+ return t % 10 == 0
48
+
49
+ PERSONAL = [("email address", re.compile(r"[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}"), None),
50
+ ("phone number", re.compile(r"\+\d{1,3}[ \-]?\(?\d{1,4}\)?(?:[ \-]?\d{2,4}){2,4}"), None),
51
+ ("payment card number", re.compile(r"\b(?:\d[ -]?){13,19}\b"), _luhn),
52
+ ("IBAN", re.compile(r"\b[A-Z]{2}\d{2}[A-Z0-9]{11,30}\b"), None)]
53
+ ALLOW_KEYS = {"sha256", "id", "parents", "prev", "entry_hash", "replicates", "seal_hash", "commit", "run_id"}
54
+
55
+ # ---------- canonical form and identity ----------
56
+ def canon(obj):
57
+ return json.dumps(obj, sort_keys=True, separators=(",", ":"), ensure_ascii=False).encode()
58
+
59
+ def sha(b): return hashlib.sha256(b).hexdigest()
60
+
61
+ def body(rec): return {k: v for k, v in rec.items() if k != "id"}
62
+
63
+ def rec_id(rec): return sha(canon(body(rec)))
64
+
65
+ def finalize(rec):
66
+ rec = dict(rec); rec.setdefault(KEY, VERSION); rec["id"] = rec_id(rec); return rec
67
+
68
+ def ts(s):
69
+ return datetime.fromisoformat(s.replace("Z", "+00:00")) if isinstance(s, str) else None
70
+
71
+ # ---------- admission: the same rules in the node, the CLI and the public workflow ----------
72
+ def _strings(x, path=""):
73
+ if isinstance(x, dict):
74
+ for k, v in x.items():
75
+ if k in ALLOW_KEYS: continue
76
+ yield from _strings(v, f"{path}.{k}")
77
+ elif isinstance(x, list):
78
+ for i, v in enumerate(x): yield from _strings(v, f"{path}[{i}]")
79
+ elif isinstance(x, str): yield path, x
80
+
81
+ def _identity(rec): return (rec.get("lineage") or {}).get("identity") or rec.get("id")
82
+
83
+ def check(rec, known=None, repo=None, known_recs=None):
84
+ """Return a list of reasons; empty means admitted. known: ids already in the log."""
85
+ R = []
86
+ if not isinstance(rec, dict): return ["not a JSON object"]
87
+ if not (rec.get(KEY) in VERSIONS or rec.get("rsc") in LEGACY):
88
+ R.append(f"[CONFORMANCE] version must be {KEY} in {VERSIONS} (or, for earlier records, rsc in {LEGACY})")
89
+ t = rec.get("type")
90
+ if t not in TYPES: R.append(f"type must be one of {TYPES}"); return R
91
+ for k in REQUIRED[t]:
92
+ if k not in rec: R.append(f"[DISCLOSURE] missing field: {k}")
93
+ if R: return R
94
+ if rec.get("id") != rec_id(rec): R.append("[DISCLOSURE] id does not match the record's content (tampered or forged)")
95
+ out = rec["outcome"]
96
+ if not isinstance(out, dict) or out.get("criteria_met") not in OUTCOMES: R.append(f"outcome.criteria_met must be one of {OUTCOMES}")
97
+ if t in ("claim", "forecast"):
98
+ p, s = rec["prediction"], rec["seal"]
99
+ if not isinstance(p, dict) or not p.get("criteria"): R.append("[DISCLOSURE] prediction.criteria must state the pass criteria")
100
+ if not isinstance(s, dict) or not s.get("sealed_at") or not isinstance(s.get("files"), list) or not s["files"]:
101
+ R.append("[DISCLOSURE] seal must list fingerprinted files and sealed_at")
102
+ else:
103
+ for f in s["files"]:
104
+ if not (isinstance(f, dict) and re.fullmatch(r"[0-9a-f]{64}", str(f.get("sha256", ""))) and f.get("path")):
105
+ R.append(f"seal file entry invalid: {f}"); break
106
+ sa, ra = ts(s.get("sealed_at")), ts((rec.get("run") or {}).get("started_at"))
107
+ if sa is None: R.append("seal.sealed_at is not an ISO time")
108
+ elif sa > datetime.now(sa.tzinfo): R.append("[DISCLOSURE] sealed in the future: a seal cannot be dated after its own arrival")
109
+ if ra is not None and sa is not None and not sa < ra: R.append("[DISCLOSURE] sealed after the run started (seal must precede the run)")
110
+ if t == "claim" and out.get("criteria_met") != "pending" and ra is None: R.append("[ATTRIBUTION] a claim with an outcome must give run.started_at")
111
+ if repo:
112
+ for f in s["files"]:
113
+ fp = os.path.join(repo, f["path"])
114
+ if not os.path.exists(fp): R.append(f"fingerprinted file missing in repo: {f['path']}")
115
+ elif sha(open(fp, "rb").read()) != f["sha256"]: R.append(f"fingerprint mismatch: {f['path']}")
116
+ if t == "replication" and known is not None and rec["replicates"] not in known: R.append("[CONFORMANCE] replicates an unknown record")
117
+ for par in (rec.get("lineage") or {}).get("parents", []) if isinstance(rec.get("lineage"), dict) else []:
118
+ if known is not None and par not in known: R.append(f"[CONFORMANCE] lineage parent not in the log: {par[:12]}")
119
+ if True:
120
+ if rec.get("evidence") not in EVIDENCE: R.append(f"[CONFORMANCE] evidence must be one of {EVIDENCE}")
121
+ sp = rec.get("declarations")
122
+ if not isinstance(sp, dict): R.append("[DISCLOSURE] declarations missing")
123
+ else:
124
+ if t != "health" and not rec.get("purpose") and t != "replication": R.append("[DISCLOSURE] purpose not disclosed")
125
+ if sp.get("affects_people") and sp.get("consent") is not True: R.append("[CONSENT_PRIVACY] people are affected and consent is not declared")
126
+ try:
127
+ if float(sp.get("predicted_harm", 0)) > HARM_MAX: R.append(f"[HARM_BOUND] predicted harm above {HARM_MAX}")
128
+ except (TypeError, ValueError): R.append("[HARM_BOUND] predicted harm is not a number")
129
+ if sp.get("serves_mission") is not True: R.append("[PURPOSE] does not declare that it serves the mission")
130
+ if out.get("criteria_met") not in ("pending", None) and t in ("claim", "forecast"):
131
+ if not out.get("result_files"): R.append("[ATTRIBUTION] an outcome must be measured: result files with fingerprints")
132
+ if t == "replication" and not rec.get("by"): R.append("[ATTRIBUTION] a replication must be attributed")
133
+ sup = rec.get("supersedes")
134
+ if sup is not None:
135
+ if known is not None and sup not in known: R.append("[CONFORMANCE] supersedes an unknown record")
136
+ held = (known_recs or {}).get(sup)
137
+ if held is not None and (rec.get("lineage") or {}).get("identity") != _identity(held):
138
+ R.append("[CONFORMANCE] identity must hold: a superseding record keeps the identity of what it supersedes")
139
+ def _floats(x):
140
+ if isinstance(x, float): return True
141
+ if isinstance(x, dict): return any(_floats(v) for v in x.values())
142
+ if isinstance(x, list): return any(_floats(v) for v in x)
143
+ return False
144
+ if _floats(rec): R.append("numbers must be integers or strings (one canonical form in every language)")
145
+ ch = rec["consent_harm"]
146
+ if not isinstance(ch, dict) or ch.get("personal_data") is not False: R.append("[CONSENT_PRIVACY] consent_harm.personal_data must be false (no personal data in the open log)")
147
+ for path, sv in _strings(rec):
148
+ for name, rx, extra in PERSONAL:
149
+ m = rx.search(sv)
150
+ if m and (extra is None or extra(m.group(0))): R.append(f"[CONSENT_PRIVACY] possible {name} in {path}"); break
151
+ return R
152
+
153
+ # ---------- the log: append-only, hash-chained, one JSON line per entry ----------
154
+ class Log:
155
+ def __init__(s, d):
156
+ s.d = d; os.makedirs(d, exist_ok=True); s.f = os.path.join(d, "log.jsonl"); s.lock = threading.Lock()
157
+ s.entries = [json.loads(l) for l in open(s.f)] if os.path.exists(s.f) else []
158
+ s.recs = {}
159
+ for e in s.entries: s.recs[e["record"]["id"]] = e["record"]
160
+
161
+ def head(s): return s.entries[-1]["entry_hash"] if s.entries else "0" * 64
162
+
163
+ def admit(s, rec):
164
+ with s.lock:
165
+ held = s.recs.get(rec.get("id")) if isinstance(rec, dict) else None
166
+ if held is not None: # same id: identical content is a no-op, anything else is tampering
167
+ return [] if canon(held) == canon(rec) else ["id already held with different content (tampered copy)"]
168
+ R = check(rec, known=set(s.recs), known_recs=s.recs)
169
+ if R: # quarantined, not published: kept with its reasons, never deleted
170
+ os.makedirs(os.path.join(s.d, "quarantine"), exist_ok=True)
171
+ with open(os.path.join(s.d, "quarantine", "quarantine.jsonl"), "a") as fh:
172
+ fh.write(json.dumps({"reasons": R, "id": rec.get("id") if isinstance(rec, dict) else None}, ensure_ascii=False) + "\n")
173
+ return R
174
+ e = {"seq": len(s.entries), "prev": s.head(), "record": rec}
175
+ e["entry_hash"] = sha(canon(e)); s.entries.append(e); s.recs[rec["id"]] = rec
176
+ with open(s.f, "a") as fh: fh.write(json.dumps(e, sort_keys=True, ensure_ascii=False) + "\n")
177
+ return []
178
+
179
+ def active(s):
180
+ """The active set: every record not superseded by a later one (a modified clone with the same identity replaces it)."""
181
+ gone = {r.get("supersedes") for r in s.recs.values() if r.get("supersedes")}
182
+ return [i for i in s.recs if i not in gone]
183
+
184
+ def verify_chain(s):
185
+ prev = "0" * 64; bad = []
186
+ for i, e in enumerate(s.entries):
187
+ x = {k: v for k, v in e.items() if k != "entry_hash"}
188
+ if e["seq"] != i or e["prev"] != prev or sha(canon(x)) != e["entry_hash"]: bad.append(i)
189
+ if rec_id(e["record"]) != e["record"]["id"]: bad.append(i)
190
+ prev = e["entry_hash"]
191
+ return sorted(set(bad))
192
+
193
+ def export(s, out):
194
+ """Static read API for GitHub Pages: ids.json, head.json, log.json, records/<id>.json."""
195
+ os.makedirs(os.path.join(out, "records"), exist_ok=True)
196
+ json.dump(sorted(s.recs), open(os.path.join(out, "ids.json"), "w"))
197
+ json.dump(sorted(s.active()), open(os.path.join(out, "active.json"), "w"))
198
+ json.dump({"head": s.head(), "count": len(s.entries), KEY: VERSION}, open(os.path.join(out, "head.json"), "w"))
199
+ json.dump(s.entries, open(os.path.join(out, "log.json"), "w"), ensure_ascii=False, indent=1)
200
+ for i, r in s.recs.items(): json.dump(r, open(os.path.join(out, "records", f"{i}.json"), "w"), ensure_ascii=False, indent=1)
201
+
202
+ # ---------- sync: send only what the receiver lacks ----------
203
+ def get(url):
204
+ with urllib.request.urlopen(url, timeout=30) as r: return r.read()
205
+
206
+ def sync(log, peer):
207
+ """Pull from peer only the records this log lacks, in the peer's log order. Returns (added, bytes moved)."""
208
+ moved = 0; raw = get(peer.rstrip("/") + "/ids"); moved += len(raw)
209
+ missing = [i for i in json.loads(raw) if i not in log.recs]
210
+ if not missing: return 0, moved
211
+ raw = get(peer.rstrip("/") + "/log?ids=" + ",".join(missing)); moved += len(raw)
212
+ added = 0
213
+ for e in json.loads(raw):
214
+ if not log.admit(e["record"]): added += 1
215
+ return added, moved
216
+
217
+ # ---------- peer audit ----------
218
+ def audit(log, peer):
219
+ """Two independent signals about a peer: (1) its own chain does not verify; (2) a record it serves differs from ours.
220
+ Drift is raised only when both agree (never act on a single signal)."""
221
+ entries = json.loads(get(peer.rstrip("/") + "/log"))
222
+ tmp = Log.__new__(Log); tmp.entries = entries; tmp.recs = {e["record"].get("id"): e["record"] for e in entries}
223
+ s1 = tmp.verify_chain() != []
224
+ s2 = any(i in log.recs and canon(log.recs[i]) != canon(r) for i, r in tmp.recs.items()) or \
225
+ any(rec_id(e["record"]) != e["record"].get("id") for e in entries)
226
+ return {"peer": peer, "chain_broken": s1, "content_differs": s2, "drift": bool(s1 and s2), "entries": len(entries)}
227
+
228
+ # ---------- node ----------
229
+ def serve(log, port, peers=(), quiet=False):
230
+ class H(BaseHTTPRequestHandler):
231
+ def log_message(s, *a):
232
+ if not quiet: super().log_message(*a)
233
+ def _send(s, code, obj):
234
+ b = obj if isinstance(obj, bytes) else json.dumps(obj, ensure_ascii=False).encode()
235
+ s.send_response(code); s.send_header("Content-Type", "application/json"); s.send_header("Access-Control-Allow-Origin", "*")
236
+ s.send_header("Content-Length", str(len(b))); s.end_headers(); s.wfile.write(b)
237
+ def do_GET(s):
238
+ path, _, q = s.path.partition("?")
239
+ if path == "/ids": return s._send(200, sorted(log.recs))
240
+ if path == "/head": return s._send(200, {"head": log.head(), "count": len(log.entries), KEY: VERSION})
241
+ if path == "/log":
242
+ want = set(q.split("=", 1)[1].split(",")) if q.startswith("ids=") else None
243
+ return s._send(200, [e for e in log.entries if want is None or e["record"]["id"] in want])
244
+ if path.startswith("/record/"):
245
+ r = log.recs.get(path[len("/record/"):]); return s._send(200, r) if r else s._send(404, {"error": "unknown id"})
246
+ if path == "/active": return s._send(200, sorted(log.active()))
247
+ if path in ("/", "/health"): return s._send(200, {KEY: VERSION, "records": len(log.recs), "active": len(log.active()), "head": log.head(),
248
+ "mission": MISSION, "checks": [c[0] for c in CHECKS],
249
+ "api": ["/ids", "/active", "/head", "/log", "/record/<id>", "POST /submit"]})
250
+ return s._send(404, {"error": "not found"})
251
+ def do_POST(s):
252
+ if s.path != "/submit": return s._send(404, {"error": "not found"})
253
+ n = int(s.headers.get("Content-Length", 0))
254
+ if n > 1_000_000: return s._send(413, {"error": "record too large"})
255
+ try: rec = json.loads(s.rfile.read(n))
256
+ except Exception: return s._send(422, {"admitted": False, "reasons": ["not valid JSON"]})
257
+ R = log.admit(rec)
258
+ return s._send(201 if not R else 202, {"admitted": not R, "quarantined": bool(R), "id": rec.get("id") if isinstance(rec, dict) else None, "reasons": R, "head": log.head()})
259
+ for p in peers:
260
+ try: print("sync from", p, sync(log, p), file=sys.stderr)
261
+ except Exception as e: print("peer unreachable:", p, e, file=sys.stderr)
262
+ srv = ThreadingHTTPServer(("0.0.0.0", port), H)
263
+ return srv
264
+
265
+ # ---------- command line ----------
266
+ def main(argv=None):
267
+ ap = argparse.ArgumentParser(prog="srcx5", description="SRC-X.5 v1.3: an open record of sealed claims"); sub = ap.add_subparsers(dest="cmd", required=True)
268
+ v = sub.add_parser("verify"); v.add_argument("files", nargs="+"); v.add_argument("--repo")
269
+ a = sub.add_parser("admit"); a.add_argument("file"); a.add_argument("--log", required=True)
270
+ c = sub.add_parser("create")
271
+ for k in ("title", "purpose", "criteria", "seal-file", "sealed-at"): c.add_argument("--" + k, required=True)
272
+ c.add_argument("--run-at"); c.add_argument("--parent", action="append", default=[]); c.add_argument("--repo", default=".")
273
+ r = sub.add_parser("replicate"); r.add_argument("id"); r.add_argument("--by", required=True); r.add_argument("--outcome", required=True, choices=OUTCOMES)
274
+ r.add_argument("--summary", required=True); r.add_argument("--log")
275
+ s = sub.add_parser("serve"); s.add_argument("--log", required=True); s.add_argument("--port", type=int, default=int(os.environ.get("PORT", 8787))); s.add_argument("--peer", action="append", default=[])
276
+ y = sub.add_parser("sync"); y.add_argument("--log", required=True); y.add_argument("--peer", required=True)
277
+ k = sub.add_parser("check-log"); k.add_argument("--log", required=True)
278
+ au = sub.add_parser("audit"); au.add_argument("--log", required=True); au.add_argument("--peer", required=True)
279
+ x = sub.add_parser("export"); x.add_argument("--log", required=True); x.add_argument("--out", required=True)
280
+ A = ap.parse_args(argv)
281
+ if A.cmd == "verify":
282
+ bad = 0
283
+ for f in A.files:
284
+ R = check(json.load(open(f)), repo=A.repo); bad += bool(R)
285
+ print(("OK " if not R else "FAIL ") + f + ("" if not R else "\n " + "\n ".join(R)))
286
+ return 1 if bad else 0
287
+ if A.cmd == "admit":
288
+ R = Log(A.log).admit(json.load(open(A.file))); print("admitted" if not R else "rejected:\n " + "\n ".join(R)); return 1 if R else 0
289
+ if A.cmd == "create":
290
+ files = []
291
+ for line in open(A.seal_file):
292
+ if line.strip() and not line.startswith("#"):
293
+ h, p = line.split(None, 1); files.append({"path": p.strip(), "sha256": h})
294
+ rec = {"type": "claim", "title": A.title, "purpose": A.purpose, "prediction": {"criteria": A.criteria},
295
+ "seal": {"files": files, "seal_file": A.seal_file, "sealed_at": A.sealed_at},
296
+ "run": {"started_at": A.run_at} if A.run_at else {}, "outcome": {"criteria_met": "pending"},
297
+ "lineage": {"parents": A.parent}, "consent_harm": {"personal_data": False}}
298
+ print(json.dumps(finalize(rec), indent=1, ensure_ascii=False)); return 0
299
+ if A.cmd == "replicate":
300
+ rec = {"type": "replication", "title": f"Replication of {A.id[:12]}", "replicates": A.id, "by": A.by,
301
+ "outcome": {"criteria_met": A.outcome, "summary": A.summary}, "consent_harm": {"personal_data": False}}
302
+ rec = finalize(rec); R = check(rec, known=set(Log(A.log).recs) if A.log else None)
303
+ if R: print("\n".join(R), file=sys.stderr); return 1
304
+ print(json.dumps(rec, indent=1, ensure_ascii=False)); return 0
305
+ if A.cmd == "serve":
306
+ L = Log(A.log); srv = serve(L, A.port, A.peer); print(f"SRC-X.5 node on :{A.port}, {len(L.recs)} records, head {L.head()[:12]}", file=sys.stderr)
307
+ srv.serve_forever()
308
+ if A.cmd == "sync":
309
+ print("added %d records, %d bytes moved" % sync(Log(A.log), A.peer)); return 0
310
+ if A.cmd == "check-log":
311
+ L = Log(A.log); bad = L.verify_chain(); print(f"{len(L.entries)} entries; chain {'intact' if not bad else 'BROKEN at ' + str(bad)}"); return 1 if bad else 0
312
+ if A.cmd == "audit":
313
+ r = audit(Log(A.log), A.peer); print(json.dumps(r)); return 1 if r["drift"] else 0
314
+ if A.cmd == "export":
315
+ Log(A.log).export(A.out); print("exported to", A.out); return 0
316
+
317
+ if __name__ == "__main__":
318
+ sys.exit(main())
srcx5_anchor.py ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """SRC-X.5 anchors (v1.4.1): stamp the log head on Bitcoin through OpenTimestamps, upgrade pending proofs, report status.
3
+ Replaces `srcx5_net.py anchor`, whose status label read "confirmed" for pending proofs (disclosed in tests/v14/FIX2_ANCHOR.md).
4
+ Status comes from the proof itself: confirmed only when it holds a Bitcoin block-header attestation.
5
+
6
+ python srcx5_anchor.py stamp --log log --dir anchors stamp the current head (if not yet stamped), then upgrade
7
+ python srcx5_anchor.py status --dir anchors upgrade every proof and report pending / confirmed
8
+ """
9
+ import argparse, glob, json, os, subprocess
10
+ import srcx5 as core
11
+
12
+ def state(ots_file):
13
+ subprocess.run(["ots", "upgrade", ots_file], capture_output=True, text=True)
14
+ info = subprocess.run(["ots", "info", ots_file], capture_output=True, text=True).stdout
15
+ return "confirmed" if "BitcoinBlockHeaderAttestation" in info else "pending"
16
+
17
+ def record(d, head, count):
18
+ base = os.path.join(d, head); st = state(base + ".ots")
19
+ rec = {"head": head, "count": count, "network": "bitcoin", "method": "opentimestamps", "proof": head + ".ots", "status": st}
20
+ json.dump(rec, open(base + ".json", "w"), indent=1); return rec
21
+
22
+ def stamp(log, d):
23
+ os.makedirs(d, exist_ok=True); head = log.head(); base = os.path.join(d, head)
24
+ if not os.path.exists(base): open(base, "w").write(head + "\n")
25
+ if not os.path.exists(base + ".ots"): subprocess.run(["ots", "stamp", base], check=True)
26
+ return record(d, head, len(log.entries))
27
+
28
+ def status(d):
29
+ out = []
30
+ for f in sorted(glob.glob(os.path.join(d, "*.json"))):
31
+ r = json.load(open(f))
32
+ if os.path.exists(os.path.join(d, r.get("proof", ""))): out.append(record(d, r["head"], r.get("count")))
33
+ return out
34
+
35
+ def main(argv=None):
36
+ ap = argparse.ArgumentParser(prog="srcx5_anchor"); sub = ap.add_subparsers(dest="cmd", required=True)
37
+ s = sub.add_parser("stamp"); s.add_argument("--log", required=True); s.add_argument("--dir", default="anchors")
38
+ t = sub.add_parser("status"); t.add_argument("--dir", default="anchors")
39
+ A = ap.parse_args(argv)
40
+ print(json.dumps(stamp(core.Log(A.log), A.dir) if A.cmd == "stamp" else status(A.dir), indent=1))
41
+
42
+ if __name__ == "__main__":
43
+ main()
srcx5_install.py ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """SRC-X.5 v1.5.1 (FIX1, tests/v15/FIX1_V15.md): entry points for an installed copy (pip install).
3
+
4
+ An installed copy keeps its interface files (openapi.json, schema/, context.jsonld, MIRRORS.json, NODES.json, llms.txt)
5
+ in <prefix>/share/srcx5, not beside the modules. This launcher points the sealed modules (srcx5_net, srcx5_node; both
6
+ unchanged) at that directory when the files are not beside them, then runs them. Python standard library only.
7
+ """
8
+ import os, sys
9
+ import srcx5_net as net, srcx5_node as node
10
+
11
+ def _locate():
12
+ here = os.path.dirname(os.path.abspath(node.__file__))
13
+ if os.path.exists(os.path.join(here, "openapi.json")): return here
14
+ for d in (os.path.join(sys.prefix, "share", "srcx5"), os.path.join(sys.base_prefix, "share", "srcx5"),
15
+ os.path.join(os.path.expanduser("~"), ".local", "share", "srcx5")):
16
+ if os.path.exists(os.path.join(d, "openapi.json")): return d
17
+ return here
18
+
19
+ def _point():
20
+ d = _locate(); net.HERE = d; node.HERE = d
21
+
22
+ def node_main(argv=None):
23
+ _point(); node.main(argv)
24
+
25
+ def net_main(argv=None):
26
+ _point(); net.main(argv)
27
+
28
+ def mcp_main(argv=None):
29
+ _point(); import srcx5_mcp; srcx5_mcp.main(argv)
30
+
31
+ if __name__ == "__main__":
32
+ node_main()
srcx5_issue.py ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """SRC-X.5 v1.5: submit a record through a GitHub issue (no git needed). Python standard library only.
3
+
4
+ The issue text is data, never code: it is read from a file, parsed as JSON and checked by the same srcx5.check() every
5
+ node runs. Nothing in it is passed to a shell.
6
+ python srcx5_issue.py --body FILE --log DIR [--apply] --out RESULT.json
7
+ Without --apply the record is checked against a copy of the log; with --apply an admitted record is appended.
8
+ """
9
+ import argparse, json, os, re, shutil, sys, tempfile
10
+ import srcx5 as core
11
+
12
+ def extract(text):
13
+ """The record: the first ```json block, else the first {...} span, else the whole text."""
14
+ m = re.search(r"```(?:json)?\s*(\{.*?\})\s*```", text, re.S)
15
+ cand = m.group(1) if m else text[text.find("{"): text.rfind("}") + 1] if "{" in text else text
16
+ return json.loads(cand)
17
+
18
+ def run(body, logdir, apply=False):
19
+ if len(body.encode("utf-8")) > 256_000: return {"admitted": False, "reasons": ["issue text larger than 256 kB"]}
20
+ try: rec = extract(body)
21
+ except Exception: return {"admitted": False, "reasons": ["no JSON record found: paste the record as a ```json block"]}
22
+ if not isinstance(rec, dict): return {"admitted": False, "reasons": ["a record is a JSON object"]}
23
+ target = logdir
24
+ if not apply:
25
+ target = tempfile.mkdtemp(prefix="srcx5_issue_"); shutil.copy(os.path.join(logdir, "log.jsonl"), os.path.join(target, "log.jsonl"))
26
+ log = core.Log(target)
27
+ try: R = log.admit(rec)
28
+ except Exception as e: R = [f"refused: {type(e).__name__}"]
29
+ return {"admitted": not R, "quarantined": bool(R), "id": rec.get("id"), "reasons": R, "head": log.head(), "applied": apply and not R}
30
+
31
+ def main(argv=None):
32
+ ap = argparse.ArgumentParser(prog="srcx5_issue"); ap.add_argument("--body", required=True); ap.add_argument("--log", required=True)
33
+ ap.add_argument("--apply", action="store_true"); ap.add_argument("--out", required=True)
34
+ A = ap.parse_args(argv)
35
+ res = run(open(A.body, encoding="utf-8", errors="replace").read(), A.log, A.apply)
36
+ json.dump(res, open(A.out, "w"), indent=1); print(json.dumps(res))
37
+
38
+ if __name__ == "__main__":
39
+ main()
srcx5_mcp.py ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """SRC-X.5 for AI agents: a Model Context Protocol server over stdio (JSON-RPC 2.0, Python standard library only).
3
+
4
+ Any MCP client (assistants, agent frameworks, IDEs) can list, read, verify and submit records.
5
+ python srcx5_mcp.py --log log work on a local copy of the log
6
+ python srcx5_mcp.py --log log --peer URL ... sync it first from a node or mirror (first that answers)
7
+ Tools: srcx5_list, srcx5_get, srcx5_verify, srcx5_verify_log, srcx5_submit, srcx5_ld.
8
+ """
9
+ import argparse, json, sys
10
+ import srcx5 as core, srcx5_net as net
11
+
12
+ PROTOCOL = "2025-06-18"
13
+ TOOLS = [
14
+ {"name": "srcx5_list", "description": "List the active records of the open log: id, type, title, outcome.",
15
+ "inputSchema": {"type": "object", "properties": {}, "additionalProperties": False}},
16
+ {"name": "srcx5_get", "description": "Return one record by its id (the SHA-256 of its canonical form).",
17
+ "inputSchema": {"type": "object", "properties": {"id": {"type": "string", "pattern": "^[0-9a-f]{64}$"}}, "required": ["id"]}},
18
+ {"name": "srcx5_verify", "description": "Check a record against every rule (identity hash, disclosure, consent and privacy, harm bound, "
19
+ "conformance, attribution, purpose). Give a record object, or the id of a record in the log. Returns the reasons; empty means valid.",
20
+ "inputSchema": {"type": "object", "properties": {"record": {"type": "object"}, "id": {"type": "string"}}}},
21
+ {"name": "srcx5_verify_log", "description": "Verify the whole hash chain of the log. Returns the entry count and any broken entries.",
22
+ "inputSchema": {"type": "object", "properties": {}, "additionalProperties": False}},
23
+ {"name": "srcx5_submit", "description": "Submit a record. Valid records are appended to the log; others are quarantined with reasons, never deleted.",
24
+ "inputSchema": {"type": "object", "properties": {"record": {"type": "object"}}, "required": ["record"]}},
25
+ {"name": "srcx5_ld", "description": "Return a record as JSON-LD in the W3C PROV vocabulary, for linked-data and provenance tools.",
26
+ "inputSchema": {"type": "object", "properties": {"id": {"type": "string"}}, "required": ["id"]}},
27
+ ]
28
+
29
+ def call(log, name, a):
30
+ if name == "srcx5_list":
31
+ return [{"id": i, "type": log.recs[i].get("type"), "title": log.recs[i].get("title"),
32
+ "criteria_met": (log.recs[i].get("outcome") or {}).get("criteria_met")} for i in log.active()]
33
+ if name == "srcx5_get":
34
+ r = log.recs.get(a.get("id", "")); return r if r else {"error": "unknown id"}
35
+ if name == "srcx5_verify":
36
+ rec = a.get("record") if isinstance(a.get("record"), dict) else log.recs.get(a.get("id", ""))
37
+ if rec is None: return {"error": "give a record or a known id"}
38
+ R = core.check(rec, known=set(log.recs), known_recs=log.recs)
39
+ if rec.get("id") in log.recs and core.canon(log.recs[rec["id"]]) == core.canon(rec): R = [x for x in R if "already" not in x]
40
+ return {"valid": not R, "reasons": R}
41
+ if name == "srcx5_verify_log":
42
+ bad = log.verify_chain(); return {"entries": len(log.entries), "intact": not bad, "broken": bad, "head": log.head()}
43
+ if name == "srcx5_submit":
44
+ R = log.admit(a.get("record")) if isinstance(a.get("record"), dict) else ["a record is a JSON object"]
45
+ return {"admitted": not R, "quarantined": bool(R), "reasons": R, "head": log.head()}
46
+ if name == "srcx5_ld":
47
+ r = log.recs.get(a.get("id", "")); return net.ld(r) if r else {"error": "unknown id"}
48
+ raise KeyError(name)
49
+
50
+ def handle(log, msg):
51
+ mid, m, p = msg.get("id"), msg.get("method"), msg.get("params") or {}
52
+ if m == "initialize":
53
+ res = {"protocolVersion": PROTOCOL, "capabilities": {"tools": {"listChanged": False}},
54
+ "serverInfo": {"name": "srcx5", "version": net.NET_VERSION},
55
+ "instructions": "SRC-X.5: an open record of sealed claims. Every record's id is the SHA-256 of its canonical form; verify before you trust."}
56
+ elif m == "tools/list": res = {"tools": TOOLS}
57
+ elif m == "tools/call":
58
+ try:
59
+ out = call(log, p.get("name"), p.get("arguments") or {})
60
+ res = {"content": [{"type": "text", "text": json.dumps(out, ensure_ascii=False)}], "structuredContent": {"result": out}, "isError": False}
61
+ except KeyError: return {"jsonrpc": "2.0", "id": mid, "error": {"code": -32602, "message": f"unknown tool {p.get('name')}"}}
62
+ except Exception as e: res = {"content": [{"type": "text", "text": f"{type(e).__name__}: {e}"}], "isError": True}
63
+ elif m == "ping": res = {}
64
+ elif m and m.startswith("notifications/"): return None
65
+ else: return {"jsonrpc": "2.0", "id": mid, "error": {"code": -32601, "message": f"method not found: {m}"}}
66
+ return {"jsonrpc": "2.0", "id": mid, "result": res}
67
+
68
+ def main(argv=None):
69
+ ap = argparse.ArgumentParser(prog="srcx5_mcp"); ap.add_argument("--log", required=True); ap.add_argument("--peer", action="append", default=[])
70
+ A = ap.parse_args(argv); log = core.Log(A.log)
71
+ if A.peer:
72
+ try: net.sync_any(log, A.peer)
73
+ except Exception as e: print("no peer answered:", e, file=sys.stderr)
74
+ for line in sys.stdin:
75
+ line = line.strip()
76
+ if not line: continue
77
+ try: msg = json.loads(line)
78
+ except Exception: out = {"jsonrpc": "2.0", "id": None, "error": {"code": -32700, "message": "parse error"}}
79
+ else: out = handle(log, msg) if isinstance(msg, dict) else {"jsonrpc": "2.0", "id": None, "error": {"code": -32600, "message": "invalid request"}}
80
+ if out is not None: sys.stdout.write(json.dumps(out, ensure_ascii=False) + "\n"); sys.stdout.flush()
81
+
82
+ if __name__ == "__main__":
83
+ main()
srcx5_net.py ADDED
@@ -0,0 +1,223 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """SRC-X.5 v1.4 network layer: how anyone, at any layer, connects to the open record (Python standard library only).
3
+
4
+ The record rules live in srcx5.py (v1.3, sealed, unchanged). This file adds only connection:
5
+ * one shape everywhere: a running node and a static mirror answer the same paths (ids.json, head.json, log.json,
6
+ records/<id>.json), so a client never needs to know which one it reached;
7
+ * sync from any list of peers or mirrors, in order, with failover: the first that answers is used;
8
+ * a hardened node (size limit, rate limit, strict JSON, never crashes on bad input) that also serves the interfaces
9
+ (OpenAPI, JSON Schema, JSON-LD context, mirror list, llms.txt);
10
+ * a JSON-LD / W3C PROV view of every record, for linked-data and science tools;
11
+ * mirror status (which mirrors hold the current head) and anchoring of the head on public networks.
12
+
13
+ python srcx5_net.py sync --log DIR [--peer URL]... [--mirrors MIRRORS.json] pull what is missing, first peer that answers
14
+ python srcx5_net.py serve --log DIR [--port 8787] [--peer URL]... run a node (both shapes + interfaces)
15
+ python srcx5_net.py export --log DIR --out DIR static mirror: core API + JSON-LD + interfaces
16
+ python srcx5_net.py status --log DIR [--mirrors MIRRORS.json] which mirrors hold this log's head
17
+ python srcx5_net.py anchor --log DIR [--dir anchors] stamp the head on Bitcoin (OpenTimestamps)
18
+ """
19
+ import argparse, json, os, shutil, subprocess, sys, threading, time, urllib.request
20
+ import srcx5 as core
21
+
22
+ NET_VERSION = "1.4"
23
+ HERE = os.path.dirname(os.path.abspath(__file__))
24
+ INTERFACES = ["openapi.json", "schema/record.schema.json", "context.jsonld", "MIRRORS.json", "llms.txt"]
25
+ MAX_BODY = 256_000 # bytes per submission
26
+ RATE = (30, 60) # at most 30 submissions per client per 60 s
27
+
28
+ # ---------- fetching: live node or static mirror, same answer ----------
29
+ def fetch(url, timeout=10):
30
+ req = urllib.request.Request(url, headers={"User-Agent": "srcx5/" + NET_VERSION, "Accept": "application/json"})
31
+ with urllib.request.urlopen(req, timeout=timeout) as r: return r.read()
32
+
33
+ def _ids(peer):
34
+ """(ids, bytes) from a peer of either shape."""
35
+ base = peer.rstrip("/")
36
+ for path in ("/ids.json", "/ids"):
37
+ try: raw = fetch(base + path); return json.loads(raw), len(raw)
38
+ except Exception: continue
39
+ raise ConnectionError(f"no answer from {peer}")
40
+
41
+ def _entries(peer, missing):
42
+ """Log entries (in the peer's chain order) for the missing ids: a live node sends only those; a static mirror sends
43
+ its whole log.json, from which only the missing entries are taken."""
44
+ base = peer.rstrip("/")
45
+ try:
46
+ raw = fetch(base + "/log?ids=" + ",".join(missing))
47
+ ent = json.loads(raw)
48
+ if isinstance(ent, list): return ent, len(raw)
49
+ except Exception: pass
50
+ raw = fetch(base + "/log.json"); want = set(missing)
51
+ return [e for e in json.loads(raw) if e["record"]["id"] in want], len(raw)
52
+
53
+ def sync_one(log, peer):
54
+ ids, moved = _ids(peer)
55
+ missing = [i for i in ids if i not in log.recs]
56
+ if not missing: return 0, moved
57
+ ent, n = _entries(peer, missing); moved += n
58
+ added = 0
59
+ for e in ent:
60
+ r = e.get("record", {})
61
+ if core.rec_id(r) != r.get("id"): continue # a record that does not match its own hash is never taken
62
+ if not log.admit(r): added += 1
63
+ return added, moved
64
+
65
+ def load_mirrors(path=None):
66
+ p = path or os.path.join(HERE, "MIRRORS.json")
67
+ try: return [m["url"] for m in json.load(open(p))["mirrors"]]
68
+ except Exception: return []
69
+
70
+ def sync_any(log, peers):
71
+ """Try each peer in order; the first that answers is used. Returns (peer, added, bytes, tried)."""
72
+ tried = []
73
+ for p in peers:
74
+ try:
75
+ a, m = sync_one(log, p); return p, a, m, tried + [(p, "ok")]
76
+ except Exception as e:
77
+ tried.append((p, type(e).__name__))
78
+ raise ConnectionError("no peer answered: " + ", ".join(f"{p} ({w})" for p, w in tried))
79
+
80
+ # ---------- linked data: a record as W3C PROV in JSON-LD ----------
81
+ def ld(rec):
82
+ i = rec["id"]; t = rec.get("type")
83
+ d = {"@context": "https://r-a-elu-architecture.github.io/srcx5/context.jsonld", "@id": f"urn:srcx5:{i}",
84
+ "@type": ["prov:Entity", "srcx5:" + str(t).capitalize()], "srcx5:id": i, "dct:title": rec.get("title"),
85
+ "srcx5:evidence": rec.get("evidence"), "srcx5:criteriaMet": (rec.get("outcome") or {}).get("criteria_met")}
86
+ if rec.get("purpose"): d["dct:description"] = rec["purpose"]
87
+ seal = rec.get("seal") or {}
88
+ if seal.get("sealed_at"): d["srcx5:sealedAt"] = {"@value": seal["sealed_at"], "@type": "xsd:dateTime"}
89
+ if seal.get("files"): d["srcx5:fingerprint"] = [{"prov:atLocation": f["path"], "srcx5:sha256": f["sha256"]} for f in seal["files"]]
90
+ run = rec.get("run") or {}
91
+ if run.get("started_at"):
92
+ d["prov:wasGeneratedBy"] = {"@type": "prov:Activity", "prov:startedAtTime": {"@value": run["started_at"], "@type": "xsd:dateTime"}}
93
+ par = (rec.get("lineage") or {}).get("parents") or []
94
+ if par: d["prov:wasDerivedFrom"] = [{"@id": f"urn:srcx5:{p}"} for p in par]
95
+ if rec.get("replicates"): d["srcx5:replicates"] = {"@id": f"urn:srcx5:{rec['replicates']}"}
96
+ if rec.get("supersedes"): d["prov:wasRevisionOf"] = {"@id": f"urn:srcx5:{rec['supersedes']}"}
97
+ if rec.get("by"): d["prov:wasAttributedTo"] = {"@type": "prov:Agent", "foaf:name": rec["by"]}
98
+ return {k: v for k, v in d.items() if v is not None}
99
+
100
+ # ---------- static mirror: the core API + linked data + interfaces ----------
101
+ def export(log, out):
102
+ log.export(out) # ids.json, active.json, head.json, log.json, records/<id>.json
103
+ os.makedirs(os.path.join(out, "ld"), exist_ok=True)
104
+ for i, r in log.recs.items(): json.dump(ld(r), open(os.path.join(out, "ld", f"{i}.jsonld"), "w"), ensure_ascii=False, indent=1)
105
+ h = json.load(open(os.path.join(out, "head.json"))); h["transport"] = NET_VERSION
106
+ json.dump(h, open(os.path.join(out, "head.json"), "w"))
107
+ for f in INTERFACES:
108
+ src = os.path.join(HERE, f)
109
+ if os.path.exists(src):
110
+ os.makedirs(os.path.dirname(os.path.join(out, f)) or out, exist_ok=True); shutil.copy(src, os.path.join(out, f))
111
+ os.makedirs(os.path.join(out, ".well-known"), exist_ok=True)
112
+ json.dump({"protocol": "SRC-X.5", "record": core.VERSION, "transport": NET_VERSION, "head": log.head(), "count": len(log.entries),
113
+ "api": "openapi.json", "schema": "schema/record.schema.json", "context": "context.jsonld", "mirrors": "MIRRORS.json"},
114
+ open(os.path.join(out, ".well-known", "srcx5.json"), "w"), indent=1)
115
+
116
+ # ---------- node: both shapes, the interfaces, hardened ----------
117
+ def serve(log, port, peers=(), quiet=True):
118
+ srv = core.serve(log, port, (), quiet)
119
+ Base = srv.RequestHandlerClass
120
+ hits, lock = {}, threading.Lock()
121
+ def files(name):
122
+ p = os.path.join(HERE, name)
123
+ return open(p, "rb").read() if os.path.exists(p) else None
124
+ class H(Base):
125
+ def handle_one_request(s):
126
+ try: super().handle_one_request()
127
+ except Exception:
128
+ try: s._send(400, {"error": "bad request"})
129
+ except Exception: pass
130
+ def do_GET(s):
131
+ path = s.path.partition("?")[0]
132
+ if path == "/ids.json": return s._send(200, sorted(log.recs))
133
+ if path == "/active.json": return s._send(200, sorted(log.active()))
134
+ if path in ("/head.json", "/head"): return s._send(200, {"head": log.head(), "count": len(log.entries), core.KEY: core.VERSION, "transport": NET_VERSION})
135
+ if path == "/log.json": return s._send(200, log.entries)
136
+ if path.startswith("/records/") and path.endswith(".json"):
137
+ r = log.recs.get(path[len("/records/"):-5]); return s._send(200, r) if r else s._send(404, {"error": "unknown id"})
138
+ if path.startswith("/ld/") and path.endswith(".jsonld"):
139
+ r = log.recs.get(path[len("/ld/"):-7]); return s._send(200, ld(r)) if r else s._send(404, {"error": "unknown id"})
140
+ if path == "/.well-known/srcx5.json":
141
+ return s._send(200, {"protocol": "SRC-X.5", "record": core.VERSION, "transport": NET_VERSION, "head": log.head(),
142
+ "count": len(log.entries), "api": "openapi.json", "schema": "schema/record.schema.json",
143
+ "context": "context.jsonld", "mirrors": "MIRRORS.json"})
144
+ if path.lstrip("/") in INTERFACES:
145
+ b = files(path.lstrip("/"))
146
+ if b is not None: return s._send(200, b)
147
+ if path in ("/", "/health"):
148
+ return s._send(200, {core.KEY: core.VERSION, "transport": NET_VERSION, "records": len(log.recs), "active": len(log.active()),
149
+ "head": log.head(), "mission": core.MISSION, "checks": [c[0] for c in core.CHECKS],
150
+ "api": ["/ids", "/ids.json", "/active", "/head", "/log", "/log.json", "/record/<id>", "/records/<id>.json",
151
+ "/ld/<id>.jsonld", "/openapi.json", "/.well-known/srcx5.json", "POST /submit"]})
152
+ return super().do_GET()
153
+ def do_POST(s):
154
+ if s.path != "/submit": return s._send(404, {"error": "not found"})
155
+ ip = s.client_address[0]; now = time.time()
156
+ with lock:
157
+ q = [t for t in hits.get(ip, []) if now - t < RATE[1]]
158
+ if len(q) >= RATE[0]: return s._send(429, {"error": "too many submissions; retry later"})
159
+ hits[ip] = q + [now]
160
+ try: n = int(s.headers.get("Content-Length", ""))
161
+ except ValueError: return s._send(411, {"error": "Content-Length required"})
162
+ if n < 0 or n > MAX_BODY: return s._send(413, {"error": f"record larger than {MAX_BODY} bytes"})
163
+ try: rec = json.loads(s.rfile.read(n).decode("utf-8"))
164
+ except Exception: return s._send(422, {"admitted": False, "reasons": ["not valid UTF-8 JSON"]})
165
+ if not isinstance(rec, dict): return s._send(422, {"admitted": False, "reasons": ["a record is a JSON object"]})
166
+ try: R = log.admit(rec)
167
+ except Exception as e: R = [f"refused: {type(e).__name__}"]
168
+ return s._send(201 if not R else 202, {"admitted": not R, "quarantined": bool(R), "id": rec.get("id"), "reasons": R, "head": log.head()})
169
+ def do_PUT(s): return s._send(405, {"error": "the record is append-only"})
170
+ do_DELETE = do_PATCH = do_PUT
171
+ def do_OPTIONS(s):
172
+ s.send_response(204); s.send_header("Access-Control-Allow-Origin", "*"); s.send_header("Access-Control-Allow-Methods", "GET, POST, OPTIONS")
173
+ s.send_header("Access-Control-Allow-Headers", "Content-Type"); s.end_headers()
174
+ srv.RequestHandlerClass = H
175
+ if peers:
176
+ try: print("synced", sync_any(log, peers)[:3], file=sys.stderr)
177
+ except Exception as e: print("no peer answered:", e, file=sys.stderr)
178
+ return srv
179
+
180
+ # ---------- mirrors and anchors ----------
181
+ def status(log, mirrors):
182
+ out = []
183
+ for m in mirrors:
184
+ try:
185
+ h = json.loads(fetch(m.rstrip("/") + "/head.json"))
186
+ out.append({"mirror": m, "state": "current" if h.get("head") == log.head() else "stale", "count": h.get("count")})
187
+ except Exception as e: out.append({"mirror": m, "state": "down", "why": type(e).__name__})
188
+ return out
189
+
190
+ def anchor(log, d):
191
+ """Stamp the log head on Bitcoin through OpenTimestamps (free; proof final after a few hours, `ots upgrade`)."""
192
+ os.makedirs(d, exist_ok=True); head = log.head(); base = os.path.join(d, head)
193
+ open(base, "w").write(head + "\n")
194
+ if not os.path.exists(base + ".ots"):
195
+ subprocess.run(["ots", "stamp", base], check=True)
196
+ st = subprocess.run(["ots", "upgrade", base + ".ots"], capture_output=True, text=True)
197
+ final = "Success" in (st.stdout + st.stderr) or "complete" in (st.stdout + st.stderr).lower()
198
+ rec = {"head": head, "count": len(log.entries), "network": "bitcoin", "method": "opentimestamps", "proof": os.path.basename(base) + ".ots",
199
+ "status": "confirmed" if final else "pending"}
200
+ json.dump(rec, open(base + ".json", "w"), indent=1)
201
+ return rec
202
+
203
+ # ---------- command line ----------
204
+ def main(argv=None):
205
+ ap = argparse.ArgumentParser(prog="srcx5_net", description="SRC-X.5 v1.4 network layer"); sub = ap.add_subparsers(dest="cmd", required=True)
206
+ y = sub.add_parser("sync"); y.add_argument("--log", required=True); y.add_argument("--peer", action="append", default=[]); y.add_argument("--mirrors")
207
+ s = sub.add_parser("serve"); s.add_argument("--log", required=True); s.add_argument("--port", type=int, default=int(os.environ.get("PORT", 8787)))
208
+ s.add_argument("--peer", action="append", default=[])
209
+ x = sub.add_parser("export"); x.add_argument("--log", required=True); x.add_argument("--out", required=True)
210
+ t = sub.add_parser("status"); t.add_argument("--log", required=True); t.add_argument("--mirrors")
211
+ a = sub.add_parser("anchor"); a.add_argument("--log", required=True); a.add_argument("--dir", default="anchors")
212
+ A = ap.parse_args(argv); L = core.Log(A.log)
213
+ if A.cmd == "sync":
214
+ p, n, m, tried = sync_any(L, A.peer + load_mirrors(A.mirrors)); print(f"from {p}: added {n} records, {m} bytes moved; tried {tried}"); return 0
215
+ if A.cmd == "serve":
216
+ srv = serve(L, A.port, A.peer, quiet=False); print(f"SRC-X.5 node (transport {NET_VERSION}) on :{A.port}, {len(L.recs)} records", file=sys.stderr)
217
+ srv.serve_forever()
218
+ if A.cmd == "export": export(L, A.out); print("exported to", A.out); return 0
219
+ if A.cmd == "status": r = status(L, load_mirrors(A.mirrors)); print(json.dumps(r, indent=1)); return 0 if all(x["state"] == "current" for x in r) else 1
220
+ if A.cmd == "anchor": print(json.dumps(anchor(L, A.dir))); return 0
221
+
222
+ if __name__ == "__main__":
223
+ sys.exit(main())
srcx5_node.py ADDED
@@ -0,0 +1,183 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """SRC-X.5 v1.5: one node that every protocol can reach, and a network that keeps signalling (Python standard library only).
3
+
4
+ The record rules (srcx5.py, v1.3) and the v1.4 network layer (srcx5_net.py, srcx5_mcp.py) are sealed and unchanged.
5
+ This file adds only ways in:
6
+ * MCP over HTTP (Streamable HTTP, JSON responses) at POST /mcp: any cloud agent connects by URL, same six tools as stdio;
7
+ * Agent2Agent (A2A, JSON-RPC) at POST /a2a, described by /.well-known/agent-card.json;
8
+ * OpenAPI 3.1 for the whole node (openapi_v15.json), the format agent platforms import as actions or tools;
9
+ * a status document: which mirrors and nodes hold the head, the Bitcoin proof state and the IPFS content id;
10
+ * write anywhere, converge everywhere: the public log pulls admitted records from every listed node (NODES.json).
11
+
12
+ python srcx5_node.py serve --log DIR [--port 7860] [--peer URL]... node: read API + submit + /mcp + /a2a + agent card
13
+ python srcx5_node.py export --log DIR --out DIR [--base URL] static mirror with the v1.5 documents
14
+ python srcx5_node.py status --log DIR [--anchors DIR] [--ipfs CID] status document (mirrors, nodes, anchors, ipfs)
15
+ python srcx5_node.py pull --log DIR [--nodes NODES.json] pull admitted records from every node that answers
16
+ """
17
+ import argparse, glob, json, os, sys, time
18
+ import srcx5 as core, srcx5_net as net, srcx5_mcp as mcp
19
+
20
+ VERSION = "1.5"
21
+ HERE = os.path.dirname(os.path.abspath(__file__))
22
+ PAGES = "https://r-a-elu-architecture.github.io/srcx5/"
23
+ A2A_VERSION = "0.3.0"
24
+
25
+ def _json(name, default):
26
+ p = os.path.join(HERE, name)
27
+ try: return json.load(open(p))
28
+ except Exception: return default
29
+
30
+ def nodes():
31
+ return [n["url"] for n in _json("NODES.json", {"nodes": []}).get("nodes", []) if n.get("url")]
32
+
33
+ def mirrors():
34
+ return [m["url"] for m in _json("MIRRORS.json", {"mirrors": []}).get("mirrors", [])]
35
+
36
+ # ---------- descriptions every platform reads ----------
37
+ def agent_card(base):
38
+ base = base.rstrip("/")
39
+ skill = lambda i, n, d, ex: {"id": i, "name": n, "description": d, "tags": ["provenance", "pre-registration", "reproducibility"],
40
+ "examples": ex, "inputModes": ["application/json", "text/plain"], "outputModes": ["application/json"]}
41
+ return {"protocolVersion": A2A_VERSION, "name": "SRC-X.5", "version": VERSION,
42
+ "description": "An open record of sealed claims, verified at the source. Lists, reads, verifies and accepts records; "
43
+ "every record's id is the SHA-256 of its canonical form.",
44
+ "url": base + "/a2a", "preferredTransport": "JSONRPC",
45
+ "additionalInterfaces": [{"url": base + "/a2a", "transport": "JSONRPC"}],
46
+ "provider": {"organization": "SRC-X.5 (open protocol)", "url": PAGES},
47
+ "documentationUrl": "https://github.com/r-a-elu-architecture/srcx5",
48
+ "capabilities": {"streaming": False, "pushNotifications": False, "stateTransitionHistory": False},
49
+ "defaultInputModes": ["application/json", "text/plain"], "defaultOutputModes": ["application/json"],
50
+ "skills": [skill(t["name"], t["name"].replace("srcx5_", "").replace("_", " "), t["description"],
51
+ [json.dumps({"tool": t["name"], "arguments": {}})]) for t in mcp.TOOLS]}
52
+
53
+ def openapi(base=None):
54
+ o = json.load(open(os.path.join(HERE, "openapi.json")))
55
+ o["info"]["version"] = VERSION
56
+ o["info"]["description"] = (o["info"].get("description", "") + " v1.5 adds MCP over HTTP (/mcp), A2A (/a2a, /.well-known/agent-card.json) "
57
+ "and a status document (/status.json on static mirrors).").strip()
58
+ o["servers"] = [{"url": PAGES + "api", "description": "static mirror (read)"}] + \
59
+ [{"url": u, "description": "public node (read, submit, MCP, A2A)"} for u in nodes()] + \
60
+ [{"url": "{node}", "description": "any node", "variables": {"node": {"default": base or "http://localhost:7860"}}}]
61
+ rpc = {"type": "object", "required": ["jsonrpc", "method"], "properties": {"jsonrpc": {"const": "2.0"}, "id": {}, "method": {"type": "string"},
62
+ "params": {"type": "object"}}}
63
+ o["paths"]["/mcp"] = {"post": {"operationId": "mcp", "summary": "Model Context Protocol over HTTP (JSON-RPC 2.0; tools srcx5_list, "
64
+ "srcx5_get, srcx5_verify, srcx5_verify_log, srcx5_submit, srcx5_ld). Node only.",
65
+ "requestBody": {"required": True, "content": {"application/json": {"schema": rpc}}},
66
+ "responses": {"200": {"description": "JSON-RPC response", "content": {"application/json": {"schema": {"type": "object"}}}},
67
+ "202": {"description": "notification accepted"}}}}
68
+ o["paths"]["/a2a"] = {"post": {"operationId": "a2a", "summary": "Agent2Agent JSON-RPC: message/send with a data part {tool, arguments}. Node only.",
69
+ "requestBody": {"required": True, "content": {"application/json": {"schema": rpc}}},
70
+ "responses": {"200": {"description": "JSON-RPC response", "content": {"application/json": {"schema": {"type": "object"}}}}}}}
71
+ o["paths"]["/.well-known/agent-card.json"] = {"get": {"operationId": "agentCard", "summary": "A2A agent card",
72
+ "responses": {"200": {"description": "agent card", "content": {"application/json": {"schema": {"type": "object",
73
+ "required": ["name", "url", "version", "skills", "capabilities", "defaultInputModes", "defaultOutputModes"]}}}}}}}
74
+ return o
75
+
76
+ # ---------- A2A: the same six tools, as messages ----------
77
+ def a2a(log, msg):
78
+ mid, m, p = msg.get("id"), msg.get("method"), msg.get("params") or {}
79
+ err = lambda c, t: {"jsonrpc": "2.0", "id": mid, "error": {"code": c, "message": t}}
80
+ if m != "message/send": return err(-32601, f"method not found: {m}")
81
+ parts = ((p.get("message") or {}).get("parts")) or []
82
+ req = next((x.get("data") for x in parts if x.get("kind") == "data" and isinstance(x.get("data"), dict)), None)
83
+ if req is None:
84
+ txt = " ".join(x.get("text", "") for x in parts if x.get("kind") == "text").strip().lower()
85
+ req = {"tool": "srcx5_verify_log"} if "verify" in txt else {"tool": "srcx5_list"}
86
+ try: out = mcp.call(log, req.get("tool"), req.get("arguments") or {})
87
+ except KeyError: return err(-32602, f"unknown tool {req.get('tool')}")
88
+ return {"jsonrpc": "2.0", "id": mid, "result": {"kind": "message", "role": "agent", "messageId": f"srcx5-{time.time_ns()}",
89
+ "parts": [{"kind": "data", "data": {"tool": req.get("tool"), "result": out}}]}}
90
+
91
+ # ---------- the node ----------
92
+ def serve(log, port, peers=(), base=None):
93
+ srv = net.serve(log, port, peers)
94
+ Base = srv.RequestHandlerClass
95
+ url = base or f"http://localhost:{port}"
96
+ class H(Base):
97
+ def _body(s):
98
+ try: n = int(s.headers.get("Content-Length", ""))
99
+ except ValueError: s._send(411, {"error": "Content-Length required"}); return None
100
+ if n < 0 or n > net.MAX_BODY: s._send(413, {"error": f"body larger than {net.MAX_BODY} bytes"}); return None
101
+ try: return json.loads(s.rfile.read(n).decode("utf-8"))
102
+ except Exception: s._send(400, {"jsonrpc": "2.0", "id": None, "error": {"code": -32700, "message": "parse error"}}); return None
103
+ def do_GET(s):
104
+ path = s.path.partition("?")[0]
105
+ if path == "/.well-known/agent-card.json": return s._send(200, agent_card(url))
106
+ if path == "/openapi_v15.json": return s._send(200, openapi(url))
107
+ if path == "/mcp": return s._send(405, {"error": "use POST (Streamable HTTP, JSON responses)"})
108
+ if path in ("/", "/health"):
109
+ return s._send(200, {core.KEY: core.VERSION, "transport": net.NET_VERSION, "node": VERSION, "records": len(log.recs),
110
+ "active": len(log.active()), "head": log.head(), "mission": core.MISSION,
111
+ "connect": {"http": "/openapi_v15.json", "mcp": "POST /mcp", "a2a": "POST /a2a",
112
+ "agent_card": "/.well-known/agent-card.json", "submit": "POST /submit"}})
113
+ return super().do_GET()
114
+ def do_POST(s):
115
+ if s.path not in ("/mcp", "/a2a"): return super().do_POST()
116
+ msg = s._body()
117
+ if msg is None: return
118
+ if not isinstance(msg, dict): return s._send(400, {"jsonrpc": "2.0", "id": None, "error": {"code": -32600, "message": "invalid request"}})
119
+ out = mcp.handle(log, msg) if s.path == "/mcp" else a2a(log, msg)
120
+ if out is None:
121
+ s.send_response(202); s.send_header("Access-Control-Allow-Origin", "*"); s.send_header("Content-Length", "0"); s.end_headers(); return
122
+ return s._send(200, out)
123
+ srv.RequestHandlerClass = H
124
+ return srv
125
+
126
+ # ---------- status: the network signalling ----------
127
+ def _anchors(d):
128
+ out = []
129
+ for f in sorted(glob.glob(os.path.join(d, "*.json"))):
130
+ try: a = json.load(open(f)); out.append({k: a.get(k) for k in ("head", "network", "method", "status", "proof")})
131
+ except Exception: pass
132
+ return out
133
+
134
+ def status(log, anchors=None, ipfs=None, extra_mirrors=()):
135
+ def probe(u):
136
+ t = time.time()
137
+ try:
138
+ h = json.loads(net.fetch(u.rstrip("/") + "/head.json"))
139
+ st = "current" if h.get("head") == log.head() else "stale"
140
+ return {"url": u, "state": st, "count": h.get("count"), "ms": round(1000 * (time.time() - t))}
141
+ except Exception as e: return {"url": u, "state": "down", "why": type(e).__name__}
142
+ return {"protocol": "SRC-X.5", "node": VERSION, "checked_at": time.strftime("%Y-%m-%dT%H:%M:%SZ", time.gmtime()),
143
+ "head": log.head(), "count": len(log.entries), "chain_intact": log.verify_chain() == [],
144
+ "mirrors": [probe(u) for u in list(mirrors()) + list(extra_mirrors)], "nodes": [probe(u) for u in nodes()],
145
+ "anchors": _anchors(anchors) if anchors else [], "ipfs": ({"cid": ipfs, "covers": "the read API directory without status.json (ipfs add -r --cid-version 1)",
146
+ "gateway": f"https://{ipfs}.ipfs.dweb.link/"} if ipfs else None)}
147
+
148
+ def pull(log, urls):
149
+ """Write anywhere, converge everywhere: take from each node what this log lacks; every record is re-checked on arrival."""
150
+ got = []
151
+ for u in urls:
152
+ try: a, moved = net.sync_one(log, u); got.append({"node": u, "added": a, "bytes": moved})
153
+ except Exception as e: got.append({"node": u, "error": type(e).__name__})
154
+ return got
155
+
156
+ def export(log, out, base=PAGES + "api", anchors=None, ipfs=None, probe=True):
157
+ net.export(log, out)
158
+ os.makedirs(os.path.join(out, ".well-known"), exist_ok=True)
159
+ node0 = (nodes() or [None])[0]
160
+ json.dump(agent_card(node0 or base), open(os.path.join(out, ".well-known", "agent-card.json"), "w"), indent=1)
161
+ json.dump(openapi(node0), open(os.path.join(out, "openapi_v15.json"), "w"), indent=1)
162
+ for f in ("NODES.json",):
163
+ if os.path.exists(os.path.join(HERE, f)): json.dump(_json(f, {}), open(os.path.join(out, f), "w"), indent=1)
164
+ if probe: json.dump(status(log, anchors, ipfs), open(os.path.join(out, "status.json"), "w"), indent=1)
165
+
166
+ def main(argv=None):
167
+ ap = argparse.ArgumentParser(prog="srcx5-node"); sub = ap.add_subparsers(dest="cmd", required=True)
168
+ s = sub.add_parser("serve"); s.add_argument("--log", required=True); s.add_argument("--port", type=int, default=int(os.environ.get("PORT", 7860)))
169
+ s.add_argument("--peer", action="append", default=[]); s.add_argument("--base", default=os.environ.get("PUBLIC_URL"))
170
+ e = sub.add_parser("export"); e.add_argument("--log", required=True); e.add_argument("--out", required=True)
171
+ e.add_argument("--anchors"); e.add_argument("--ipfs"); e.add_argument("--no-probe", action="store_true")
172
+ t = sub.add_parser("status"); t.add_argument("--log", required=True); t.add_argument("--anchors"); t.add_argument("--ipfs")
173
+ p = sub.add_parser("pull"); p.add_argument("--log", required=True); p.add_argument("--node", action="append", default=[])
174
+ A = ap.parse_args(argv); log = core.Log(A.log)
175
+ if A.cmd == "serve":
176
+ srv = serve(log, A.port, A.peer, A.base); print(f"SRC-X.5 node {VERSION} on :{A.port} (/mcp, /a2a, /submit)", file=sys.stderr)
177
+ srv.serve_forever()
178
+ elif A.cmd == "export": export(log, A.out, anchors=A.anchors, ipfs=A.ipfs, probe=not A.no_probe)
179
+ elif A.cmd == "status": print(json.dumps(status(log, A.anchors, A.ipfs), indent=1))
180
+ elif A.cmd == "pull": print(json.dumps(pull(log, A.node or nodes()), indent=1))
181
+
182
+ if __name__ == "__main__":
183
+ main()