Skip to content

Commit 007d749

Browse files
Establish checked Echo foundations and executable repository contracts (#360)
Establish checked Echo foundations, source/documentation reconciliation, pinned proof lanes, and executable repository contracts. Final candidate e539609 passed all 30 required checks. Ratchet-exception: .machine_readable/root-allow.txt — register the canonical chora deed, coordination contract, explicit Gitbot enrollment, and container context exclusions; no proof or security suppression is added by this ledger. Ratchet-exception: .hypatia-ignore — record alert 331 as a reviewed false positive for fixed read-only Git argv through execFileSync with shell:false in tools/audit-inventory.mjs; re-review if these calls change.
1 parent cd85288 commit 007d749

154 files changed

Lines changed: 4933 additions & 3858 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.containerignore‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# SPDX-License-Identifier: MPL-2.0
2+
# Exclude local receipts, VCS internals and generated interfaces from build context.
3+
.git
4+
build/audit-*
5+
**/*.agdai
6+
**/_build

‎.gitbot-fleet/enrolment.json‎

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"reporters": {
3+
"accessibilitybot": {
4+
"enrolled": false,
5+
"reason": "No checked-in HTML input for the pinned reporter. Pages HTML is generated by pinned Ddraig and was locally built; this fleet adapter did not analyze it."
6+
},
7+
"cipherbot": {
8+
"enrolled": false,
9+
"reason": "no cryptographic implementation is present; dependency checksum pins are not crypto implementation evidence"
10+
},
11+
"echidnabot": {
12+
"enrolled": false,
13+
"reason": "Agda proofs are present, but no ECHIDNA engine is configured for this producer and the pinned report-back adapter has no engine dispatch"
14+
},
15+
"finishingbot": {
16+
"enrolled": true,
17+
"title": "finishingbot (release readiness)"
18+
},
19+
"glambot": {
20+
"enrolled": true,
21+
"title": "glambot (presentation quality)"
22+
},
23+
"panicbot": {
24+
"enrolled": false,
25+
"reason": "no Cargo.toml or Rust source is present; panic-attack has a separate explicit local recipe"
26+
},
27+
"rhodibot": {
28+
"enrolled": true,
29+
"title": "rhodibot (RSR compliance)"
30+
},
31+
"seambot": {
32+
"enrolled": false,
33+
"reason": "no seam register is declared (spec/seams/seam-register.json)"
34+
},
35+
"sustainabot": {
36+
"enrolled": false,
37+
"reason": "reserved fleet slot; no reporter adapter exists at the pinned fleet revision"
38+
}
39+
},
40+
"schema": 1
41+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
SPDX-License-Identifier: MPL-2.0
2+
SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<!-- SPDX-License-Identifier: CC-BY-SA-4.0 -->
2+
<!-- SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk> -->
3+
# Fleet report-backs
4+
5+
This directory intentionally contains no committed report-back JSON. The read-only producer pinned at gitbot-fleet `34908580b98cd354caa3bfc5a000bc7935957fce` writes per-run `<member>.json` envelopes to the `fleet-report-backs` artifact; the consumer renders those envelopes with the checked source revision.
6+
7+
[../enrolment.json](../enrolment.json) declares applicability, not permission to remediate, commit, push, or certify proofs. Rhodibot, finishingbot, and glambot are enrolled for this Agda/documentation repository. Other members carry explicit reasons for non-enrolment; Agda proofs remain present even though no ECHIDNA engine integration is configured.
8+
9+
A successful producer job means the report-back driver completed, not that every adapter succeeded or that the repository passed. Missing, failed, or unreadable evidence must retain its reported status. Do not commit generated envelopes or substitute an empty successful report for a missing scan.

‎.github/CODE_OF_CONDUCT.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<!-- SPDX-License-Identifier: CC-BY-SA-4.0 -->
2+
<!-- SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell -->
3+
4+
# Code of conduct
5+
6+
See the canonical [code of conduct](../CODE_OF_CONDUCT.adoc).
7+
This discovery pointer does not change that document's policy or existing licence terms.

‎.github/CONTRIBUTING.md‎

Lines changed: 3 additions & 108 deletions
Original file line numberDiff line numberDiff line change
@@ -1,109 +1,4 @@
1-
# Contributing to echo-types
1+
<!-- SPDX-License-Identifier: CC-BY-SA-4.0 -->
2+
<!-- SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk> -->
23

3-
Thank you for your interest. Echo-types is a constructive Agda
4-
formalisation; contribution discipline reflects the proof-bearing nature
5-
of the codebase.
6-
7-
## Sign-off
8-
9-
All commits require Developer Certificate of Origin sign-off:
10-
11-
git commit -s -m "feat: ..."
12-
13-
## Branches
14-
15-
- `main` — protected; only fast-forward from approved PRs.
16-
17-
- `feat/<topic>` — feature branches, squash-merge.
18-
19-
- `fix/<topic>` — bug-fix branches.
20-
21-
## Pre-merge checklist
22-
23-
1. `just` `verify` passes (full Agda type-check pass against
24-
`proofs/agda/All.agda` and the test suites).
25-
26-
2. CHANGELOG.md updated under `[Unreleased]`.
27-
28-
3. Significant changes are recorded in CHANGELOG.md (item 2). The
29-
former `STATE.a2ml` record was retired on 2026-09-30.
30-
31-
4. **Banned constructs.** No new `believe_me`, `assert_total`,
32-
`postulate`, `sorry`, `Admitted`, `unsafeCoerce`, or `Obj.magic`
33-
introduced. Estate-wide policy.
34-
35-
5. **Guardrails are CI-enforced.** All `.agda` files under
36-
`proofs/agda/**` must declare `{-#` `OPTIONS` `--safe` `--without-K`
37-
`#-}` at the top. `tools/check-guardrails.sh` runs at CI time across
38-
every file (regardless of `All.agda` membership) and fails on:
39-
missing `--safe` / `--without-K`, escape pragmas (`TERMINATING`,
40-
`REWRITE`, `NO_POSITIVITY_CHECK`, etc.), `postulate` in code, or
41-
unsafe primitives (`primTrustMe`, `primEraseEquality`, `trustMe`).
42-
The `Exploratory` classification in
43-
`docs/echo-types/echo-kernel-note.adoc` only excuses `All.agda`
44-
membership — it does NOT excuse the guardrail. If you need
45-
postulates for a demo or earn-back-gate consumer, the file must live
46-
outside `proofs/agda/` (no current non-guarded path exists; widening
47-
the guardrail’s allowlist requires a separate design discussion).
48-
49-
6. **EI-2 discipline.** Per the retired state record, frozen at
50-
<https://github.com/hyperpolymath/echo-types/blob/39a7a99cbe19a918843e9624010510b5fc3b8366/.machine_readable/6a2/STATE.a2ml>
51-
(section `ei-2`), the integration-recipe distinctness investigation is
52-
*terminated negatively* and is not to be reopened. If a change
53-
touches that territory, read that record's `ei-2` section first; the
54-
`forbidden-rebrandings` list is a hard fence.
55-
56-
7. **Naming traps.** `ModeGraded` (with trailing `d`) is canonical;
57-
never `ModeGrade`. See the frozen record's `naming-traps` section.
58-
59-
## Reviews
60-
61-
At least one maintainer review (see MAINTAINERS.adoc). Bridge-module
62-
changes (the cross-system bridges in `proofs/agda/Echo*Bridge*.agda`)
63-
need attention because they fix the load-bearing distinctness story;
64-
flag them for explicit review.
65-
66-
## Contribution model — Tri-Perimeter Contribution Framework (TPCF)
67-
68-
echo-types follows the estate-wide **Tri-Perimeter Contribution
69-
Framework (TPCF)** — graduated trust without gatekeeping:
70-
71-
- **Perimeter 1 — Core Systems (maintainers only).** The proof kernel:
72-
`proofs/agda/Echo.agda`, the identity-claim spine, the bridge modules,
73-
the `All.agda` / `Smoke.agda` wiring, and the guardrail tooling.
74-
Direct commits by maintainers only.
75-
76-
- **Perimeter 2 — Expert Extensions (trusted contributors).** New proof
77-
modules, decoration instances, and ordinal-track slices. Apply via
78-
issue → review → merge under the relevant `proofs/agda/` path with the
79-
build invariant green.
80-
81-
- **Perimeter 3 — Community Sandbox (open to all).** Docs (`.adoc`),
82-
tutorial walkthroughs, wiki pages, `.well-known/` content, and spec
83-
proposals.
84-
85-
### Fork workflow
86-
87-
External contributors use the standard **fork**-and-pull-request
88-
workflow: fork the repository, branch from `main`, run `just` `validate`
89-
locally (full Agda verify + kernel-guard), and open a PR. Maintainers
90-
(Perimeter 1) may commit directly to feature branches. Every PR must
91-
keep `All.agda` + `Smoke.agda` green under `--safe` `--without-K` and
92-
introduce no banned constructs (see the pre-merge checklist above).
93-
94-
## Signed commits
95-
96-
Every commit that reaches the default branch must be signed; a ruleset refuses
97-
unsigned pushes. Estate policy:
98-
[SIGNING-POLICY](https://github.com/hyperpolymath/standards/blob/main/docs/SIGNING-POLICY.adoc).
99-
100-
- **People and interactive agents** sign with an SSH key registered on GitHub
101-
as a *signing* key (`gpg.format=ssh`, `user.signingkey=<key>.pub`,
102-
`commit.gpgsign=true`). The committer email must be verified on that account.
103-
- **Apps, bots and workflows** never `git push` local commits. They write
104-
through the API (`createCommitOnBranch` or the estate `signed-push` action)
105-
so that GitHub signs each commit.
106-
- Merge PRs with **squash**. The ruleset checks every commit on the PR branch,
107-
not just the result, so one unsigned commit blocks the merge. Re-create such a
108-
branch with signed commits (`git cherry-pick -S`) and open a new PR.
109-
Rebase-merge replays commits unsigned and is disabled.
4+
See the current [contribution guide](../CONTRIBUTING.md) at the repository root.

‎.github/copilot/coding-agent.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
mcp_servers:
22
boj-server:
3-
command: npx
4-
args: ["-y", "@hyperpolymath/boj-server@latest"]
3+
command: bunx
4+
args: ["--bun", "@hyperpolymath/boj-server@0.4.7"]
55
env:
66
BOJ_URL: http://localhost:7700

‎.github/workflows/actions.lock‎

Lines changed: 44 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,41 @@
44
version: 'v0.0.3'
55
workflows:
66
'.github/workflows/agda.yml':
7+
- 'actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9'
78
- 'actions/cache@v6.1.0'
9+
- 'actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1'
810
- 'actions/checkout@v7.0.1'
911
'.github/workflows/codeql.yml':
12+
- 'actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1'
1013
- 'actions/checkout@v7.0.1'
14+
- 'github/codeql-action@9b3254085494b55a0f7c4c2b3d2d52cc712ce370'
1115
- 'github/codeql-action@v4.39.1'
12-
'.github/workflows/governance.yml':
13-
- 'metadatastician/standards@75bd5994470661a099df562d6d5ad2fe744dbd66'
16+
'.github/workflows/governance.yml': []
1417
'.github/workflows/hypatia-scan.yml':
1518
- 'actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9'
1619
- 'actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1'
20+
- 'actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333'
21+
- 'actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9'
1722
- 'erlef/setup-beam@54075bcc5e249e4758d363f27d099f55d843f124'
1823
- 'github/codeql-action@9b3254085494b55a0f7c4c2b3d2d52cc712ce370'
1924
'.github/workflows/label-triage.yml': []
2025
'.github/workflows/labels.yml': []
21-
'.github/workflows/mirror.yml':
22-
- 'metadatastician/standards@75bd5994470661a099df562d6d5ad2fe744dbd66'
26+
'.github/workflows/metadata.yml':
27+
- 'actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1'
28+
'.github/workflows/mirror.yml': []
2329
'.github/workflows/pages.yml':
30+
- 'actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1'
2431
- 'actions/checkout@v7.0.1'
32+
- 'actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346'
2533
- 'actions/deploy-pages@v5.0.1'
34+
- 'actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9'
2635
- 'actions/upload-pages-artifact@v5.0.0'
2736
'.github/workflows/push-email-notify.yml':
37+
- 'hyperpolymath/smtp-notify-action@e384daf6167a7a7567642d6a62060106244d2413'
2838
- 'hyperpolymath/smtp-notify-action@v0.5.1'
29-
'.github/workflows/scorecard.yml':
30-
- 'metadatastician/standards@75bd5994470661a099df562d6d5ad2fe744dbd66'
31-
'.github/workflows/secret-scanner.yml':
32-
- 'metadatastician/standards@75bd5994470661a099df562d6d5ad2fe744dbd66'
39+
- 'step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e'
40+
'.github/workflows/scorecard.yml': []
41+
'.github/workflows/secret-scanner.yml': []
3342
dependencies:
3443
'actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9':
3544
ref: 'v6.1.0'
@@ -51,11 +60,21 @@ dependencies:
5160
commit: 'sha1-3d3c42e5aac5ba805825da76410c181273ba90b1'
5261
owner_id: 44036562
5362
repo_id: 197814629
63+
'actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346':
64+
ref: 'v5.0.1'
65+
commit: 'sha1-368f82528645a54fb793d4d04e342629a3f51346'
66+
owner_id: 44036562
67+
repo_id: 438112499
5468
'actions/deploy-pages@v5.0.1':
5569
ref: 'v5.0.1'
5670
commit: 'sha1-368f82528645a54fb793d4d04e342629a3f51346'
5771
owner_id: 44036562
5872
repo_id: 438112499
73+
'actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333':
74+
ref: 'v8.0.2'
75+
commit: 'sha1-9000827ccba6bdab643e8b6fd33ac0654aef8333'
76+
owner_id: 44036562
77+
repo_id: 192626254
5978
'actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f':
6079
ref: 'v7.0.0'
6180
commit: 'sha1-bbbca2ddaa5d8feaa63e36b76fdaad77386f024f'
@@ -66,28 +85,20 @@ dependencies:
6685
commit: 'sha1-cf430e030ddbb5b0abf93d22962f4752f3646cd9'
6786
owner_id: 44036562
6887
repo_id: 192625955
88+
'actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9':
89+
ref: 'v5.0.0'
90+
commit: 'sha1-fc324d3547104276b827a68afc52ff2a11cc49c9'
91+
owner_id: 44036562
92+
repo_id: 496012378
93+
uses:
94+
- 'actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f'
6995
'actions/upload-pages-artifact@v5.0.0':
7096
ref: 'v5.0.0'
7197
commit: 'sha1-fc324d3547104276b827a68afc52ff2a11cc49c9'
7298
owner_id: 44036562
7399
repo_id: 496012378
74100
uses:
75101
- 'actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f'
76-
'denoland/setup-deno@22d081ff2d3a40755e97629de92e3bcbfa7cf2ed':
77-
ref: 'v2.0.5'
78-
commit: 'sha1-22d081ff2d3a40755e97629de92e3bcbfa7cf2ed'
79-
owner_id: 42048915
80-
repo_id: 356423100
81-
'dtolnay/rust-toolchain@e2a55d2ffb04f378e9626c28d38b36d230d1e12f':
82-
ref: 'v1'
83-
commit: 'sha1-e2a55d2ffb04f378e9626c28d38b36d230d1e12f'
84-
owner_id: 1940490
85-
repo_id: 260749683
86-
'editorconfig-checker/action-editorconfig-checker@51f63319f592f97930c73d9c46184d20bd206393':
87-
ref: 'v3.0.0'
88-
commit: 'sha1-51f63319f592f97930c73d9c46184d20bd206393'
89-
owner_id: 26415196
90-
repo_id: 297874902
91102
'erlef/setup-beam@54075bcc5e249e4758d363f27d099f55d843f124':
92103
ref: 'v1.24.1'
93104
commit: 'sha1-54075bcc5e249e4758d363f27d099f55d843f124'
@@ -98,50 +109,23 @@ dependencies:
98109
commit: 'sha1-9b3254085494b55a0f7c4c2b3d2d52cc712ce370'
99110
owner_id: 9919
100111
repo_id: 259445878
101-
'github/codeql-action@b96794f015dfd88f77b49b1c93e0fa7110f94c63':
102-
ref: 'v4.38.0'
103-
commit: 'sha1-b96794f015dfd88f77b49b1c93e0fa7110f94c63'
104-
owner_id: 9919
105-
repo_id: 259445878
106112
'github/codeql-action@v4.39.1':
107113
ref: 'v4.39.1'
108114
commit: 'sha1-9b3254085494b55a0f7c4c2b3d2d52cc712ce370'
109115
owner_id: 9919
110116
repo_id: 259445878
117+
'hyperpolymath/smtp-notify-action@e384daf6167a7a7567642d6a62060106244d2413':
118+
ref: 'v0.5.1'
119+
commit: 'sha1-e384daf6167a7a7567642d6a62060106244d2413'
120+
owner_id: 6759885
121+
repo_id: 1352485172
111122
'hyperpolymath/smtp-notify-action@v0.5.1':
112123
ref: 'v0.5.1'
113124
commit: 'sha1-e384daf6167a7a7567642d6a62060106244d2413'
114125
owner_id: 6759885
115126
repo_id: 1352485172
116-
'metadatastician/standards@75bd5994470661a099df562d6d5ad2fe744dbd66':
117-
ref: '75bd5994470661a099df562d6d5ad2fe744dbd66'
118-
commit: 'sha1-75bd5994470661a099df562d6d5ad2fe744dbd66'
119-
owner_id: 297579217
120-
repo_id: 1116521501
121-
uses:
122-
- 'actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9'
123-
- 'actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1'
124-
- 'actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9'
125-
- 'denoland/setup-deno@22d081ff2d3a40755e97629de92e3bcbfa7cf2ed'
126-
- 'dtolnay/rust-toolchain@e2a55d2ffb04f378e9626c28d38b36d230d1e12f'
127-
- 'editorconfig-checker/action-editorconfig-checker@51f63319f592f97930c73d9c46184d20bd206393'
128-
- 'erlef/setup-beam@54075bcc5e249e4758d363f27d099f55d843f124'
129-
- 'github/codeql-action@b96794f015dfd88f77b49b1c93e0fa7110f94c63'
130-
- 'ossf/scorecard-action@2d1146689b8cda280b9bc96326124645441f03bc'
131-
- 'oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6'
132-
- 'webfactory/ssh-agent@e83874834305fe9a4a2997156cb26c5de65a8555'
133-
'ossf/scorecard-action@2d1146689b8cda280b9bc96326124645441f03bc':
134-
ref: 'v2.4.4'
135-
commit: 'sha1-2d1146689b8cda280b9bc96326124645441f03bc'
136-
owner_id: 67707773
137-
repo_id: 421101922
138-
'oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6':
139-
ref: 'v2.2.0'
140-
commit: 'sha1-0c5077e51419868618aeaa5fe8019c62421857d6'
141-
owner_id: 108928776
142-
repo_id: 512644635
143-
'webfactory/ssh-agent@e83874834305fe9a4a2997156cb26c5de65a8555':
144-
ref: 'v0.10.0'
145-
commit: 'sha1-e83874834305fe9a4a2997156cb26c5de65a8555'
146-
owner_id: 135788
147-
repo_id: 208510314
127+
'step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e':
128+
ref: 'v2.14.2'
129+
commit: 'sha1-5ef0c079ce82195b2a36a210272d6b661572d83e'
130+
owner_id: 88700172
131+
repo_id: 422287306

0 commit comments

Comments
 (0)