Skip to content

Integration harness: profiles, merge hygiene, and granular re-anchor - #70

Merged
hyperpolymath merged 3 commits into
mainfrom
arena/01a0daa1-metamanifold-webui
Sep 25, 2026
Merged

hyperpolymath merged 3 commits into
mainfrom
arena/01a0daa1-metamanifold-webui

Conversation

@arena-ai-coding-agent

Copy link
Copy Markdown

Summary

Makes merging this fork's work into upstream (JoshuaJewell/MetaManifold-WebUI) tractable, and keeps both sides runnable with zero extra effort. The two commits are tooling, config, and docs only — no application/analysis logic changes.

The fork and upstream share only the root commit and then developed in parallel, so a one-shot git merge surfaces 159 conflicting files at once. This PR removes that wall three ways:

  1. Merge hygiene — lockfiles and build output can no longer produce line-conflict markers; they resolve by regeneration (.gitattributes, just merge-drivers).
  2. Profiles & components — the fork's work is a registry the maintainer can adopt incrementally, from pure upstream (base, the default) to partially transitional to everything (full), with per-component toggles and automatic conflict triage (config/integration.toml, scripts/integrate.sh, just integrate …).
  3. Granular re-anchor — replay the fork's commits one-by-one onto upstream. Measured: the whole fork re-anchors with 3 decisions and 0 residual conflicts, producing ~206 reviewable commits that also share a real base with upstream (scripts/reanchor.sh, just reanchor).

It also makes the environment turnkey: mise.toml stays the single source of truth and just bootstrap / setup-full / heal / doctor now cover the whole toolchain and the R lane (renv-restore), so a fresh clone always runs.

Base check

  • Base is hyperpolymath/MetaManifold-WebUI:main (engineering/tooling work lands on this fork per CONTRIBUTING.md)

Changes

  • .gitattributes — lockfiles / build output marked merge: unset, linguist-generated (never hand-merge a generated file).
  • config/integration.toml + scripts/integrate.sh + just integrate … — profiles (base/transitional/full), per-component augment/suspend, conflict triage (auto / component / human), verify.
  • scripts/reanchor.sh + just reanchor{,-plan,-manual} — granular re-anchor onto upstream (isolated worktree; never touches the current branch).
  • Justfile — doctor (full toolchain report), heal (repair), merge-drivers (opt-in lockfile auto-resolve), renv-restore; bootstrap/setup-full now cover the R lane and merge drivers.
  • docs/integration/ — README.md (guide), conflict-map-2026-09-25.md (measured), HANDOFF-granular-reanchor.md (brief to land it).
  • .gitignore (track docs/integration/), CONTRIBUTING.md (pointer).

Engineering checklist

Required

  • bun run check — N/A: no frontend/ changes (frontend untouched).
  • scripts/check-spdx.sh / scripts/check-format.sh pass (check-lint.sh N/A: no TS changes).
  • Conventional commit subjects (feat(integration):, feat(reanchor):).
  • New source files carry correct SPDX headers (MPL-2.0 code/scripts, CC-BY-SA-4.0 docs).
  • No secrets, .env, or sequencing data.
  • No application-logic changes hidden inside this tooling PR.

As applicable

  • CHANGELOG.md — tooling/docs PR; changelog entry optional.
  • docs/reproducibility.md — environment unchanged (mise.toml untouched; only additive Justfile lanes).

Testing

  • reanchor.sh validated end-to-end (plan + run): 206 granular commits, 0 residual conflicts, 3 logged decisions (all "respect upstream's deletion of pipelinesteps.txt"); runs in an isolated worktree, auto-cleans, branch untouched.
  • integrate.sh validated: status / profiles / plan / triage / enable / disable / verify.
  • Justfile structurally validated: 64 recipes, no parse errors, all dependencies resolve.
  • Hygiene gates green (SPDX 289 files, format 337 files).
  • Mergeable into main with no file overlap against main's newer commits.

hyperpolymath and others added 2 commits September 25, 2026 22:28
The fork (hyperpolymath) and upstream (JoshuaJewell) share no git
ancestor, so a naive merge three-way-merges nothing and conflicts on
all 159 shared-but-different files (measured; see
docs/integration/conflict-map-2026-09-25.md). This makes the
maintainer's integration tractable and keeps both sides runnable with
zero extra effort.

- .gitattributes: stop git line-merging lockfiles/build output
  (merge: unset) so they resolve by regeneration, never by editing.
- config/integration.toml + scripts/integrate.sh + `just integrate`:
  profiles (base -> transitional -> full) and per-component toggles,
  so the maintainer adopts work incrementally and learns to trust it.
  Default is `base` (pure upstream); nothing risk-bearing is active,
  so operations are never compromised.
- Justfile: doctor (full toolchain report), heal (repair),
  merge-drivers (opt-in lockfile auto-resolve), renv-restore, and
  suspend/augment component toggles. bootstrap/setup-full now cover
  the whole toolchain + R lane, so a fresh clone always runs.
- docs/integration/: the guide and the measured conflict map.

