Skip to content

Arena/01a1087c occupancy types - #7

Merged
hyperpolymath merged 7 commits into
mainfrom
arena/01a1087c-occupancy-types
Oct 4, 2026
Merged

hyperpolymath merged 7 commits into
mainfrom
arena/01a1087c-occupancy-types

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

Summary

Changes

RSR Quality Checklist

Required

  • Tests pass (just test or equivalent)
  • Code is formatted (just fmt or equivalent)
  • Linter is clean (no new warnings or errors)
  • No banned language patterns (no , no npm/bun, no Go/Python)
  • No unsafe blocks without // SAFETY: comments
  • No banned functions (believe_me, unsafeCoerce, Obj.magic, Admitted, sorry)
  • SPDX license headers present on all new/modified source files
  • No secrets, credentials, or .env files included

As Applicable

  • .machine_readable/descriptiles/STATE.a2ml updated (if project state changed)
  • .machine_readable/descriptiles/ECOSYSTEM.a2ml updated (if integrations changed)
  • .machine_readable/descriptiles/META.a2ml updated (if architectural decisions changed)
  • Documentation updated for user-facing changes
  • TOPOLOGY.md updated (if architecture changed)
  • CHANGELOG or release notes updated
  • New dependencies reviewed for license compatibility (MPL-2.0 / MPL-2.0)
  • ABI/FFI changes validated (src/interface/abi/ and src/interface/ffi/ consistent)

Testing

Screenshots

Arena Agent and others added 7 commits October 4, 2026 20:01
Deep recon across echo-types, epistemic-types, residual-evidence-types,
choreographic-types, tropical-types, occupancy-types and absolute-zero,
with the nextgen-typing coordination hub and the satellite repos.

