Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
10 changes: 6 additions & 4 deletions .github/workflows/compilation_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,12 @@ jobs:
working-directory: impl/rust-cli
run: cargo test --verbose

- name: Run ignored tests (stress)
working-directory: impl/rust-cli
run: cargo test --test stress_tests -- --ignored --test-threads=1
continue-on-error: true # Stress tests may timeout on slow runners
# The ignored stress suite (tests/stress_tests.rs) is not run here. It ran
# under `continue-on-error: true`, which hid its state (Hypatia RE005):
# on 2026-11-16, 5 of its tests fail outright and 2 run for more than two
# minutes each, so this step only ever burned the job's 30-minute timeout.
# Run it by hand with `cargo test --test stress_tests -- --ignored` until
# the suite is repaired and can gate honestly.

# ============================================================
# MSRV (Minimum Supported Rust Version)
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/governance.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# SPDX-License-Identifier: MPL-2.0
# governance.yml — single wrapper calling the shared estate governance bundle
# in hyperpolymath/standards instead of carrying per-repo copies.
# in metadatastician/standards instead of carrying per-repo copies.
#
# Replaces the per-repo governance scaffolding removed in the same commit:
# quality.yml, guix-nix-policy.yml, npm-bun-blocker.yml, ts-blocker.yml,
# quality.yml, guix-guix-policy.yml, npm-bun-blocker.yml, ts-blocker.yml,
# security-policy.yml, rsr-antipattern.yml, wellknown-enforcement.yml,
# workflow-linter.yml
#
Expand All @@ -19,9 +19,8 @@ on:
workflow_dispatch:

# Estate guardrail: cancel superseded runs so re-pushes / rebased PR
# updates do not pile up queued runs against the shared account-wide
# Actions concurrency pool. Applied only to read-only check workflows
# (no publish/mutation), so cancelling a superseded run is always safe.
# updates don't pile up queued runs. Safe — governance is read-only
# policy linting with no publish or mutation.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand All @@ -32,4 +31,8 @@ permissions:

jobs:
governance:
uses: hyperpolymath/standards/.github/workflows/governance-reusable.yml@092dedada188f56c5915f74a5fd40aac093742c3 # standards main 2026-06-01
# Pinned to a SHA (not @main) per the estate supply-chain policy —
# matches the sibling repos' pin (e.g. ochrance-framework). Bump
# deliberately, never float: an unpinned reusable workflow is an
# unpinned trust boundary. mirror.yml / scorecard.yml already pin.
uses: metadatastician/standards/.github/workflows/governance-reusable.yml@ba640e9a57f22608710ffecdca282074eac55a0b
10 changes: 10 additions & 0 deletions .github/workflows/hypatia-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,16 @@ jobs:
timeout-minutes: 30

steps:
# Hypatia RE001: the scan job holds GITHUB_TOKEN and the fleet PAT next
# to fetched code (the Hypatia and gitbot-fleet clones, the mix build).
# Audit mode records every outbound connection without blocking; the
# job's endpoints (hex.pm, GitHub, the Elixir builds) are too many to
# enumerate safely as a block list here.
- name: Monitor outbound requests (audit)
uses: step-security/harden-runner@1d88384fd173af6ecb012dfd0264a306b711241a # v2.22.4
with:
egress-policy: audit

- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v6.0.2
with:
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/instant-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ jobs:
env:
FARM_DISPATCH_TOKEN: ${{ secrets.FARM_DISPATCH_TOKEN }}
steps:
# Hypatia RE001: this job holds FARM_DISPATCH_TOKEN, so outbound
# traffic is limited to the GitHub API that repository-dispatch calls.
- name: Restrict outbound requests before using the dispatch token
if: ${{ env.FARM_DISPATCH_TOKEN != '' }}
uses: step-security/harden-runner@1d88384fd173af6ecb012dfd0264a306b711241a # v2.22.4
with:
egress-policy: block
allowed-endpoints: >-
api.github.com:443
- name: Trigger Propagation
if: ${{ env.FARM_DISPATCH_TOKEN != '' }}
uses: peter-evans/repository-dispatch@28959ce8df70de7be546dd1250a005dd32156697 # v3
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/label-triage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,12 @@ permissions:

