Skip to content

docs: draft SEP 55, per-channel frequency support on the general modal route - #967

Open
jtravs wants to merge 1 commit into
mainfrom
docs/sep-0055-per-channel-frequency-support
Open

jtravs wants to merge 1 commit into
mainfrom
docs/sep-0055-per-channel-frequency-support

Conversation

@jtravs

@jtravs jtravs commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Drafts SEP 55 (tracking issue #966): per-channel frequency support on the general modal route, so that a channel which is bound at the pump and cut off in the infrared no longer removes itself from the guide. Documentation only; no code changes.

What changed

  • docs/dev/seps/sep-0055-per-channel-frequency-support.md: the draft, two AI reviews recorded in Part III, and the revisions that answer them.
  • docs/dev/seps/index.md: the index row and the toctree entry.

What the SEP proposes, in short

  • The model. Each channel is carried over the part of the active band where its provider certifies it bound, and is absent below its own limit: zero amplitude, zero reference field, no noise. It is a truncation of the modal basis that depends on frequency.
  • The interface. cutoff="drop" (the default) or "refuse" on the guide, an optional limits mapping that raises a channel's limit, and cutoff_collar for an optional taper above each limit. A guide that drops a channel warns when it is built, and a run warns by channel name when light reaches a limit.
  • The provider's side. solve stays strict. A provider reports a partial set through solve_partial, declared as the refinement protocol PartialModalProvider; GradedIndexProvider is the first. node_rule certifies the channels bound at its frequency.
  • The kernel contract. The general route gains a per-channel mask, so that an absent bin is exactly zero under the in-stage absorber and the hard mask of every march. The native build refuses unequal rows until its phase.
  • Performance first. The use case (seven channels, 40 961 bins) needs about 148 GB of record today. Phase 1 is held to at least four times less time per step and peak resident memory on two ten-step benchmarks that run today. The candidates include field components that are identically zero, quadrature nodes repeated by symmetry, a duplicated tabulated position and conjugate partners that are stored.
  • Identity. The new fields are recorded at their defaults, so the configuration hash of every general modal run changes with the release that carries them.
  • Verification. Nineteen checks, among them bit identity for a guide with full supports, absent bins exactly zero for each march, limits against an independent cut-off oracle that phase 2 delivers, and conservation against the interpolated Gram defect.

Measurements in the SEP

Taken with solprop 0.4.0 on an Apple M5 Max, native CPU build, six threads, two channels, Kerr only: 11.3 s per accepted step at 40 961 bins (median of 120 steps), a peak of 51 GB, and 83 % of the calling thread's samples inside a source evaluation in the two transform passes. The per-metre and seven-channel figures are labelled as estimates.

Review

  • First AI review (Opus 5.5, 12 findings): recorded in Part III and answered point by point.
  • Second AI review (Opus 5.5, clean context, 16 findings): recorded and answered point by point. The revision that answers it has not itself been reviewed.
  • Human review: pending.

Decided

The maintainer decided on 2026-12-04: the per-channel mask in the contract; cutoff="drop" as the name and the default; a ratio target for the performance phase, placed first; and the provider interface (Q3). Four questions remain, each tied to the phase that measures it (section 12).

How it was verified

  • git diff --check and codespell on the changed files: clean.
  • pytest tests/test_seps.py: 552 passed, 3 skipped, 3 xfailed.
  • sphinx-build -W -n on the documentation: succeeded.

🤖 Generated with Claude Code

https://claude.ai/code/session_01XGENPu7fCXFcGW4uMS6XUx

…l route

A general modal guide must hold every channel as a bound mode over the whole
active band, so a channel that is cut off in the infrared limits the channel
count of a run. The SEP proposes that each channel be carried where its
provider certifies it and be absent below its own limit, with a per-channel
mask in the kernel contract, and a performance phase first.

Part III records two AI reviews, the responses to them and the maintainer's
decisions. Tracking issue: #966.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XGENPu7fCXFcGW4uMS6XUx
@jtravs jtravs added documentation Improvements or additions to documentation sep Tracks an enhancement proposal (SEP) labels Dec 4, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-04T22:43:43.179053Z 8902c6a PR opened
🔒 Security Review ✅ Completed 2026-12-04T22:43:36.378788Z 8902c6a PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8902c6a208

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +760 to +764
- **Identity and resume.** The modal identity records the new fields at their defaults,
so the configuration hash of every general modal run changes with the release that
carries them, and a file written before it does not resume after it. That is the
project's rule for new configuration fields. Reading older files is unaffected.
- **Output schema.** Unchanged.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Plan backward-compatible validation of stored modal identities

For existing general-modal output files, adding these fields to the guide identity also breaks reference-dependent reading, not just resume. In src/solprop/processing/modal.py, _checked_tables compares the rebuilt guide identity with the stored identity, and _identity_refusal explicitly rejects missing or extra paths. Consequently, older files without the new fields will raise OutputError when processing reconstructs their reference, contrary to the unchanged-reading guarantee here. Include an explicit compatibility path in phase 4 that interprets legacy identities using their original full-support semantics while retaining strict validation and the new resume hash.

AGENTS.md reference: AGENTS.md:L94-L97

Useful? React with 👍 / 👎.

@read-the-docs-community

Copy link
Copy Markdown

📖 4 files changed · 1 added · 3 modified


Preview · build overview · solprop · built Dec. 4, 2026, 10:44 p.m. UTC

This branch has not been deployed

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

Labels

documentation Improvements or additions to documentation sep Tracks an enhancement proposal (SEP)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant