Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
4cb5a9c
ultraplan: a generator for a data-first tech tree
claude Nov 24, 2026
2e7b202
ultraplan: the tech tree of Mathesis, with ten advisors
claude Nov 24, 2026
ebc3921
ultraplan: apply the owner's answers of 2026-11-24
claude Nov 24, 2026
20ba5c4
ultraplan: X-PF1 decides the token order, not the other way round
claude Nov 24, 2026
8411860
ultraplan: answer the review of PR 123
claude Nov 24, 2026
e69a9f3
ultraplan: the me advisor's notes live in a private GELS panel
claude Nov 24, 2026
a77fe79
ultraplan: answer Codex's second review of PR 123
claude Nov 24, 2026
ec874f2
ultraplan: answer Codex's third review of PR 123
claude Nov 24, 2026
8c129b8
ultraplan: checks as rule tables, each rule with a witness
claude Nov 24, 2026
3964c96
ultraplan: answer Codex's fourth review of PR 123
claude Nov 24, 2026
cbd7ae9
ultraplan: answer Codex's fifth review of PR 123
claude Nov 24, 2026
d373198
ultraplan: answer CodeRabbit's review of cbd7ae9
claude Nov 24, 2026
891a469
ultraplan: the frontier's first sentence honours full slots
claude Nov 24, 2026
4440b8c
ultraplan: answer Codex's review of 891a469
claude Nov 24, 2026
16df240
ultraplan: answer Codex's review of 4440b8c
claude Nov 24, 2026
9e2bf63
ultraplan: the lineage option has landed in standards
claude Nov 24, 2026
e6f0f41
ultraplan: the me advisor names no public pick (owner ruling)
claude Nov 24, 2026
25992cf
ultraplan: answer the reviews of e6f0f41
claude Nov 24, 2026
358be7d
ultraplan: record the ruling that GELS pins the feed by commit
claude Nov 24, 2026
f77f90b
Merge branch 'main' into claude/determined-archimedes-2giyuq-ultraplan
hyperpolymath Nov 24, 2026
1aab6a6
registry: a claim id uses only characters its view can carry
claude Nov 25, 2026
a0f73c8
ultraplan: read an ADR's status as AsciiDoc does; keep summaries text
claude Nov 25, 2026
b1d915e
ultraplan: one backreference for the block delimiters
claude Nov 25, 2026
5bf747f
ultraplan: never accept an ADR Asciidoctor would not; registry paths
claude Nov 25, 2026
8599174
Merge main into the ultraplan branch (#124, engineering receipts)
claude Nov 25, 2026
ed01342
ultraplan: "= Status" is a title, not a section; no typed counts
claude Nov 25, 2026
7eac1c2
ultraplan: refs point at checked passages; the ADR reader over-counts
claude Nov 25, 2026
f8fa199
ultraplan: read a heading's title without backtracking
claude Nov 25, 2026
2538608
ultraplan: every path read or written stays in the repository
claude Nov 25, 2026
8d1fbf3
ultraplan: GELS is the Git Estate Logistics System, not the display
claude Nov 25, 2026
8f1b761
ultraplan: every text is plain, and the page shows it as written
claude Nov 25, 2026
cb15753
decisions: an ADR states its status in its header, in step with its p…
claude Nov 25, 2026
682d6f4
ultraplan, site: read only files git tracks; texts shown as written
claude Nov 25, 2026
6d96935
repo names by GitHub's rule; ADRs read as tracked files; no counters
claude Nov 25, 2026
fa1c8d4
adr-status: a status entry in any letter case counts; two Sonar smells
claude Nov 25, 2026
c87d6c8
ultraplan: say plainly how the contrarian picks; test its tie-break
claude Nov 25, 2026
8688510
repo/github: an owner login has single hyphens only
claude Nov 25, 2026
76963ba
adr-status: a status the readers refuse fails the check, not "unset"
claude Nov 25, 2026
ba016e7
site builds into a fresh tree; underlined Status; checkout names kept
claude Nov 25, 2026
d86947c
ultraplan: Mathesis hosts its own visual proof space (owner ruling)
claude Nov 25, 2026
9d4b1e8
repo/files: local paths stay inside; no live node needs a dropped one
claude Nov 25, 2026
04aecce
repo/files: strict UTF-8, runnable programs only; no bidi controls
claude Nov 25, 2026
0d20d1a
adr-status: the Status word ends at a Unicode word boundary
claude Nov 25, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 66 additions & 0 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ https://semver.org/spec/v2.0.0.html[Semantic Versioning].

==== Fixed

* **A repository named `../..` is no longer accepted.** The census, the claims
registry, engineering receipts and the ultraplan each checked `OWNER/REPO`
with a pattern like `[-\w.]+/[-\w.]+`, which accepts dot segments. A
github.com link made from such a name resolves, in a browser, to some other
page. All of them now use one rule, GitHub's own, in `scripts/repo/github.mjs`:
a login (single hyphens only, none at either end), then a repository name
that is not dots alone. Every name in the current data passes it.
* **A `CI/gate` publisher may not filter `workflow_run` by branch.**
GitHub applies `branches` and `branches-ignore` to the triggering run's
branch, so a filtered publisher never posts the status on a PR head and the
Expand Down Expand Up @@ -72,6 +79,65 @@ https://semver.org/spec/v2.0.0.html[Semantic Versioning].

==== Added

* **The ultraplan: a tech tree of Mathesis, data first.** `docs/ultraplan/`
holds three JCS JSON Lines files:
** `tree.jsonl`, the nodes, whose needs are the edges;
** `advisors.jsonl`, the council;
** `expeditions.jsonl`, the return tickets.
+
`scripts/ultraplan/ultraplan.mjs` generates `generated/ultraplan.adoc` and a
picture, `generated/tree.svg`. They show the eras, the frontier, the forks,
the confluences and each advisor's pick (the private me advisor names none), all
derived and none typed.
+
The generator refuses:
** a done node without evidence that holds: a file that git tracks, a claim
grade the registry derives, or an accepted ADR. Every file the checks read
(evidence, refs, ADRs, the registry view and the plan's own sources) is
one git tracks, at its own path: no link along it, nothing untracked,
nothing in `.git`, and valid UTF-8 (a malformed byte is an error, never
a silent U+FFFD). `scripts/repo/files.mjs` reads them, so a clone and
a linked worktree read the same; An ADR is accepted only when its
header states `:status: ACCEPTED` and its Status section agrees (owner
ruling 2026-11-25), each read by `scripts/decisions/adr-status.mjs` so
that it never finds a status Asciidoctor would not. A record holding an
inline reference that changes an attribute (`{set:...}`, `{counter:...}`
or `{counter2:...}`; a counter turns ACCEPTED into ACCEPTEE) has no
readable header. `just adr-check` reads the records git tracks, each at
its own path, and fails when `docs/decisions` is a link. A record whose
status the readers refuse fails the check; only a record that states no
status at all is listed as unset;
** a done node whose needs are not done, and a node still in play that needs
a dropped node (it could never start);
** a cycle;
** more than three active nodes;
** a ref that does not point at one place: each names a passage that occurs
exactly once in a file here, a path here, a file of another repository at
a full commit, or an issue, and never a line number;
** a text the page could not show as written: one holding a control
character, a line or paragraph separator (U+2028, U+2029), a
bidirectional formatting control, a run of
spaces, or a space at its start or end. Every text is plain text (owner
ruling 2026-11-25): the page writes each ASCII punctuation mark in it as a
character reference, so it shows exactly as written and forms no markup;
** any note from the private me advisor.
+
`just ultraplan` and `just ultraplan-check` run it, and `check-views` includes
the check. A line not in JCS form is named with the command that writes its
form; no error message echoes a record. The site copies a view's pictures,
so the tree's image works there.
* **The site reads nothing from outside the repository.** `scripts/site/site.mjs`
reads each view, the front page's sources and each asset it copies only as a
file git tracks, at its own path, and fails the build otherwise. Asciidoctor
now runs in secure mode, so an `include::` in a view becomes a link, which
the link check refuses, instead of the included file's text: in safe mode,
with the base directory at `/`, a view could include any file on the
system. The output is otherwise byte-identical. A link to a repository file
becomes a GitHub link only when git tracks the file. The build writes only
into a fresh output directory (absent, or empty and not a link), so a link
left in an old output tree cannot make it overwrite a file elsewhere.
`site-check` now runs the site tests, so CI runs them; it did not before.

* The 27 `hyperpolymath/resource-algebra` claims move their pin to `a17ffb6`
(2026-11-17), whose receipt describes `47de4a8`, the merge of
hyperpolymath/resource-algebra#36. F-5 now names `maps-disagree-at-positive`,
Expand Down
37 changes: 32 additions & 5 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ check: check-views site-check check-proofs receipt-check
# Needs bun, network for the receipts, and MATHESIS_STANDARDS (see `registry`).
# Views current: catalogue, census tests, atlas, claims registry, bridges and
# the worked cohort examples
check-views: catalogue-check census-test atlas-check registry-check applied-check
check-views: catalogue-check census-test atlas-check registry-check applied-check ultraplan-check adr-check repo-files-test

# Needs agda, coqc and lean, e.g. in the pinned Guix:
# guix time-machine -C build/channels.scm -- shell -m build/manifest.scm -- just check-proofs
Expand Down Expand Up @@ -797,6 +797,32 @@ applied-check:
bun scripts/applied/cohort.mjs check
bun test tests/applied/

# Regenerate the ultraplan (the tech tree of Mathesis) from docs/ultraplan/*.jsonl:
# the page docs/ultraplan/generated/ultraplan.adoc and its picture tree.svg
ultraplan:
bun scripts/ultraplan/ultraplan.mjs build

# Fail if the ultraplan views are stale, or the tree's data is not sound: an unknown
# or cyclic need, a done node without evidence that holds, too many active nodes.
# Claim evidence is read from the registry view, so registry-check runs first: a
# stale view would let a done node rest on a grade the receipts no longer give.
ultraplan-check: registry-check
bun scripts/ultraplan/ultraplan.mjs check
bun test tests/ultraplan/

# Test what the generators may read from the repository: a file that git tracks,
# at its own path, with no link along it (scripts/repo/files.mjs). The ultraplan's
# evidence and the site's views and assets are read only so.
repo-files-test:
bun test tests/repo/

# Fail if a decision record's header status (`:status:`) and its Status section
# disagree, or only one of them states a status (owner ruling 2026-11-25). A
# record that states neither is listed, for the owner to set.
adr-check:
bun scripts/decisions/adr-status.mjs check
bun test tests/decisions/

# ── mathesis: static site of the generated views (re-anchoring plan WO 4.3) ──

# Build the site into OUT (default: a fresh temp dir; never a tracked path).
Expand All @@ -805,15 +831,16 @@ applied-check:
site out="":
bun scripts/site/site.mjs build {{out}}

# Build the site into a temp dir, then discard it. `check` runs this, so CI
# builds the site on every pull request and push to main.
site-check:
# Test the site, then build it into a temp dir and discard it. `check` runs
# this, so CI tests and builds the site on every pull request and push to main.
site-check: site-test
#!/usr/bin/env bash
set -euo pipefail
out="$(mktemp -d)"
trap 'rm -rf "$out"' EXIT
bun scripts/site/site.mjs build "$out"

# Test the front-page generator and the link check (no asciidoctor needed)
# Test the front page, the link check, and that the build reads nothing from
# outside the repository. Needs asciidoctor, as `site` does.
site-test:
bun test tests/site/
1 change: 1 addition & 0 deletions docs/decisions/0000-template.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: CC-BY-SA-4.0
// Copyright (c) Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk>
= Architecture Decision Record: 0000-template
:status: PROPOSED
// SPDX-License-Identifier: CC-BY-SA-4.0
// Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) <6759885+hyperpolymath@users.noreply.github.com>

Expand Down
1 change: 1 addition & 0 deletions docs/decisions/0001-adopt-rsr-standard.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: CC-BY-SA-4.0
// Copyright (c) Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk>
= Architecture Decision Record: 0001-adopt-rsr-standard
:status: ACCEPTED
// SPDX-License-Identifier: CC-BY-SA-4.0
// Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) <6759885+hyperpolymath@users.noreply.github.com>

Expand Down
1 change: 1 addition & 0 deletions docs/decisions/0002-variant-contract.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: CC-BY-SA-4.0
// Copyright (c) Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk>
= Architecture Decision Record: 0002-variant-contract
:status: ACCEPTED

NOTE: Superseded in part (2026-10-06, rsr-template-repo#209): the `.a2ml` files named below no longer exist; their facts are clauses of the repo deed (`*_chora.deed`). The variant contract is the `(variant)` clause that `just repo-init` writes into a minted child's deed.

Expand Down
1 change: 1 addition & 0 deletions docs/decisions/0003-forge-and-sustain-lifecycle.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: CC-BY-SA-4.0
// Copyright (c) Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk>
= Architecture Decision Record: 0003-forge-and-sustain-lifecycle
:status: ACCEPTED

NOTE: Superseded in part (2026-10-06, rsr-template-repo#209): the `.a2ml` files named below no longer exist; their facts are clauses of the repo deed (`*_chora.deed`). `just repo-init` writes the `(rsr-profile)`, `(variant)` and `(provenance)` clauses into a minted child's deed, and an archetype is `archetypes/<name>/<name>_praxis.deed`.

Expand Down
1 change: 1 addition & 0 deletions docs/decisions/0004-claims-registry.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: CC-BY-SA-4.0
// Copyright (c) Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk>
= Architecture Decision Record: 0004-claims-registry
:status: ACCEPTED

== 4. A theorem-level claims registry that derives grades and never assigns them

Expand Down
1 change: 1 addition & 0 deletions docs/decisions/0005-jcs-json-receipt.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: CC-BY-SA-4.0
// Copyright (c) Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk>
= Architecture Decision Record: 0005-jcs-json-receipt
:status: PROPOSED

== 5. The claims registry also reads a proof receipt written as canonical JCS I-JSON

Expand Down
59 changes: 59 additions & 0 deletions docs/decisions/README.adoc
Original file line number Diff line number Diff line change
@@ -1,3 +1,62 @@
// SPDX-License-Identifier: CC-BY-SA-4.0
// Copyright (c) Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk>
= decisions Unit

== The status of a decision record

Each decision record (`NNNN-title.adoc`) states its status twice, and the two
must agree (owner ruling 2026-11-25):

* once in its document header, as the attribute `:status:`, on a line of the
header (the title line and the lines after it, up to the first blank line);
* once in its prose, as the first word of its Status section.

The header uses the words of the ADR template (`0001-template.adoc`, with
REJECTED from `0000-template.adoc`), written exactly so: `PROPOSED`, `ACCEPTED`,
`DEPRECATED`, `SUPERSEDED by NNNN` or `REJECTED`. The Status section may write
the word in any case and add what it likes after it, such as "*Accepted
(ratified by owner 2026-11-10).*".

[source,asciidoc]
----
= Architecture Decision Record: 0004-claims-registry
:status: ACCEPTED

== 4. A theorem-level claims registry ...

=== Status

*Accepted (ratified by owner 2026-11-10).* ...
----

`just adr-check` (part of `just check-views`) runs
`scripts/decisions/adr-status.mjs check`. It fails when a record's header and
Status section disagree, when only one of them states a status, or when a
record states a status the readers refuse to read (for example, beside a
preprocessor directive or under a heading such as "Status quo"). It reads the
records that git tracks here, each at its own path: when this directory, or a
record, is a link, the check fails and reads nothing through it. A record that
states no status at all (no `status` entry, no heading that could read Status,
whether `== Status` or `Status` over an underline, no directive that could bring
one in) is listed, for the owner to set; it does
not count as accepted.

Both are read conservatively, so the reader never finds a status Asciidoctor
would not:

* The header is the title line, after any blank lines and line comments, and
the lines up to the first blank line. Each of those lines is a line comment or
an attribute entry, and none ends in a continuation. Exactly one line in the
whole record sets or unsets `status`, in any letter case (Asciidoctor reads
`:Status:` as `:status:`), and it is in the header. A preprocessor
directive, or an inline reference that changes an attribute (`{set:...}`,
`{counter:...}` or `{counter2:...}`), anywhere leaves the header unread: a
counter turns ACCEPTED into ACCEPTEE.
* In the Status section, every line that could be a heading titled Status counts,
inside a block or not. The section is read only when exactly one does, and that
one is a plain section heading (`==` to `======`, then `Status`) whose first
paragraph opens with the word, ending where no letter, number or combining mark
of any script follows (so "Acceptedé" is not "Accepted").

Only a record whose header says ACCEPTED, with a Status section that agrees, can
stand as evidence in the ultraplan.
60 changes: 60 additions & 0 deletions docs/status/ROADMAP.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ Phase `incubating`, maturity `experimental` (the deed's `(status)` and
truth". The stages are under <<stages>>; the rulings that steer them are
under <<rulings>>.

What comes next is drawn as a tech tree, the ultraplan
(link:../ultraplan/generated/ultraplan.adoc[`docs/ultraplan/generated/ultraplan.adoc`],
from the data in `docs/ultraplan/`). Its frontier is the work that is ready, to
start when an active slot is free, and each advisor of the council, except the
private me advisor, names a pick from it. This roadmap keeps the record of what happened; the tree says what each
piece enables.

=== Proven lifecycle registration (2026-11-25)

The Proven owner has retained production Idris lifecycle proof checks, negative
Expand Down Expand Up @@ -439,3 +446,56 @@ scheduled census, a view of what each repository owes
the source of generated Agda; proofs in Agda, Rocq and Lean; three pull
requests; the laws of the integer instance proved in the second pull
request.
* Ultraplan (2026-11-24), through the selector:
** The plan is a data-first tech tree. Views are generated from the data, and
`just check` checks them.
** The advisors are the owner's six (mathematician, scientist, engineer,
economist, publisher, me) and four more (soundness auditor, estate
cartographer, teacher, contrarian).
** The me advisor is private. Its notes stay outside this repository and every
feed, in a private panel the owner owns, and a node carries at most the
tag `owner_value`. It names no public pick: the page lists the tagged
frontier nodes unranked, and the owner chooses in that panel.
** Off-tree trips are return tickets: each is grafted onto the tree or
archived with what it taught.
** The maths panel waits on a feed and panel contract. The estate coordinator
has answered: a read-only feed, one panel type, and open decisions sent to
the owner's decision desk.
** The feed's reader pins by commit (owner ruling 2026-11-24). Mathesis
commits the feed as a generated view, which `just check` refuses when
stale. The reader asks the GitHub API for the head commit of main, then
reads the feed at that commit, so each read names its commit. The fetch
logic and its rate limits belong to the reader. Mathesis needs no new
permission and holds no inbound secret.
** These rulings were recorded while the panel was taken to be in GELS, a name
now retired. See the clarification of 2026-11-25 below.
* Owner clarification (2026-11-25): two systems had been mixed up. The owner
named them the same day (relayed to this work by the estate hub session).
Both are in metadatastician:
** MPSCI is the Master Production and Scheduling Command Interface.
** GELO is the Git Estate Logistics Office. It was called GELS, the Git
Estate Logistics System; "GELS" is retired.
** Earlier text here and in the ultraplan called that system GELS, and "the
estate display". Which system, MPSCI or GELO, shows the maths panel and the
owner's private panel, and reads the feed, is open for the owner. The
panel node is now `maths-panel`.
** The feed-panel contract thread, the estate coordinator and the decision
desk were told of the clarification the same day.
* Owner rulings (2026-11-25), through the selector:
** Plan texts are plain text everywhere: in the data, on the page and in the
feed. The page writes each ASCII punctuation mark in a text as a character
reference, so the text shows as written and forms no markup.
** An ADR's status becomes a header attribute, `:status:`, kept in step with
its Status section.
** Guix proof CI gets one estate-wide fix at source, queued as its own task
(CI upkeep, on a cheaper model).
* Owner rulings (2026-11-25), through the decision desk:
** Mathesis hosts its own visual proof space: the maths panel and the
owner's private me panel live in Mathesis. MPSCI only links to it, with a
summary card or a link. GELO is not involved yet. The me panel's notes
still stay outside this public repository and every feed (ruling
2026-11-24). The `maths-panel` node is now open.
** Agent pull requests are committed through the GitHub API, so each commit
carries GitHub's verified (web-flow) signature; the owner re-signs
nothing. The signature attests GitHub and the owner's account, not the
estate signing key (a doctrine 9 note).
Loading
Loading