jobs:
triage:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
timeout-minutes: 10 # Hypatia workflow_audit/missing_timeout_minutes (alert #68)
steps:
- name: Classify and label
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ github.token }}
NUM: ${{ github.event.issue.number || inputs.issue }}
run: |
set -uo pipefail
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,12 @@ permissions:

jobs:
sync:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
timeout-minutes: 10 # Hypatia workflow_audit/missing_timeout_minutes (alert #69)
steps:
- name: Apply canonical labels
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ github.token }}
# ⚠ LOAD-BEARING. This workflow deliberately does not check the repo
# out (no `uses:`, so no actions.lock entry can drift), which means
# `gh label create` / `gh label edit` have no git remote to infer a
Expand Down
16 changes: 14 additions & 2 deletions .github/workflows/mirror.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,25 @@
# SPDX-License-Identifier: MPL-2.0
name: Mirror to Git Forges

on:
push:
branches: [main]
workflow_dispatch:

permissions:
actions: read
contents: read

jobs:
mirror:
uses: hyperpolymath/standards/.github/workflows/mirror-reusable.yml@092dedada188f56c5915f74a5fd40aac093742c3
secrets: inherit
uses: metadatastician/standards/.github/workflows/mirror-reusable.yml@75bd5994470661a099df562d6d5ad2fe744dbd66
# Explicit secrets map, not `secrets: inherit` (Hypatia WH008): the callee
# (standards@75bd5994) declares exactly these seven, all optional.
secrets:
GITLAB_SSH_KEY: ${{ secrets.GITLAB_SSH_KEY }}
BITBUCKET_SSH_KEY: ${{ secrets.BITBUCKET_SSH_KEY }}
CODEBERG_SSH_KEY: ${{ secrets.CODEBERG_SSH_KEY }}
SOURCEHUT_SSH_KEY: ${{ secrets.SOURCEHUT_SSH_KEY }}
DISROOT_SSH_KEY: ${{ secrets.DISROOT_SSH_KEY }}
GITEA_SSH_KEY: ${{ secrets.GITEA_SSH_KEY }}
RADICLE_KEY: ${{ secrets.RADICLE_KEY }}
12 changes: 11 additions & 1 deletion .github/workflows/push-email-notify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,18 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Restrict outbound requests before supplying SMTP credentials
uses: step-security/harden-runner@1d88384fd173af6ecb012dfd0264a306b711241a # v2.22.4
with:
egress-policy: block
# The pinned action downloads its checksum-verified release binary,
# then connects only to the configured implicit-TLS SMTP endpoint.
allowed-endpoints: >-
github.com:443
release-assets.githubusercontent.com:443
${{ secrets.SMTP_HOST }}:${{ secrets.SMTP_PORT || '465' }}
- name: Send push notification email
uses: hyperpolymath/smtp-notify-action@c1c9fa07992a02c1fd3d67a0dc1b08cccb852aef # v0.5.0
uses: hyperpolymath/smtp-notify-action@e384daf6167a7a7567642d6a62060106244d2413 # v0.5.1
with:
server_address: ${{ secrets.SMTP_HOST }}
server_port: ${{ secrets.SMTP_PORT }}
Expand Down
25 changes: 16 additions & 9 deletions .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Scorecards supply-chain security

on:
branch_protection_rule:
workflow_dispatch:
schedule:
- cron: '23 4 * * 1'

Expand All @@ -12,13 +13,19 @@ permissions:

jobs:
analysis:
# Explicit least-privilege permissions for the OSSF Scorecard reusable
# workflow (the documented set), instead of relying on a broad
# workflow-level `read-all`:
# Manual refreshes measure the merged default branch. Keep the OIDC-bearing
# publication job off manually selected feature branches.
if: github.event_name != 'workflow_dispatch' || github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
# Caller-granted permissions per the scorecard-reusable contract
# (its header documents: the caller MUST grant security-events:write
# + id-token:write; contents:read lets it read the repo). Closes the
# Hypatia `scorecard_wrapper_missing_job_permissions` finding.
# actions: read is repeated here: this job-level block replaces the
# workflow-level one, and the callee's job requests actions: read.
# The callee declares no secrets, so no `secrets:` line.
permissions:
contents: read # read the repository
actions: read # inspect workflow runs (Token-Permissions, etc.)
security-events: write # upload results to the code-scanning dashboard
id-token: write # OIDC, to publish results / badge
uses: hyperpolymath/standards/.github/workflows/scorecard-reusable.yml@092dedada188f56c5915f74a5fd40aac093742c3
secrets: inherit
actions: read
contents: read
security-events: write
id-token: write
uses: metadatastician/standards/.github/workflows/scorecard-reusable.yml@ba640e9a57f22608710ffecdca282074eac55a0b
8 changes: 5 additions & 3 deletions .github/workflows/secret-scanner.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
# SPDX-License-Identifier: MPL-2.0
name: Secret Scanner