All new paths are fork-only or brand new, so this aid introduces no
conflicts of its own. Hygiene gates (spdx, format) green.

Co-authored-by: arena-agent <[email protected]>
With full history the fork and upstream share the root commit (7884553)
and diverged at the second commit, developing in parallel (fork 221,
upstream 89). The earlier "unrelated histories" note was a depth-1
shallow-clone artifact; the 159-conflict one-shot merge is real, but the
fix is a rebase, not unrelated-history surgery.

- scripts/reanchor.sh + just reanchor{,-plan,-manual}: replay the fork's
  commits one-by-one onto upstream (git auto-applies the clean ones),
  turning the 159-file wall into per-commit decisions. Measured: 206
  granular commits, 0 residual conflicts, 3 logged decisions (all
  "respect upstream's deletion of pipelinesteps.txt"). Runs in an
  isolated worktree; never touches the current branch.
- docs: correct the premise in README/conflict-map; add the re-anchor
  layer and a HANDOFF brief to land it.
- CONTRIBUTING: point at reanchor-plan/reanchor and the handoff.

The re-anchored branch also shares a real base with upstream, so future
upstream changes merge cleanly too.

Co-authored-by: arena-agent <[email protected]>
@coderabbitai

coderabbitai Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Advanced

Run ID: d79e7e85-c8d6-4737-9f69-349864714723

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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.

