Skip to content

fix(analysis): method names compare in lower case; offsets wired in - #62

Merged
hyperpolymath merged 1 commit into
mainfrom
arena/01a0da3a-metamanifold-webui
Sep 25, 2026
Merged

hyperpolymath merged 1 commit into
mainfrom
arena/01a0da3a-metamanifold-webui

Conversation

@arena-ai-coding-agent

Copy link
Copy Markdown

Two things in one PR, because they have one cause: the layer that claimed to compute
TSS/CSS/RSS offsets did not, and the layer that accepted them refused them.

1. The refusal — main is red because of this

NormalizationConfig canonicalises its method to lower case ("TSS" → "tss"), while
VALID_NORMALIZATION_FOR_METHOD listed "TSS", "CSS", "RSS". The membership test
therefore failed for those three spellings and AnalysisConfig raised
normalization.method 'tss' incompatible with method 'nb_glm' — including for the
existing test/unit/test_execution.jl testset TSS offset for NB_GLM, which constructs
method="TSS" exactly as the documentation instructs. That is the failure behind the red
Julia tests job on the TSS-offsets commits; it is not a flaky test and it is not the
new estimation layer.

The table and both comparisons (constructor, validate_config) are lower case now, the
JSON-schema enum still accepts the upper-case spellings for existing documents, and
test/unit/test_scaling.jl asserts that every admissible spelling of every method name
is accepted.

2. The wiring — issue #16's offsets are computed, not aliased

prepare_analysis_table now computes scaling factors through src/analysis/scaling.jl
and hands the offset to the fit:

declared response offset
tss / none (count model) counts log(library size)
css counts log cumulative sum at the declared css_quantile
rss (TMM) counts log trimmed weighted mean of log-ratios to a reference sample
size_factors counts log median-of-ratios (RLE) — the estimator the name claimed
relative proportions none (a transform, not an offset)

Previously css/rss were aliased to relative under @warn, tss did that for every
method but nb_glm, and size_factors computed library-size centring wearing DESeq2's
name. css/rss are now refused for a response with no counts to offset — in the
configuration layer and again in the execution path.

css_quantile (0.75), tmm_ref_column (chosen the way edgeR chooses it, and recorded),
tmm_log_ratio_trim (0.3) and tmm_sum_trim (0.05) are validated in the constructor,
included in the config hash and canonical JSON, round-tripped through
to_json/from_json/Nickel/DEED, mirrored in the JSON schema and Nickel contracts,
exposed through the server's configuration route, and explained in context_help and the
frontend help. A run that declared a different quantile is a different run.

diagnostics.checks["scaling"] and the manifest provenance record the kind, the
definition, the parameters, the raw quantities before centring and a SHA-256 of the
offset vector.

Evidence

  • test/unit/test_scaling.jl: known answers with the arithmetic written beside them;
    properties a wrong implementation fails (feature permutation, a sample that is an exact
    multiple of another, invariance to a shared constant); the CSS outlier-robustness
    property; negative controls for every refusal (zero-total sample, zero CSS cumulative
    sum, unknown reference, disjoint supports, out-of-range trims); the integration path
    through prepare_analysis_table; and a base-R transcription of the same conditions,
    which skips loudly by name where R is unreachable.
  • Conditions document, published before the implementation and merged in feat(analysis): exact TSS/CSS/RSS offsets, and no silent substitutions #61:
    docs/statistics/method-conditions/scaling-and-offsets.md.
  • Local gates: check-spdx.sh OK (284 files), check-format.sh OK (331 files),
    check-lint.sh OK (tsc --noEmit clean over frontend/src).

Not claimed

Parity with metagenomeSeq::cumNorm and edgeR::calcNormFactors at 1e-6 is not
verified: neither package is in renv.lock, and this PR does not add an unpinned R
dependency to make a test pass. The base-R transcription catches implementation slips, not
specification errors. That outstanding condition stays recorded in issue #16 and in the
conditions document rather than being asserted as met.

Closes #16.

Two things, one cause: the layer that claimed to compute TSS/CSS/RSS offsets
did not, and the layer that accepted them refused them.

The refusal. NormalizationConfig canonicalises its method to lower case while
VALID_NORMALIZATION_FOR_METHOD listed "TSS", "CSS", "RSS", so the membership
test failed for those three spellings and AnalysisConfig raised
"normalization.method 'tss' incompatible with method 'nb_glm'". That is what
reddened the CI run for the merged TSS-offsets commit — the existing
test_execution.jl testset constructs method="TSS" exactly as documented. The
table and both comparisons are lower case now, and the new tests assert that
every admissible spelling of every method name is accepted.

The wiring. prepare_analysis_table now computes scaling factors through
src/analysis/scaling.jl and hands over the offset, rather than aliasing
TSS/CSS/RSS to `relative` (which fed a count model a table of fractions) and
calling library-size centring "DESeq2 median-of-ratios":

  tss          log library size (counts stay counts)
  css          log cumulative sum at the declared css_quantile
  rss (TMM)    log trimmed weighted mean of log-ratios to a reference sample
  size_factors median-of-ratios (RLE), the estimator the name claimed
  none         the plain log library size, as it always meant for a count model

css and rss are refused for a response with no counts to offset, in the
configuration layer and again in the execution path. css_quantile,
tmm_ref_column, tmm_log_ratio_trim and tmm_sum_trim are validated in the
constructor, part of the config hash and canonical JSON, round-tripped through
to_json/from_json/Nickel/DEED, mirrored in the JSON schema and Nickel
contracts, exposed through the server route, and explained in context_help and
the frontend help.

What was computed is recorded in diagnostics.checks["scaling"] and the
manifest provenance, including the parameters, the raw quantities before
centring and a SHA-256 of the offset vector.

Evidence: test/unit/test_scaling.jl — known answers with the arithmetic written
beside them, properties a wrong implementation fails (feature permutation,
sample-multiple invariance, shared-constant invariance), the CSS outlier
robustness property, negative controls for every refusal, the integration path
through prepare_analysis_table, and a base-R transcription of the same
conditions. Parity with metagenomeSeq::cumNorm and edgeR::calcNormFactors is
not claimed: neither is in renv.lock, and the outstanding condition stays
recorded in issue #16 and in
docs/statistics/method-conditions/scaling-and-offsets.md.

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: 9bc858b1-5d6b-4943-a683-5f7aeec1debd

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 11c9f54 into main Sep 25, 2026
5 of 6 checks passed
@hyperpolymath
hyperpolymath deleted the arena/01a0da3a-metamanifold-webui branch September 25, 2026 20:53
hyperpolymath added a commit that referenced this pull request Sep 25, 2026
## Why

With #65's annotations, the red Julia job on `main` is readable for the
first time. Run 36193210557 names 11 failures and 20 errors, **all in
`test/unit/test_estimation.jl`**. The Scaling suite (#16) passes. There
are three causes:

1. **Every parametric fit came back `not_run`.** R writes the fits with
`write.csv(..., na = "NA")`, and Julia read them with `CSV.File(path)`,
whose default `missingstring` is `""`. Any numeric column containing an
`NA` was read as `String31`, and `_num` then threw `MethodError: no
method matching isfinite(::String31)`. The catch-all turned that into
`status = :not_run`, which produced the cascade of `KeyError`s
(`n_tested`, `n_failed`, `correction`, `t_up`) and `0 == 3` results in
five testsets.
2. **`glmGamPoi` never reached its #21 refusal.** `AdvancedConfig`
lower-cases `dispersion_method` and then checks it against
`VALID_DISPERSION_METHODS`, which spells it `glmGamPoi`. So
`nb_config(dispersion = "glmGamPoi")` was refused as an unknown name.
This is the same class of bug as the `tss`/`TSS` one fixed in #62.
3. **The "no placeholder statistics" scan flagged comments.** Comments
in `estimation.jl` and `Execution.jl` quoted the removed code literally
(`hash(taxon_id)`).

## What

- `estimation.jl`: `R_NA_STRINGS = ["NA", ""]` is passed as
`missingstring` to both `CSV.File` reads. `_refused_dispersion` looks up
`REFUSED_DISPERSION` case-insensitively, and the error message uses the
canonical name.
- `AnalysisConfig.jl`: the dispersion compare is now lower-case against
`lowercase.(VALID_DISPERSION_METHODS)`.
- The comments are reworded, and the source-scan test is unchanged and
still strict.
- `test_estimation.jl`: three extra spellings (`glmgampoi`, `GLMGAMPOI`,
` glmGamPoi `) must each hit the #21 refusal.
- `CHANGELOG.md` entry.

## Verified / not verified

- spdx, format and blob-hygiene gates are clean.
- There is no Julia runtime in the authoring sandbox, so **this PR's CI
run is the first execution**. Diagnosis 1 comes from the `reason` string
in the annotation. Once the fits run, some numeric assertions that were
never reached may surface in turn. If so, the annotations will name
them.

Co-authored-by: hyperpolymath <[email protected]>
hyperpolymath added a commit that referenced this pull request Oct 20, 2026
…rast (#192)

## Change and reason

Prepares the next push to upstream
[JoshuaJewell#62](JoshuaJewell#62),
the glmGamPoi dispersion option for JoshuaJewell#37.
The branch is upstream PR 62's reviewed head (`efe1df1`) plus three new
commits, so the update fast-forwards. Under upstream CONTRIBUTING item
8, nothing is rebased once review has started.

1. **Report glm_gp's negative-binomial overdispersion as theta.** Your
`wip/pr62-theta` commit, cherry-picked unchanged. It covers both of
Joshua's code requests from Oct 19 (theta is `1 / overdispersions`; the
Poisson boundary is read from it).
2. **Pass the glmGamPoi contrast to test_de as numeric weights.**
`glmGamPoi::test_de` parses and evaluates a text contrast as R code. The
contrast label is built from run, group and sub-group names joined by
`/`, and those names may contain `-`. So the glmGamPoi path failed every
taxon for comparisons such as `run-A` vs `run-B` or `grpA/run_1` vs
`grpB/run_2`, and label text that reads as R code was executed. The
commit adds a regression test that covers both dispersions.
3. **State what glmGamPoi's theta, standard error and boundary mean.**
These are precision fixes, checked against the glmGamPoi 1.22.0 source:
- `overdispersions` is the per-taxon estimate before shrinkage. The
coefficients and the F-test use the cross-taxon trend, and only `lfc_se`
reads `overdispersions`.
   - The boundary note no longer says the fit is Poisson.
- The README now lists `dispersion` with the other study-scoped
settings.

**Do not merge this PR on GitHub.** Merging would put unsigned commits,
or a merge commit, onto upstream PR 62. Re-sign on your machine and push
instead:

```sh
git fetch origin claude/elegant-rubin-z92rx4 upstream/glmgampoi-r
git switch -c pr62-next origin/claude/elegant-rubin-z92rx4
git rebase --exec 'git commit --amend --no-edit -S' efe1df1   # re-signs only the 3 new commits
git log --format='%h %G? %s' efe1df1..HEAD                     # expect G or E, never N
git push origin pr62-next:upstream/glmgampoi-r                  # fast-forward: no --force needed
```

When Joshua asks for a rebase (upstream `main` is now `ce2c645`), the
five-commit stack rebases cleanly onto it. That was checked in a scratch
worktree.

## Validation

Environment: Julia 1.12.5 (the CI pin, from the official image), R
4.3.3, MASS 7.3-60.0.1, glmGamPoi 1.14.3, bun 1.4.2.

glmGamPoi 1.14.3 lacks `compute_lfc_se`, so 1.22.0's pure-R `test_de`,
`test_de_q` and `predict.glmGamPoi` were loaded over it. Diffing the
1.14.0 and 1.22.0 sources shows no other change on these paths. Upstream
CI runs the real pins (R 4.5, glmGamPoi 1.22.0).

- **`CI=true julia --project=. test/runtests.jl test_differential.jl`:**
- **head:** 253 passed, 0 failed, 5 skipped. The skips are `clr_welch`
tests that need zCompositions. `CI=true` makes a missing glmGamPoi fail
rather than skip, so every glmGamPoi test ran.
- **commits 1, 2 and 3 on their own:** 202, 253 and 253 passed, 0
failed.
- **the new label test on the pre-fix code:** 5 failures, as expected.
The four label sets fail every taxon, and the R-code label ran.

- **Label experiments** (the `fit_nb` R block, run directly):
- **Before:** `run-B`, `grpB/run_2` and `2024-02` failed every taxon,
and a label of `[file.create(...)]` created the file.
- **After:** every label set gives rows identical to `A`/`B`, the file
is not created, and `glm_nb` is unchanged.
- **Null calibration** (share of p < 0.05, binomial SE about 0.003):

  | samples per group | glm_nb (Wald) | glmGamPoi (QL F) |
  |---|---|---|
  | 4 | 0.132 | 0.046 |
  | 12 | 0.069 | 0.048 |

- **Frontend:** `bun test src` 39 pass; typecheck clean; build succeeds.

Not run: the integration and server suites, the DADA2 taxonomy and
phylogeny paths, and the `clr_welch` tests (zCompositions unavailable;
they skip loudly).

## Scope

No lockfile change. The upstream PR description still has to be
replaced; Joshua's third request asks for that. A draft follows,
together with the summary comment for upstream issue 37.

<details><summary>Draft replacement description for upstream PR
62</summary>

~~~~markdown
## Change and reason

Adds an optional `analysis.differential.dispersion` setting for the
`nb_glm` method (issue #37). `glm_nb` stays the default and is
unchanged: `MASS::glm.nb` fits each taxon with its own
maximum-likelihood theta, and the group coefficient gets a Wald test.

`glmGamPoi` fits one `glmGamPoi::glm_gp` across the taxa that pass
`min_prevalence`, with `overdispersion_shrinkage = TRUE`. It reports
`glmGamPoi::test_de`'s quasi-likelihood F-test of the group contrast
(Lund et al., 2012), which is glmGamPoi's own published inference. The
trend-plus-Wald design in the first version of this PR has been
replaced. In that path:

- **estimate and se**: `lfc` and `lfc_se`, converted from log2 to the
natural-log scale. `lfc_se` comes from `predict()` and does not feed the
p-value.
- **statistic and pvalue**: the F statistic and its p-value. The F-test
refits the reduced model at the cross-taxon dispersion trend and divides
by the shrunken quasi-likelihood dispersion.
- **dispersion_theta**: `1 / overdispersions`. This is glm_gp's
negative-binomial overdispersion, the taxon's own estimate before
shrinkage, and the same parameter `MASS::glm.nb`'s theta inverts
(requested in review).
- **Poisson boundary**: based on that overdispersion (requested in
review). A zero estimate marks the row `boundary` and keeps its
statistics, since the test does not read that estimate. A negative or
non-finite estimate fails only its own taxon.
- **contrast**: passed to `test_de` as numeric weights on the design's
columns. `test_de` parses and evaluates a text contrast as R code.
Before this change, a contrast label containing `-` or `/` (e.g.
`run-B`, or `grpB/run_2`, which the app builds when conditions differ by
group and run) made every taxon fail. A label that reads as R code was
executed.
- **failures**: a missing glmGamPoi raises `GlmGamPoiUnavailable` (HTTP
503). A `glm_gp` or `test_de` error fails every taxon, with no fallback
to `glm_nb`. `glmGamPoi` is refused for `clr_welch`.

Config and UI: the config editor and `PATCH /api/v1/config` accept the
new enum (`glm_nb`, `glmGamPoi`). The constructor refuses an invalid
method/dispersion pair when the analysis runs (HTTP 400
`invalid_config`). There is no other config rewrite; the first version's
description wrongly claimed one. The README lists the option with the
other study-scoped settings.

Commits, oldest first (the last three are new since your review):

1. `02ee915` Add glmGamPoi to the pinned R dependencies
2. `efe1df1` Add glmGamPoi dispersion option to nb_glm differential
abundance
3. Report glm_gp's negative-binomial overdispersion as theta (review:
theta and boundary)
4. Pass the glmGamPoi contrast to test_de as numeric weights (labels
with `-` or `/`; label text evaluated as R)
5. State what glmGamPoi's theta, standard error and boundary mean
(comments, note text, README, result type)

Closes #37.

## Validation

Run in a cloud container with Julia 1.12.5 (the CI pin), R 4.3.3, MASS
7.3-60.0.1, glmGamPoi 1.14.3, and bun 1.4.2. glmGamPoi 1.14.3 lacks
`compute_lfc_se`, so 1.22.0's `test_de`, `test_de_q` and
`predict.glmGamPoi` (pure R) were loaded over it. Diffing the 1.14.0 and
1.22.0 sources shows no other change on these code paths: `glm_gp_impl`,
`parse_contrast`, the overdispersion estimate and the quasi-likelihood
shrinkage are the same. CI on this PR runs the pinned R 4.5 with
glmGamPoi 1.22.0.

- `CI=true julia --project=. test/runtests.jl test_differential.jl`:
- **branch head:** 253 passed, 0 failed, 5 skipped. The skips are the
`clr_welch` tests, which need zCompositions. Under `CI=true` a missing
glmGamPoi fails rather than skips, so the glmGamPoi tests all ran.
  - **each new commit on its own:** 202, 253 and 253 passed, 0 failed.
- **the new label test against the pre-fix code:** it fails as intended.
Each of the four label sets fails every taxon, and the R-code label's
code runs.
- The `fit_nb` R block, run directly in R on the `effect` fixture:
- **labels**: `run-A`/`run-B`, `grpA/run_1`/`grpB/run_2` and
`2024-01`/`2024-02` failed every taxon before the fix. With it, every
label set, including one containing R code, gives rows identical to
`A`/`B`.
- **injection**: a label of `[file.create(...)]` created the file before
the fix and does not after it.
  - **glm_nb**: rows are unchanged.
- **field check**: setting `overdispersions[1] <- 0` changes `lfc_se[1]`
only; `pval`, `f_statistic` and `lfc` stay the same.
- Null calibration through the same R block (no taxon differs; TSS
offsets; dispersion falling with the mean). Share of p < 0.05:

  | samples per group | taxa tested | glm_nb (Wald) | glmGamPoi (QL F) |
  |---|---|---|---|
  | 4 | ~5,900 | 0.132 | 0.046 |
  | 12 | 4,000 | 0.069 | 0.048 |

  The binomial SE is about 0.003.
- Frontend (`frontend/`): `bun test src` 39 pass; `bun run typecheck`
clean; `bun run build` succeeds.

Not run here: the integration suite (`--integration`, `--server`), the
DADA2 taxonomy and phylogeny paths, and the `clr_welch` tests
(zCompositions was not available in the container; they skip loudly).

## Scope

Left out: a native Julia gamma-Poisson fit (#37 settled on R),
zero-inflated and occupancy models, any change to the `glm_nb` default
or its results, and any UI beyond the one enum.

Lockfile: `renv.lock` adds glmGamPoi 1.22.0 and the eleven packages it
needs that were not already pinned. Existing pins are unchanged. The
option cannot run without them, and CI and `install.jl` check that
glmGamPoi loads.

Noted for a separate issue, not this PR: in the calibration above, the
default `glm_nb` Wald test rejects too often at small n.

## Contribution checks

- [x] I followed
[CONTRIBUTING.md](https://github.com/JoshuaJewell/MetaManifold-WebUI/blob/main/CONTRIBUTING.md).
- [ ] This branch starts at current upstream main and contains no merges
from fork main. It starts at `029fa61` and contains no merges. Since
review has started, it gains commits rather than being rebased (item 8).
It rebases cleanly onto `ce2c645` whenever you ask.
- [ ] Every commit is signed and shows as Verified. *(tick after
re-signing)*
- [ ] CI has run and passes. *(tick after the push)*
- [x] Existing licensing, citation and acknowledgement text is
unchanged.

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

https://claude.ai/code/session_01HtyPfZ1MWBB94RawgzQgz7
~~~~

</details>

<details><summary>Draft summary comment for upstream issue 37</summary>

~~~~markdown
**Summary for the record**

**Question (Oct 15):** take glmGamPoi's dispersion shrinkage for
`nb_glm` (a) in R through RCall, or (b) as a native Julia gamma-Poisson
fit with R kept as the oracle?

**Answer (@JoshuaJewell, Oct 17):** (a). "glmGamPoi stays R, since there
is no reputable Julia equivalent."

**What follows from that, in #62:**

- **Option:** `analysis.differential.dispersion: glmGamPoi` is optional.
The default stays `glm_nb` (`MASS::glm.nb`), and its results are
unchanged.
- **Test:** inference is glmGamPoi's own quasi-likelihood F-test
(`glm_gp` + `test_de`), not the trend-plus-Wald plan from Oct 15.
- **Review fixes:** theta is `1 / overdispersions` (glm_gp's NB
overdispersion), and the Poisson boundary is read from it, as requested.
The contrast is now passed as numeric weights. Before that, any label
containing `-` or `/` (e.g. `grpB/run_2`) made every taxon fail, and
label text was evaluated as R code.
- **Dependencies:** `renv.lock` adds glmGamPoi 1.22.0 and the eleven
packages it needs; existing pins are unchanged.
- **Evidence:** in a null simulation, the share of p < 0.05 was:

  | samples per group | `glm_nb` (Wald) | glmGamPoi (QL F) |
  |---|---|---|
  | 4 | 13.2% | 4.6% |
  | 12 | 6.9% | 4.8% |

The `glm_nb` excess at small n is outside this issue's scope and is
worth its own issue.

**Good to go.** The R/RCall route is settled, and #62 is ready for
re-review once the three new commits are signed and pushed.
~~~~

</details>

---
_Generated by [Claude
Code](https://claude.ai/code/session_01HtyPfZ1MWBB94RawgzQgz7)_

---------

Co-authored-by: Claude <[email protected]>
hyperpolymath added a commit that referenced this pull request Nov 10, 2026
#318)

## Change and reason

The estate PROOF-POLICY (§2.1, 2026-11-01; metadatastician/standards
`3-practice/PROOF-POLICY.adoc` at `9bdf864`) sets the invocation for
first-party Agda theory proofs: `agda --safe --without-K
--cubical-compatible`, written out in recipes and CI. The modules, the
`.agda-lib` and CI used `--safe --without-K` only. So no receipt
recorded the required profile, and no theorem could carry a Proof
Witness Grade (§8).

- **Profile:** every module's `OPTIONS` pragma and
`metamanifold.agda-lib` add `--cubical-compatible`.
- **Audit:** `proofs/tests/axiom-audit.sh` also fails on a module
missing `--cubical-compatible`, or one that enables full `--cubical`,
which would need a separately reviewed profile.
- **CI:** the type-check writes out the full invocation and runs under
`LC_ALL=C.UTF-8`. Agda prints its warnings with Unicode, and under a
POSIX locale it exits 42 instead of reporting.
- **Ledger:** `proofs/PROOF-STATUS.md` is new. It holds the receipt and
the theory/engineering split per theorem (§1).
- 34 theory theorems are at **`PWG-3`**, each still owing its Rocq and
Lean legs (`OPEN`).
  - Engineering theorems carry status tokens only.
- The `Significance` → Idris2 move (§3) is recorded as an open
obligation.
- The glmGamPoi claims are recorded as `TESTED`, noting that they
describe upstream's implementation (#62), not this fork's #181 design.
- **README:** states the profile, the 158 `UnsupportedIndexedMatch`
warnings and the local command.

Rebased onto `main` after #317 (licence headers) merged as `3747b50`;
the licence commit dropped out as already applied, so this diff is the
proof-profile commit alone.

## Validation

- **Type-check:** Agda 2.6.4.3 with agda-stdlib v2.1 (`97bc55e`),
invoked as `agda --safe --without-K --cubical-compatible
MetaManifold/All.agda` from a clean `_build` on this head (`e188188`).
All 7 modules were accepted: exit 0, 0 errors, 158
`UnsupportedIndexedMatch` warnings.
- **Input digest:**
`75b605292a94d426281a0b1487852b42a170be0281e9c93bca66c8aff6ad1a42`
(recipe in the ledger). The digest is unchanged across the rebase, so
the ledger's receipt still describes this tree.
- **Unchanged tree, both profiles:** the CI profile and the estate
profile each accept the pre-change tree with no source edits.
- **Audit:** clean on the real tree. Two negatives planted in scratch
copies each exit 1 with the named finding:
  - a module without `--cubical-compatible`;
  - a module with full `--cubical`.
- **Deviation:** the session's Agda was built from Hackage source, since
`deb.debian.org` isn't reachable from the session, with TUF verification
off because cabal 3.8.1 cannot verify Hackage's current root keys. This
is recorded as a §6 deviation in the ledger, `open` until this PR's
"Agda proofs" job passes with the pinned Debian packages.

No Julia, R or bun code changed.

## Scope

Not included:
- Rocq and Lean recheck legs.
- Moving `Significance` to Idris2.
- Aligning the fork's glmGamPoi implementation with upstream's.
- Proposing the profile upstream, which is Joshua's decision.

All are recorded as open in the ledger. No lockfile change.

## Contribution checks

- [x] I followed [CONTRIBUTING.md](../CONTRIBUTING.md).
- [x] This branch starts at current `main` (`3747b50`) and contains no
merges.
- [ ] CI has run and passes. *(pending)*
- [x] Existing licensing, citation and acknowledgement text is
unchanged.

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

https://claude.ai/code/session_01HtyPfZ1MWBB94RawgzQgz7

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

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

## Summary by CodeRabbit

* **Documentation**
* Added a proof-status overview that distinguishes completed Agda proofs
from open verification work and records the current proof grades.
* Expanded proof-checking guidance, including supported validation
settings, locale requirements, and known warnings.

* **Verification**
* Agda checks now use consistent safe-mode settings and a UTF-8 locale.
* Automated audits now flag proof modules that do not meet the
documented settings.

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

---------

Co-authored-by: Claude <[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.

feat(analysis): TSS/CSS/RSS offsets — exact normalization with DESeq2-style offsets, not alias to relative

1 participant