on:
pull_request:
push:
branches: [main]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
actions: read
contents: read

jobs:
scan:
permissions:
contents: read
uses: hyperpolymath/standards/.github/workflows/secret-scanner-reusable.yml@092dedada188f56c5915f74a5fd40aac093742c3
secrets: inherit
uses: metadatastician/standards/.github/workflows/secret-scanner-reusable.yml@75bd5994470661a099df562d6d5ad2fe744dbd66
5 changes: 4 additions & 1 deletion .machine_readable/contractiles/Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,10 @@ build-elixir:
# Build ReScript MCP server
build-mcp:
@echo "Building ReScript MCP server..."
cd impl/mcp && npx rescript build
# bunx --no-install never fetches an unpinned package: it uses a locally
# installed rescript or fails. impl/mcp has no package manifest yet; it is
# due to be ported to AffineScript (see .hypatia-ignore).
cd impl/mcp && bunx --no-install --bun rescript build
@echo "✓ MCP server compiled"

# Run MCP server (STDIO mode for Claude Desktop)
Expand Down
5 changes: 3 additions & 2 deletions FAQ.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,9 @@ What is solid:

* The machine-checked proofs of the model-layer operations (Agda (theory source), Lean 4 and Rocq/Coq (rechecks), Z3 (supplementary); Isabelle/HOL and Mizar archived unchecked). ~478 theorem candidates in the 2026-06-01 census;
0 real gaps (Coq `obliterate_overwrites_all_blocks` CLOSED, re-verified
2026-07-16 via `Print Assumptions` under Coq 8.18.0) + 2 documented axioms
(1 justified decidability + 1 structural funext).
2026-07-16 via `Print Assumptions` under Coq 8.18.0); 1 justified classical
dependency remains (Coq `is_empty_dir_dec`, a theorem proved with classical
logic, not a custom axiom). The Agda `funext` postulate was removed 2026-11-09.
* The Rust CLI. 736 tests passing, 0 failures, 7 fuzz targets, working shell
surface (pipelines, redirections, here-docs, job control, variables, control
structures, glob, quoting).
Expand Down
5 changes: 4 additions & 1 deletion Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,10 @@ build-elixir:
# Build ReScript MCP server
build-mcp:
@echo "Building ReScript MCP server..."
cd impl/mcp && npx rescript build
# bunx --no-install never fetches an unpinned package: it uses a locally
# installed rescript or fails. impl/mcp has no package manifest yet; it is
# due to be ported to AffineScript (see .hypatia-ignore).
cd impl/mcp && bunx --no-install --bun rescript build
@echo "✓ MCP server compiled"

# Run MCP server (STDIO mode for Claude Desktop)
Expand Down
2 changes: 1 addition & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ See link:LICENSE[LICENSE] for full text.

**Made with ❤️ by humans and AI, for humans who value formal correctness.**

**Status**: Advanced Research Prototype (v0.9.0) | **RSR**: PLATINUM (105/100) | **Proofs**: ~478 theorem candidates (0 real gaps; 2 justified axioms) | **Tests**: 791 passing
**Status**: Advanced Research Prototype (v0.9.0) | **RSR**: PLATINUM (105/100) | **Proofs**: ~478 theorem candidates (0 real gaps; 1 justified classical dependency) | **Tests**: 791 passing

[.text-center]
_"Every operation reversible. Every claim proven. Every contributor valued."_
Expand Down
18 changes: 9 additions & 9 deletions TOPOLOGY.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ Copyright (c) Jonathan D.A. Jewell j.d.a.jewell@open.ac.uk
│ │
▼ ▼
┌───────────────────────┐ ┌────────────────────────────────┐
│ FORMAL PROOFS (6 SYS) │ │ IMPLEMENTATION LAYER │
│ - Lean 4 (primary) │ │ - Zig FFI (builds, unlinked) │
│ - Coq (CIC) │ │ - Rust FFI (preconditions) │
│ - Agda (ITT) │ │ - libc direct (chown/getpw*) │
│ - Isabelle/HOL │ │ - Audit Logging (MAA) │
│ - Mizar (set theory) │ └──────────┬─────────────────────┘
│ - Z3 (SMT) │ │
│ ~250+ theorems │ │
│ 4 gaps, 4 axioms │ │
│ FORMAL PROOFS │ │ IMPLEMENTATION LAYER │
│ - Agda (source) │ │ - Zig FFI (builds, unlinked) │
│ - Lean 4 (recheck) │ │ - Rust FFI (preconditions) │
│ - Coq (recheck) │ │ - libc direct (chown/getpw*) │
│ - Z3 (SMT, ASSUMED) │ │ - Audit Logging (MAA) │
│ Isabelle, Mizar: │ └──────────┬─────────────────────┘
│ archived, unchecked │ │
│ see proof ledger │ │
│ 0 Agda postulates │ │
└──────────┬────────────┘ │
│ │
└────────────┬─────────────┘
Expand Down
2 changes: 1 addition & 1 deletion docs/THEORY-FEED.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ Priority reflects two things: how directly the item unblocks a named valence-she
** This is an owner decision because it moves a dependency edge between repos. Record the ruling in nextgen-typing#118.
. *NW-2: ECHIDNA tri-state verdict plus project context* (echidna, valence-shell#162). Two independent defects combine to report 15 known-good proofs "invalid":
** *valence-shell side:* `scripts/validate-with-echidna.sh:77` invokes `echidna verify <file> --prover <p> --timeout 120 --format <f>` with no `--library` or project root. echidna's verify already accepts `library: Vec<PathBuf>`. Pass `_CoqProject`, `lakefile.lean` and the `.agda-lib` roots.
** *echidna side:* `src/rust/main.rs` ~L590–631 collapses the result to a bool and prints "✗ Proof is invalid" then `exit(1)`, so an environment failure is indistinguishable from a refutation. Return `Valid | Invalid | EnvironmentError`, with distinct exit codes.
** *echidna side:* `echidna/src/rust/main.rs` ~L590–631 collapses the result to a bool and prints "✗ Proof is invalid" then `exit(1)`, so an environment failure is indistinguishable from a refutation. Return `Valid | Invalid | EnvironmentError`, with distinct exit codes.
** Estate benefit: every ECHIDNA consumer stops reading a missing import path as a disproof.
. *NW-3: First real echo-types import* (echo-types, valence-shell#51). The smallest first step already named in #51: import `EchoObservationalEquivalence` into `proofs/agda/FilesystemEquivalence.agda` and restate `fsEquiv` as `_≡m_`. Then map the remaining pairs:
** `obliterate_not_injective` → `EchoLossTaxonomy.const-fibre-↔-domain`
Expand Down
2 changes: 1 addition & 1 deletion docs/audits/2026-11-01-assurance-boundary-audit.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ provers said, and what that does and does not license.
|===
| Tool | Available | Version used | How it was obtained

| Agda | yes | 2.7.0.1 and 2.6.4.3 | PyPI wheel; the wheel ships no `data/lib`, so `src/data/lib` was copied from the matching Agda source tarball
| Agda | yes | 2.7.0.1 and 2.6.4.3 | PyPI wheel; the wheel ships no `data/lib`, so `agda-2.7.0.1/src/data/lib` was copied from the matching Agda source tarball
| agda-stdlib | yes | 2.2 and 2.1.1 | codeload tarball from `agda/agda-stdlib`
| Z3 | yes | z3-solver 5.3.3 | PyPI wheel
| Rust / Cargo / rustup | no | — | `static.rust-lang.org` is not reachable; a `rustup` wheel from PyPI installs the toolchain *manager*, which then fails to download any toolchain (`tls handshake eof`)
Expand Down
Loading
Loading