@hyperpolymath
hyperpolymath merged commit 7066730 into main Sep 25, 2026
3 of 5 checks passed
@hyperpolymath
hyperpolymath deleted the arena/01a0daa1-metamanifold-webui branch September 25, 2026 22:47
hyperpolymath added a commit that referenced this pull request Nov 8, 2026
…instantiate (#314)

## Change and reason

`Julia tests` was failing on #70 at **Instantiate Julia project**, so
every step after it — RCall, the suite, coverage — was skipped. The
cause is a single declaration:

`Project.toml` named `CompositionalDA` (`bb1787b7-…`) in `[deps]` and
`[compat]`, but the package is **not in the General registry** and there
is no `Manifest.toml` entry to resolve it against. `Pkg.instantiate()`
therefore cannot resolve the project and exits 1 on *every* checkout, CI
included — before any test runs.

The module already imports the package opportunistically
(`_COMPOSITIONAL_DA_AVAILABLE`), so the declaration is the only thing
that has to go. This PR removes it and keeps the feature intact behind
that guard:

- **`Project.toml`** — the declaration is gone, replaced by a comment
recording why it is absent and what must land together when it is
registered (dependency + `[compat]` bound + regenerated `Manifest.toml`,
in one change).
- **`src/analysis/differential.jl`** — the refusal message no longer
points at a `Project.toml` entry that no longer exists;
`compositional_da_available()` is exported so callers (and tests) can
ask the question the guard answers; the input checks (retained taxa,
`Int` range) now run *before* the dependency probe, so a malformed
matrix is refused for that reason whether or not the package is
installed, on every machine.
- **tests** — `test_differential_native.jl` began with `import
CompositionalDA`, so the unit suite could not load at all without a
package CI cannot install. Both native test files now branch on
`compositional_da_available()`: the boundary fuzz, the oversize refusal
and the constructor checks always run; without the package the *refusal*
is what is asserted (both methods raise `ArgumentError` naming
`CompositionalDA`, the route answers 400 `invalid_input` rather than a
500 or a table no model produced); with the package developed into the
environment the adapter and ANCOM-BC comparisons run unchanged. Skips
announce themselves with `@info`, like the existing R- and
glmGamPoi-gated testsets.
- **`docs/guide/web-interface.md`** — documents `aldex2`/`ancombc`,
`mc_samples`/`seed`, and the package caveat the guide was missing.

No application logic changes: the estimators, their settings and their
results are untouched.

## Validation

The fork's action policy blocks `julia-actions/*` (verified: the
dispatch fails with *"…are not allowed in
hyperpolymath/MetaManifold-WebUI because all actions must be from a
repository owned by hyperpolymath, created by GitHub, verified in the
GitHub Marketplace…"*), so upstream's `ci.yml` cannot start here. The
change was validated with a throwaway policy-compliant job on the same
commit that reproduced the two steps that matter:

- **`Pkg.instantiate()`** — `success` (this is the step that failed in
#70). Julia 1.12.5, R installed, RCall rebuilt against it.
- **`julia --project=. test/runtests.jl test_differential
test_differential_native`** — `success`: **1013 passed, 0 failed, 18
skipped (`@test_skip`)**.
  - `Native configuration boundary fuzz` — 790
  - `Native input boundaries do not depend on the package` — 5
  - `Native methods refuse by name when the package is absent` — 8
- `Route: native method override and input refusal` — 16 (1 skipped: the
adapter half)
- `Native compositional DA adapter`, `ANCOM-BC adapter…` — skipped,
package absent

The throwaway job did not restore `renv`, so `glmGamPoi` was absent;
those five testsets fail by contract under `CI=true` when glmGamPoi is
missing (issue #37), so the job ran with `CI=false` to have them skip
loudly. In real CI they run — `renv.lock` installs glmGamPoi.

Frontend gates were run locally on this branch: `bun install
--frozen-lockfile`, `bun run build` and `bun test src` (68 pass, 1 skip,
0 fail).

**Not run here:** the full CI job (DADA2/PR2/R suite, Agda, Codecov).
Nothing in this diff touches them.

## Scope

Follow-up, deliberately out of scope: activating the native methods for
real. That needs either `CompositionalDA` registered in the General
registry, or a `[sources]` git dependency — either way with the
regenerated `Manifest.toml` in the same change. Until then
`aldex2`/`ancombc` are wired, documented and refused by name.

Lockfiles: `Manifest.toml` and `renv.lock` are untouched; `bun.lock` is
untouched.

## Contribution checks

- [x] I followed
[CONTRIBUTING.md](https://github.com/JoshuaJewell/MetaManifold-WebUI/blob/main/CONTRIBUTING.md).
- [x] This branch starts at current upstream main and contains no merges
from fork main.
- [x] Every commit is signed and shows as Verified.
- [ ] CI has run and passes — it has not run yet: this branch is based
on `validation/issue-23-native-da`, not `main`, so `ci.yml`'s
`pull_request: branches: [main]` does not trigger. Merging this into
#70's branch and re-running there is the intended path.
- [x] Existing licensing, citation and acknowledgement text is
unchanged.
hyperpolymath added a commit that referenced this pull request Nov 8, 2026
…ok (#315)

<!-- SPDX-License-Identifier: CC-BY-SA-4.0 -->
<!-- SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell (hyperpolymath)
<[email protected]> -->

<!-- Filled instance of .github/pull_request_template.md, for the pull
request
that carries this package into the fork. Ticked boxes are true as
posted. -->

## Change and reason

Adds `docs/proposals/upstream-pr-70/`: four documents that package
everything
upstream #70 needs before JoshuaJewell can accept or reject it — the
filled
description, the reply to its Codex threads and failing check, the
signing/linearisation/CI-allowlist runbook, and a README tying them
together.

Produced here first because the upstream repository is read-only from
this
account (pull access only): nothing can be posted to #70 from this
token, so the
text is written, reviewed and versioned in the fork and pasted by hand.
This is
a documentation-only change — no code, workflow, or configuration file
is
touched.

## Validation

- Content checked against the live state: upstream #70's branches and
head,
  run `42436605157` (Julia tests pass 20m55s, Agda 37s, REUSE 10s,
`codecov/patch` pass), the `codex-review-state:v1` quota message, and
both
Codex comments (empty thread list — no review findings exist to
resolve).
- Every `uses:` SHA quoted in `runbook.md` §3 was read from the branch's
own
`ci.yml`; `dcarbone/install-jq-action` and
`pyTooling/Actions/with-post-step`
were confirmed as nested dependencies by fetching their `action.yml`
files.
- SPDX `CC-BY-SA-4.0` licence and copyright headers on all five files,
matching
  the existing `docs/proposals/` convention.
- No Julia, R or bun code paths are touched; no versions apply to a
docs-only
change. The `gate` job classifies this as not relevant, so the expensive
jobs
  skip.

## Scope

Left out on purpose, and recorded as such in the documents themselves:

- **The allowlist change is not applied.** This token gets `403 Resource
not
accessible by integration` on `GET`/`PUT
.../actions/permissions/selected-actions`;
`runbook.md` §3 holds the read-before-write script and the UI path for
an
  account with admin on the fork.
- **Nothing is posted upstream.** `description.md` and `response.md` are
the
  paste-ready texts; posting them, and the re-signing/linearisation of
`validation/issue-23-native-da`, are manual steps in `runbook.md` §1–2.
- No lockfile or manifest changes; no generated files.

## Contribution checks

- [x] I followed [CONTRIBUTING.md](../CONTRIBUTING.md).
- [x] This branch starts at current upstream main and contains no merges
from fork main.
The **Branch freshness** check reports this within a minute of a push;
run it
yourself with `bash scripts/maintenance/check-pr-freshness.sh --base
origin/main`.
- [ ] CI has run and passes.
- [x] Existing licensing, citation and acknowledgement text is
unchanged.


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **Documentation**
* Added proposal materials describing planned analysis methods,
configuration and routing updates, test coverage, validation results,
and scope.
* Added a runbook covering contribution checks, branch verification, CI
monitoring, and pull request preparation.
* Included a proposed pull request description and response summarizing
reported CI results, review status, and remaining contribution steps.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: arena-agent <[email protected]>
hyperpolymath added a commit that referenced this pull request Nov 13, 2026
…on up to date (#340)

## Change and reason

Fixes the 25 unresolved SonarCloud findings on `main` (3
vulnerabilities, 22 bugs, re-queried on 2026-11-13), and brings the
documentation up to the current state of this fork and of the work
proposed upstream.

**Vulnerabilities (3)**
- `client.ts` request forgery (S5144, S8476) and `events.ts` connection
hijacking (S8480): all three came from `config.json`'s `apiBase`
reaching `fetch()`/`EventSource` unchecked. `apiBase` is now accepted
only as an absolute `http(s)` URL with no credentials, query or
fragment. A refused value is logged with a fixed message and the
frontend stays same-origin. Every path given to `apiUrl()` must be
root-relative, with no `.`/`..` segment (plain or `%2e`), backslash or
control character. New module `frontend/src/api/apiBase.ts` with tests.

**Bugs (22)**
- 13 floating promises (S9383): each is now awaited or ends in a
`.catch` that shows the error. Two of them were user-visible defects: a
failed alignment load left "Loading…" on screen for ever, and a failed
start-up left the page blank.
- 6 click-without-keyboard (S1082): the copy-on-click statistics and the
figure group selector are now real `<button>`s. Escape closes the filter
dropdown, the name dialog and the mobile menu. The menu backdrop is
`aria-hidden`.
- `tree/model.ts` `reduce()` without an initial value (S6959): an
initial value is added. The result is unchanged, and a new test pins it.
- `R/_renv_dependencies.R` `if (FALSE)` (S1145): **not changed**,
because this code is live. renv's implicit snapshot reads those
`library()` calls to keep the packages in `renv.lock`. The file now
explains this. The finding still needs resolving as *Won't fix* in the
SonarCloud UI, which I have not done.

The first analysis of these fixes raised one new vulnerability (log
injection from echoing the refused `apiBase`) and seven code smells
(`role="dialog"`/`"presentation"` with handlers, a regex flagged as
super-linear, one-line key handlers, a test assertion). A follow-up
commit clears all of them.

**Documentation**
- New dated snapshot `docs/release-notes/2026-11-13-current-state.md`
covers:
- the open upstream PRs: #68 SSH recoverable stages, #69 exact
statistics, #70 native DA (draft, waiting on CompositionalDA in General,
JuliaRegistries/General#175952), #71, and #72 high-precision (draft).
**None of them is merged.**
- the two catalogue states: `approved` in scope by the fork owner on
this fork, `pending_review` in upstream #69/#72.
  - the SonarCloud and Codecov numbers.
  - a note for Joshua on coverage (below).
- `README.md`: a pointer to the snapshot, the `apiBase` rules for split
deployments, and the frontend commands with the pinned bun and the Sonar
guard.
- `docs/sonar-quality-gate.md`: a table of the 25 findings and how each
was fixed.
- `notes/upstream-sync.md`, `docs/proposals/upstream-pr-70/README.md`,
`VALIDATED_STATISTICS.md`: dated updates.
- `0-AI-MANIFEST.a2ml` (the bot-facing manifest): names the snapshot and
the Sonar guide.
- Checked and unchanged: `CONTRIBUTING.md`, `.coderabbit.yaml`,
`codecov.yml` and the PR template already describe the current setup.
The repository has no `CHANGELOG`, `CLAUDE.md` or `AGENTS.md`.

### Note for Joshua on #69's coverage (not posted upstream)

Codecov reports 5 uncovered patch lines on upstream #69: 99.53% patch
coverage, with 1,058 of 1,063 changed lines covered. The patch check is
informational and green. The lines are:

| File | Line(s) at #69's head | What the line is |
| --- | --- | --- |
| `src/server/routes/validated_statistics.jl` | 226–227 | the catch that
rewraps a filter parse failure |
| `src/server/routes/validated_statistics.jl` | 286 | a float
`time_limit_seconds` |
| `src/analysis/derived_analyses.jl` | 127 | `rethrow()` after a failed
hard link with no competing record |
| `src/canonical.jl` | 220 | a `repr(::Float64)` mantissa without a
decimal point, which may be unreachable |

How, or whether, to cover them is Joshua's decision. The same note, with
more detail, is in the snapshot.

## Validation

- Frontend, with **bun 1.3.10** (the version pinned in
`config/defaults/tool_versions.yml`), TypeScript 5.9.3 and Vite 6.4.5:
  - `bun install --frozen-lockfile`: no lockfile change.
  - `bun run typecheck`: clean.
- `bun run test`: 90 pass, 0 fail. The baseline before the change was
82; the 8 new tests cover `apiBase` and the root-split reduce.
  - `bun run build`: succeeds.
- `bash scripts/lint-sonar-reliability.sh`: OK.
- SonarCloud on this PR's head: quality gate **OK**, with 0 new bugs, 0
new vulnerabilities and 0 new code smells.
- **Not run locally:** the Julia and R suites, because this container
has no Julia or R. The Julia and R code is unchanged apart from a
comment in `R/_renv_dependencies.R`. CI's `Julia tests` job runs them on
this PR.
- **Not yet verifiable:** whether the 25 findings close on `main`. Only
the post-merge `main` analysis shows that, so re-query SonarCloud after
merging.
- Not tested in a browser: the keyboard paths (Escape, Tab to the new
buttons) are covered by type checking and review only.

## Scope

- Each path *segment* in `client.ts` (127 interpolations) is not
individually `encodeURIComponent`-encoded. The central `checkApiPath`
guard covers traversal; per-segment encoding would be a separate, larger
change.
- Not in this PR: resolving the R finding as *Won't fix* in SonarCloud,
and pushing to the wiki (see below).
- No lockfile changes. No generated or vendored files. New files carry
SPDX headers, and existing headers are unchanged.

## Wiki

The wiki edits (Status and roadmap, Testing and benchmarks, Operator
track) are **not pushed**. The commit is signed with this session's key,
but I could not confirm through the tools available here that GitHub
shows it as Verified, so it is attached as a patch to apply to
`MetaManifold-WebUI.wiki.git` `master` (`git am`):

<details><summary>wiki.patch</summary>

```diff
From 044f79af997af6a50242153239e7a10118c47eb6 Mon Sep 17 00:00:00 2001
From: Claude <[email protected]>
Date: Fri, 13 Nov 2026 19:59:30 +0000
Subject: [PATCH] docs(wiki): bring status, testing and operator pages to
 2026-11-13

Status and roadmap: mark the differential-abundance, zero-handling and
constrained-ordination rows that the repository now ships, record that
SSH stage recovery is proposed upstream and not on this fork's main, add
the open upstream pull requests (none merged) and the SonarCloud and
Codecov results.

Testing and benchmarks: replace lanes that referred to files this
repository does not have (justfile, mise, docs/testing) with the commands
CI actually runs, note the bc/awk reference oracles, and describe the
SonarCloud and Codecov services.

Operator track: list the real pinned artefacts and describe the apiBase
validation for split deployments.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_0136P7ZjoMTmdce1zuwSJWdN
---
 Developers--Testing-and-Benchmarks.md | 75 ++++++++++++++-------------
 Maintainers--Operator-Track.md        | 19 +++++--
 Status-and-Roadmap.md                 | 48 ++++++++++++++---
 3 files changed, 93 insertions(+), 49 deletions(-)

diff --git a/Developers--Testing-and-Benchmarks.md b/Developers--Testing-and-Benchmarks.md
index 7e4c435..5e1c229 100644
--- a/Developers--Testing-and-Benchmarks.md
+++ b/Developers--Testing-and-Benchmarks.md
@@ -13,23 +13,38 @@ archived: false
 
 # Testing and benchmarks
 
-**Status: IN PLACE** (with two deliberate COMING gates named below). Test
-inventory and metrics: `docs/testing/coverage.md`; infrastructure:
-`docs/testing/infrastructure.md`; facet taxonomy: `docs/testing/taxonomy-facets.md`.
+**Checked against the repository on 2026-11-13.** The repository is the final
+arbiter: `.github/workflows/ci.yml`, `README.md` ("Running tests") and
+`docs/sonar-quality-gate.md`.
 
 ## The lanes
 
 | Lane | Command | Gate? | Notes |
 |---|---|---|---|
-| Frontend unit + integration | `bun test` (in `frontend/`) | yes | DOM-less lane; type-level assertions included |
-| Frontend combined | `bun run check` | yes (pre-push) | typecheck + tests + bench invocation |
-| Julia unit/integration | `just` test recipes | yes | fixtures under `test/fixtures/` |
-| e2e | `just test-e2e` | opt-in | fails loudly without browsers (by design) |
-| Benchmarks | `bun run bench/`, `bench/` | **informational** | compares vs `bench/*/baseline.json`; no gate |
-| Repo hygiene | `just ci` | yes | SPDX, format, lint, pins drift |
+| Julia unit tests | `julia --project=. test/runtests.jl` | yes (CI job `Julia tests`) | name files to run only those: `test/runtests.jl routes trees` |
+| Julia integration | `julia --project=. test/runtests.jl --integration` | yes | adds the MiSeq SOP pipeline run; `CI_SKIP_TAXONOMY=1` skips taxonomy |
+| Server smoke tests | `julia --project=. test/runtests.jl --server` | yes | HTTP server end to end |
+| Frontend unit tests | `bun run test` (in `frontend/`) | yes | bun pinned in `config/defaults/tool_versions.yml` (1.3.10) |
+| Frontend typecheck and build | `bun run typecheck`, `bun run build` | yes (build) | `bun audit --audit-level high` also runs in CI |
+| Sonar reliability guard | `bash scripts/lint-sonar-reliability.sh` | yes (first step of `Julia tests`) | local reproduction of the Sonar rules that have failed the required check |
+| Independent reference oracles | `test/references/*.sh`, `*.bc`, `*.awk` | yes | GNU `bc` and awk, sharing no maths code with Julia |
+| Benchmarks | `bench/` | informational | null calibration, compositional methods, validated statistics, cladistics and more; no gate |
 
-Everything CI runs is `just ci`. If a lane is missing its tool it fails
-loudly rather than skipping — silence would be a lie about coverage.
+## Quality services
+
+- **SonarCloud** (`hyperpolymath_MetaManifold-WebUI`, Automatic Analysis, the
+  Sonar way gate) is a required check. It fails on a single bug or
+  vulnerability in the changed lines, whatever its severity; read
+  `docs/sonar-quality-gate.md` before a frontend change. On 2026-11-13 the 25
+  findings that had accumulated on `main` (3 vulnerabilities, 22 bugs) were
+  fixed in the code rather than suppressed, except one R finding that is not a
+  defect (the renv discovery block). Re-read the numbers from SonarCloud
+  rather than trusting this line.
+- **Codecov** measures the Julia backend only (`codecov.yml`); the frontend is
+  not instrumented. Patch coverage is informational, project coverage may dip
+  by 1%. Upstream reports to Codecov; on 2026-11-13 this fork's Codecov
+  repository was not activated, so the fork has no coverage number of its own.
+  A coverage *gate* is deliberately not in place.
 
 ## The four test idioms that matter most
 
@@ -37,9 +52,9 @@ loudly rather than skipping — silence would be a lie about coverage.
    outcomes in the counts; the test reads the fit against the planted truth
    — never a snapshot read-back of whatever the fit produced.
 2. **Independent reference comparison.** The same fixtures fitted directly
-   in R (coefficients, then BH against `p.adjust`), or exact summaries
-   compared against Python's `fractions.Fraction` (skipping loudly by name
-   when `python3` is absent).
+   in R (coefficients, then BH against `p.adjust`), or exact and
+   high-precision summaries compared against GNU `bc` and awk oracles in
+   `test/references/`, which share no maths code with Julia.
 3. **Negative controls for every refusal path.** Each unsuccessful state has
    a test that *provokes* it. A refusal path without a test is a rumour.
 4. **Guards against regression to dishonesty.** Source-level guard: the
@@ -52,37 +67,23 @@ Boundary values are **measured, not assumed** — the numeric-boundary suite
 (#52's lesson) asserts where Float64/int behaviour actually breaks (counts
 beyond 2⁵³−1, denominator budgets, rounding).
 
-## Type-level assertions
-
-20+ assertions pin the frontend domain model (`frontend/tests/`). They are
-tests of *shape* — the compiler-adjacent half of the honesty contract. The
-DOM-less lane's blind spot is bounded and known: Plotly-chain modules
-(`PlotlyChart`, `ChartCustomiser`, `ChartEditorInner`, `AnnotationPanel`,
-`RunView`) are import-blocked there; `TODO(tests/e2e-lane)` marks the spot.
-
 ## Benchmarks
 
-`bench/` carries baselines for: table loading, duckdb aggregation, tree
-rendering, PERMANOVA/NMDS, epistemic parsing, analysis config — plus a
-comprehensive lane and a layer-1 mock-recovery harness (fetch/evaluate/
-report over `datasets.yml`). Comparison output is informational; promotion
-to a non-gating regression **alert** waits for a multi-week stability window
-(deliberate, per the roadmap).
-
-**COMING (gates, deliberately deferred):** the **DOM test lane** decision
-(playwright vs a DOM harness — queued at the e2e-lane TODO) and the
-**coverage gate** (lands against a recorded baseline in
-`docs/testing/coverage.md`, never an arbitrary percentage).
+`bench/` holds informational benchmarks and calibration studies, among them
+`null_calibration` (the evidence behind the differential-abundance calibration
+caveats), `compositional_differential`, `compositional_scaling`,
+`advanced_zero_handling`, `constrained_ordination`, `layer1_mock_recovery`,
+`validated_statistics.jl` and `cladistics.jl`. None of them gates a merge.
 
 ## Writing a test for this repo (cheat sheet)
 
 - Julia statistical code → idioms 1–4 above; if you cannot plant a known
   answer, the method is not ready for a test, which usually means its
   conditions document is not ready either.
-- Frontend → DOM-less lane first; if the module touches Plotly chains, it
-  joins the import-blocked list *explicitly* (with a TODO) rather than
-  quietly skipping.
-- Fixtures stay small (`test/fixtures/`, `frontend/tests/fixtures/`) — the
+- Frontend → a `*.test.ts` file next to the module, run by `bun test`.
+  Before pushing, run `bash scripts/lint-sonar-reliability.sh`: one bug in
+  the changed lines fails the required SonarCloud check.
+- Fixtures stay small (`test/fixtures/`) — the
   MiSeq SOP sample data is for runs, not unit tests.
 - CI names failing assertions since #65 — write assertions you would want
   named in red.
diff --git a/Maintainers--Operator-Track.md b/Maintainers--Operator-Track.md
index afec16d..9e4c3ca 100644
--- a/Maintainers--Operator-Track.md
+++ b/Maintainers--Operator-Track.md
@@ -40,11 +40,22 @@ Source install is the supported lane (see
 
 | Artefact | You operate | Notes |
 |---|---|---|
-| `mise.toml` | exact toolchain pins | source of truth; `.bun-version` is generated from it (`just sync-pins`) |
-| `guix.scm` + `channels.scm` | the peer dev lane | time-machine-pinned; functional equivalents for tools, not binary identity |
+| `Project.toml` + `Manifest.toml` | exact Julia package set | `install.jl` instantiates it |
 | `renv.lock` | exact R package set | restore via `renv::restore()`; `.Rprofile` activates the project library |
-| `config/defaults/tool_versions.yml` | sha256-pinned tool downloads | `install.sh` fetches byte-exact; preflight asserts |
-| `config/tools.yml` | resolved tool paths | including SSH-hosted binaries for vsearch etc. |
+| `config/defaults/tool_versions.yml` | pinned tool and runtime downloads (bun 1.3.10 among them) | `install.sh` / `install.jl` fetch byte-exact |
+| `config/defaults/tools.yml` | tool paths | including SSH-hosted binaries for vsearch etc. |
+| `frontend/public/config.json` | `apiBase` for a split deployment | see below |
+
+### Split deployment
+
+Serving the frontend from another origin than the API needs two settings:
+`apiBase` in `frontend/public/config.json` (the API's address) and
+`JULIA_METAMANIFOLD_ALLOWED_ORIGINS` (the frontend's address) when starting the
+server. Since 2026-11-13 the frontend validates `apiBase`: it must be an
+absolute `http://` or `https://` URL, optionally with a path prefix, and no
+user name, password, query or fragment. A refused value is reported in the
+browser console and the frontend falls back to its own origin. The README's
+"Split deployment" section is the reference.
 
 ## Reference databases (the real operational load)
 
diff --git a/Status-and-Roadmap.md b/Status-and-Roadmap.md
index 62e8869..ac09b06 100644
--- a/Status-and-Roadmap.md
+++ b/Status-and-Roadmap.md
@@ -18,6 +18,11 @@ PLACE, PARTIAL, COMING or BLOCKED (legend on [Home](Home)). Dates are
 Europe/London. The repository tree is the final arbiter; where this page and
 the code disagree, the code has moved and this page owes an update.
 
+**Last checked: 2026-11-13**, for the rows changed on that date (the remote
+SSH row, the differential-abundance, ordination and zero-handling rows, and the
+two new sections at the end). The dated record behind them is
+`docs/release-notes/2026-11-13-current-state.md` in the repository.
+
 ## Pipeline — raw reads to tables
 
 | Capability | Status | Notes |
@@ -30,7 +35,7 @@ the code disagree, the code has moved and this page owes an update.
 | Per-run DuckDB results store | **IN PLACE** | `src/core/duckdb_store.jl` |
 | Stage freshness skipping (mtime for files, content hash for config) | **IN PLACE** | stale stages flagged with the exact changed keys |
 | FastQC + MultiQC prefilter QC | **PARTIAL** | implemented and CI-exercised since #44; reports embed in the run view |
-| Remote (SSH) offload of the taxonomy step | **PARTIAL** | works; authorisation is solely the operator's responsibility |
+| Remote (SSH) offload of the taxonomy step | **PARTIAL** | works; authorisation is solely the operator's responsibility. Recovery after a local interruption is **not** on this fork's `main`: it is proposed upstream as JoshuaJewell#68 (open, not merged) |
 | DADA2 single-end / forward / reverse modes | **IN PLACE** | `file_patterns.mode` |
 
 ## Analysis and statistics
@@ -43,18 +48,20 @@ the code disagree, the code has moved and this page owes an update.
 | NMDS + PERMANOVA (vegan, locked R) | **IN PLACE** | permutation exchangeability is the standing caveat |
 | Normalisation: none, rarefaction | **IN PLACE** | |
 | TSS/CSS/RSS size-factor **offsets** (exact, not aliases) | **IN PLACE** | issues #16, #61, #62 — conditions in `docs/statistics/method-conditions/scaling-and-offsets.md` |
-| Exact descriptive summaries (counts, rational proportions) | **IN PLACE** | catalogue item 1; `src/analysis/exact_summaries.jl` |
+| Exact descriptive summaries (counts, rational proportions) | **IN PLACE** | catalogue item 1; `src/analysis/exact_summaries.jl`. This fork's catalogue is `approved` in scope by the fork owner (fork issue #1); the upstream proposal (#69, open) carries it as `pending_review` |
+| High-precision (MPFR) Shannon and Gini–Simpson | **IN PLACE** | `src/analysis/high_precision.jl`; marked approximate with achieved precision. Upstream proposal #72 is a draft |
 | Numeric policy: exact / approximate / rounded, explicit modes | **IN PLACE** | `src/analysis/numeric_policy.jl` |
 | Parametric fits — NB-GLM, CLR/ILR-LM, logistic (ML with refusal states) | **PARTIAL** | implemented with R-reference tests; **independent statistical review (#1) outstanding** |
 | Zero-depth sample healing before transforms | **IN PLACE** | #58 |
 | Nonparametric tests (permutation/bootstrap) | **COMING** | catalogue item 3, approved scope only |
 | Exact statistical tests (Fisher, exact NB, permutation PERMANOVA) | **COMING** | issue #3, catalogue item 4 |
-| Multinomial / Dirichlet-Multinomial regression | **COMING** | issue #17 |
-| Occupancy models, ZINB, hurdle | **COMING** | issue #18 |
-| Constrained ordinations (RDA/CCA/CAP/dbRDA) | **COMING** | issue #19 |
+| Multinomial / Dirichlet-Multinomial regression | **IN PLACE** | `multinomial` and `dirichlet_multinomial` differential methods (README, "Differential abundance"); `mn_backend: mglm` fits them with MGLM through R |
+| ZINB, hurdle NB | **IN PLACE** | `zinb` and `hurdle_nb` in the differential config and UI (`ROADMAP.md`) |
+| Occupancy models | **PARTIAL** | low-level estimator `fit_occupancy` only; not selectable as an analysis; issue #205 (`ROADMAP.md`) |
+| Constrained ordinations (RDA/CCA/CAP/dbRDA) | **IN PLACE** | README, "Overview"; `docs/statistics/constrained-ordinations.md` |
 | PhILR / SBP ILR bases, balance dendrograms | **COMING** | issue #20 |
-| Advanced zero handling (glmGamPoi dispersion, Bayesian multiplicative) | **COMING** | issue #21 |
-| ANCOM-BC, ALDEx2, Songbird-style methods | **COMING** | issue #5 |
+| Advanced zero handling (glmGamPoi dispersion, Bayesian multiplicative) | **IN PLACE** | `nb_glm` `dispersion: glmGamPoi`; `clr_welch` GBM/CZM replacement (README; `docs/statistics/zero-handling.md`) |
+| ANCOM-BC, ALDEx2, Songbird-style methods | **IN PLACE** | `ancom_bc`, `aldex2`, `songbird` on this fork. Native estimators for upstream are proposed in #70 (draft), waiting on `CompositionalDA` in the Julia General registry (JuliaRegistries/General#175952) |
 | Symbolic formula engine | **BLOCKED** | issue #2 — waits on real-data validation of the numeric layer |
 
 ## Workbench and application
@@ -83,7 +90,8 @@ the code disagree, the code has moved and this page owes an update.
 | Julia + frontend test suites, type-level assertions | **IN PLACE** | DOM-lane for Plotly-chain modules **COMING** (decision queued) |
 | Benchmarks with baselines (informational lane) | **IN PLACE** | promotion to non-gating regression alert after a stability window |
 | CI: hygiene, pinned tools, commit gate, Dependabot auto-merge-on-green | **IN PLACE** | |
-| Coverage gate | **COMING** | deliberate: gates on a recorded baseline, not an arbitrary number |
+| Coverage gate | **COMING** | deliberate: gates on a recorded baseline, not an arbitrary number. Codecov is informational today (see below) |
+| SonarCloud required check | **IN PLACE** | Sonar way gate on new code; `docs/sonar-quality-gate.md`; local guard `scripts/lint-sonar-reliability.sh` |
 | OpenSSF Best Practices / Scorecard badges | **COMING** | enrolment first, badges on the day (never before) |
 | Independent statistical review of the analysis layer | **COMING** | issue #1's acceptance gate; the reason PARTIAL marks exist above |
 
@@ -106,3 +114,27 @@ the code disagree, the code has moved and this page owes an update.
   `docs/milestones/02-deferred-issues.md` and `docs/issues/milestone3/`.
 - Issues #1 and #2 are the two that must never be closed prematurely (the
   owner-review record makes this explicit).
+
+## Open upstream pull requests (2026-11-13)
+
+Work from this fork proposed to JoshuaJewell/MetaManifold-WebUI. **None of
+these is merged upstream.**
+
+| PR | State | What |
+|---|---|---|
+| #68 | open | Recoverable SSH stages (upstream issue #66) |
+| #69 | open | Exact descriptive statistics with independent pipeline evidence (upstream issue #65); catalogue `pending_review` |
+| #70 | draft | Native ALDEx2 and ANCOM-BC through `CompositionalDA`; waits on its General registration (#175952) |
+| #71 | open | Multinomial and Dirichlet-multinomial differential abundance |
+| #72 | draft | High-precision Shannon and Gini–Simpson, split out of #69 |
+
+## Quality signals (2026-11-13)
+
+- **SonarCloud, this fork's `main`:** before that day's fix, 22 bugs and 3
+  vulnerabilities were open (reliability and security ratings C), all older
+  than the new-code window, so the gate was green. All 25 were fixed in code,
+  except one R finding that is not a defect. Re-read the current numbers from
+  SonarCloud.
+- **Codecov:** Julia backend only. Upstream `main` 80.72%; upstream #69 has
+  99.53% patch coverage (5 of 1,063 changed lines uncovered, check green). This
+  fork's Codecov repository is not activated.
-- 
2.43.0
```
</details>

The wiki has other pages I have not audited line by line. They may still
refer to files this repository does not have (for example `mise.toml`,
`justfile` and `docs/migration/STATUS.md`).

## Contribution checks

- [x] I followed [CONTRIBUTING.md](../CONTRIBUTING.md).
- [x] This branch starts at the current fork `main` (7b2cadd) and
contains no merges. The Branch freshness check passed.
- [ ] CI has run and passes. `Julia tests` was still running when this
was written.
- [x] Existing licensing, citation and acknowledgement text is
unchanged.

Agents wrote this code and these documents. The person answering for
them is Jonathan D. A. Jewell (The Open University). The owner has not
reviewed them yet.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_0136P7ZjoMTmdce1zuwSJWdN

---------

Co-authored-by: Claude <[email protected]>
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