Evidence-tagged: [RAN] (re-run here), [CI] (hosted run with id), [DOC]
(repo's own recorded status), [ISSUE], [INFER]. HEAD SHAs pinned per repo.

Records: what is established, what is nearly there, what is within reach,
what is blocked, and the open research line - plus the estate CI posture
(96/100 startup_failure here; two documented estate mechanisms) and the
named cross-family connection obligations.

Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
- FOLLOWER-NOTES-2026-10-04.md: 12 deep bespoke notes (each pinned to a
  file/commit in the recipient's repo) + 2 lighter notes + triage of all
  269 followers, with an honest coverage statement (14 drafted, ~15 next-up,
  ~35-50 realistic ceiling).
- COORDINATED-PLAN-2026-10-04.md: W1 receipts, W2 interface arrows,
  W3 time-boxed keystones, W4 occupancy rungs through their own gates,
  W5 consumers; dependencies, horizons, refusals and falsifiers.
- Stop tracking src/session_ir/__pycache__ (7 files) and ignore it.

Refs: occupancy-types#6 filed (CI 96/100 startup_failure, untracked).

Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
…ence

- Two ratios, R1 before R2: executed/required (~0/100 today for occupancy's
  gates, 4 of 100 runs had any job) and passed/executed (~100% in every
  proof lane).
- Green must mean executed; STARTUP_FAILURE as failure for required checks.
- Proof lanes carry zero flake tolerance (no flakes found in the window;
  every red had a cause: real breakage, supersede, infrastructure);
  environment drift is the real risk (echo-types#322).
- Tightness is a distribution, not a gate (ULTRAPLAN §6 soundness/tightness
  asymmetry); nothing measured yet — Zephyr fixture is still a request.
- Three kinds of red, three responses; recompute commands.
- Renumber the falsifiers to §7; point W1.8 and the position doc at §6.

Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
…ffolding

The R1 harness reported "toolchain absent" (exit 2). That was accurate but
hid a second, permanent blocker: tests/run_stackcert.sh runs `lake build`
and `lake exe stackcert`, and the repository carried no lakefile.toml and
no lean-toolchain anywhere — so the rung could not have passed even with
Lean installed.

- src/stackcert/lakefile.toml: libs StackcertCore and Parsers, exe
  `stackcert` rooted at Main. src/stackcert/lean-toolchain pins
  leanprover/lean4:v4.15.0 rather than floating it (cf. echo-types#322,
  where an unpinned apt-get install lets the prover change under the
  proofs without a commit).
- .github/workflows/proofs.yml: stackcert job (elan, strict) and occ-idris
  job (Idris 2 v0.7.0 over Chez Scheme, continue-on-error until its first
  green run, because a rung that has never executed anywhere yields
  information on red, not a regression). Only actions/checkout is used, so
  the allow-list posture under investigation (#6) cannot kill these jobs.
- .github/workflows/session-ir.yml: the Session IR rung is the estate's
  only fully-green result (14/14) and had no CI lane at all. Adds the 14
  pinned fixtures plus the kill-test audit and repo-shape gates, on the
  runner's system python3 (the module is pure standard library).
- Pin two action refs the pinning gate already rejected on main:
  haskell-actions/setup and SonarSource/sonarqube-scan-action. The gate
  now exits 0 for the first time on this branch.

Docs: retraction-ledger gains both new blocked rows (with their CI paths)
and the stacked-blocker finding; EXPLAINME C4/C5 record the CI path and
state that the #print axioms output is pasted only after a real green run;
the three recon docs convert to AsciiDoc (estate rule: no .md under
docs/) and the unsent follower drafts leave the public repo.

Gate: bash scripts/check.sh --runnable-only -> exit 0, proofs correctly
BLOCKED rather than skipped.

Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
…around

The outage reproduces in the current hour: the push of d5caaca produced run
37236457077 (event push, 21:31:42Z) with conclusion startup_failure and
jobs=0, while all 37 workflows report state "active". The workflow files
themselves pass the local gates (SPDX header in the leading comment block,
top-level permissions:, and check-action-pinning.js at exit 0), so jobs die
at start — the signature of an allow-list in `selected` mode with an empty
pattern set, as in choreographic-programming#16.

GET /repos/{owner}/{repo}/actions/permissions returns 403 to this session, so
the posture cannot be read from inside the repository. The runbook gives the
owner one command to run, maps all three possible outputs to their fix
(including the case where the posture is NOT the cause and the PUT should not
be applied), recommends `allowed_actions=all` over a narrow pattern list
because a missing pattern fails as jobs=0 — the failure being fixed — and
closes with a positive control that counts jobs rather than reading badges.

Ultraplan: A1 marked as the sole blocker for Tranche A, pointing at the
runbook; §0 records the fresh receipt.

Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
… means

The owner's first attempt returned 404. That is a routing error, not a
permissions answer: `gh api occupancy-types/actions/permissions` has no such
route, while `repos/hyperpolymath/occupancy-types/actions/permissions` exists
and answers (403 for this session, whose App token cannot read the endpoint at
any scope). Both facts verified directly on 2026-10-04.

Records the three statuses a reader can now expect and what each means —
404 bad route, 403 integration-token (unfixable by scope, needs a user
login), 403 missing scope (fixable with gh auth refresh -s admin:repo_hook) —
so the owner does not read a 404 as "no permission" and stop.

Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
An earlier revision told the owner to run `gh auth refresh -s
admin:repo_hook`. That scope governs webhooks, not Actions settings, so it
would have done nothing useful.

Verified against GitHub's REST documentation for the repository-level
Actions permissions endpoints: a classic PAT/OAuth token needs the `repo`
scope, and a fine-grained PAT needs "Administration" repository permissions
(read to GET, write to PUT). The organisation-level endpoints are the ones
needing admin:org / Administration org permissions, and they do not apply
here — hyperpolymath is a user account, so the repository-level setting is
authoritative.

Also documents two things that were previously glossed over: `gh auth
refresh` only works for OAuth/browser logins (a stored PAT cannot have
scopes added to it; that needs a new token), and the settings page at
/settings/actions shows the same three-way choice with no token at all —
now the recommended route, since it is also where the fix is applied.

Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
@hyperpolymath
hyperpolymath merged commit 0cc0042 into main Oct 4, 2026
1 of 2 checks passed
@hyperpolymath
hyperpolymath deleted the arena/01a1087c-occupancy-types branch October 4, 2026 22:13
@coderabbitai

coderabbitai Bot commented Oct 4, 2026

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 9184e4b9-fd2d-4436-a243-8321db535a1a
📥 Commits

Reviewing files that changed from the base of the PR and between 2e276c3 and 5f93477.

⛔ Files ignored due to path filters (7)
  • src/session_ir/__pycache__/__init__.cpython-311.pyc is excluded by !**/*.pyc
  • src/session_ir/__pycache__/__main__.cpython-311.pyc is excluded by !**/*.pyc
  • src/session_ir/__pycache__/checker.cpython-311.pyc is excluded by !**/*.pyc
  • src/session_ir/__pycache__/cli.cpython-311.pyc is excluded by !**/*.pyc
  • src/session_ir/__pycache__/machine.cpython-311.pyc is excluded by !**/*.pyc
  • src/session_ir/__pycache__/parser.cpython-311.pyc is excluded by !**/*.pyc
  • src/session_ir/__pycache__/syntax.cpython-311.pyc is excluded by !**/*.pyc
📒 Files selected for processing (13)
  • .github/workflows/pages.yml
  • .github/workflows/proofs.yml
  • .github/workflows/session-ir.yml
  • .github/workflows/sonarqube.yml
  • .gitignore
  • docs/EXPLAINME.adoc
  • docs/recon/A1-ACTIONS-RUNBOOK.adoc
  • docs/recon/COORDINATED-PLAN-2026-10-04.adoc
  • docs/recon/TYPE-FAMILY-POSITION-2026-10-04.adoc
  • docs/recon/ULTRA-PLAN-2026-10-04.adoc
  • docs/retraction-ledger.adoc
  • src/stackcert/lakefile.toml
  • src/stackcert/lean-toolchain
 ________________________________________
< I'm a lean, mean, code review machine. >
 ----------------------------------------
  \
   \   \
        \ /\
        ( )
      .( o ).
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant