Repository navigation
ci(limits): inventory numeric REA_ limits and check them - #9884
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 11839a2ef8
ℹ️ 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".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 972d652483
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 42f42c1ffc
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8a7fbfdd21
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e603982ddd
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d957d00db4
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0e1389858e
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 02d8fd878d
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 24218ab82b
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 297d8c7712
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 11d4869edd
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 907b81ec9e
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Part of #9881. Record every numeric REA_ limit and fail static checks when one is neither a runtime analysis setting nor a documented exception with a reason.
…tions The numeric-limit check now treats REA_WEB_BUNDLE_ENDPOINT_LITERAL_CANDIDATES as a count limit and does not count registry text as a producer.
Discovery no longer treats comments or registration-list entries as producers. The three limits moving on their own PRs must join ANALYSIS_SETTINGS; the exception registry cannot classify them.
A quoted name after an identifier, call, or optional chain is a producer. Only declaration arrays and comments stay out of discovery.
Property access, element access, and helper-call arguments are producers. Comments and array literals are excluded by the tree, so a later argument such as read(environment, "REA_NEW_MAX_BYTES") stays classified.
…all guard dependency-free Object bindings, in-checks, and object keys that a spread can copy are producers. The architecture guard skips the TypeScript parse until typescript6 is installed, and the inventory links stay inside the published site.
A one-test suite named for the bridge script was collected with no tests in the full source run, which failed the file. The same assertion now sits directly on the file.
The main merge dropped the fs import that the file-level assertion uses.
A loaded shard killed the full-catalog child at its 20s limit.
oxfmt rejects the tables that arrived with main.
The main merge left two tables that oxfmt rejects.
A constructor copy is not a per-call read. Numeric limits also come from a number schema or a numeric parse, and the inventory no longer lists path and provider constants.
New per-call registry entries are rejected. Inventory checks require a table row, and the Electron argv handoff is process protocol rather than a caller setting.
A numeric parser now reads property and element accesses in its argument, so Number(process.env.REA_ARCHIVE_ENTRY_LIMIT) is a producer without a schema key. Template discovery keeps generated assignments and no longer treats a diagnostic sentence as a read.
aba4525 to
46cd474
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 46cd474c5d
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Co-authored-by: gensokyo-dev <[email protected]>
Co-authored-by: gensokyo-dev <[email protected]>
The prepared full/full fixture takes 31.73 seconds on two CPU cores; restoring a 20 second child deadline causes a real bounded-run failure. Keep the 60 second child budget and 70 second outer deadline. Co-authored-by: gensokyo-dev <[email protected]>
|
Integration note: the full/full presentation fixture completed in 31.73 s on two CPU cores with prepared artifacts (29.01 s user + 1.53 s system CPU; sampled family PSS about 944 MiB). The enclosing test passed in 32.19 s with a 60 s child deadline and 70 s outer deadline. Commit 5951cc1 restores a 20 s child deadline, which is below this measured successful runtime, so I am retaining the 60/70 s budgets and cancellation hook in a separate follow-up. The 16 MiB output bound and all schema/handler assertions remain intact. |
Summary
Part of #9881. Every numeric
REA_limit is listed with its owner, default, floor, maximum, when it is read, and its classification. Static checks fail when a new numericREA_limit is neither a runtime analysis setting nor on that list with a reason.Discovery uses the TypeScript parser (
typescript6) to identify numeric limit candidates and direct, unshadowedprocess.envreads. Candidate syntax and unresolved dynamic keys are reported as uncertain; syntax does not prove reachability, invocation frequency, or complete coverage. External Python reads and the generated bridge control have separately identified behavioral witnesses. The pre-install guard defers parsing untiltypescript6is installed;npm run lintruns it afternpm ci.Problem and expected behavior
Runtime analysis settings cover 17 values. Other numeric
REA_limits are still read from the launch environment, and nothing stopped a new one from landing without a classification. The inventory records 14 runtime environment seeds, 11 per-call limits that still use the launch value, and 15 restart-only numeric limits.REA_NTFS_MFT_MAX_FILE_BYTES(#9868),REA_REGF_HIVE_MAX_FILE_BYTES(#9865), andREA_WEB_BUNDLE_ENDPOINT_LITERAL_CANDIDATES(#9836) are absent from this tree and must joinANALYSIS_SETTINGSonce they appear. The exception registry cannot classify them.Change and scope
The narrative inventory is
docs/design/rea-limit-inventory.md.src/domain/numericLimitRegistry.tsis the machine-readable exception list.scripts/verify/rea-numeric-limits.mjsscanssrc(tests excluded) and runs fromnpm run lint.policy: "per-call"is temporary. Those 11 limits are checked when the work runs and still copy the launch value. Durable exceptions usepolicy: "restart-only".Follow the contribution scope. Ordinary classification of existing limits; no new provider, target execution, injection, mutation, or protection recovery. Maintainer scope decision: not applicable.
Contract and boundary impact
Evidence and regression coverage
The scanner tests cover direct and candidate evidence, dynamic and shadowed aliases, AST-owned runtime setting seeds, numeric expression contexts, write-only accesses, provenance declarations, and syntactic lifecycle observations. The Python display-helper and reconnect tests exercise their respective consumer behavior; the bootstrap test separately checks generation of the reconnect control. Python-dependent tests can skip when Python is unavailable, and Node lint only checks that the declared witness files exist.
Validation performed
npm run check:fast— passed on the current integrated change.npm run test:local -- tests/evaluation/numericLimitCheck.test.ts src/domain/numericLimitRegistry.test.ts src/hopper/bridgeBootstrapLimit.test.ts— 23 passed before the latest AST fix; the updated scanner suite passed all 21 tests.npm run test:focused -- tests/boundary/providers/hopper/linuxPrivateDisplay.test.ts tests/boundary/providers/hopper/hopperBridgeReconnect.test.ts— 14 passed, 5 skipped on the equivalent pre-integration tree; Python timeout and reconnect cases ran.Compatibility, safety, and release
Integration validation (2026-11-11)
Preserved the original contribution commits and authors while linearizing the branch for the repository's rebase-only merge policy. Follow-up commits align the full-catalog child/test deadlines, abort unfinished child execution, and distinguish the 38 recognized TypeScript candidates from two external/generated controls.
Executed on Node 24.22.1 with CPU affinity limited to two cores:
check:fast,docs:check, 24 registry/discovery/bootstrap tests, the full-schema contract presentation test (1), and Hopper Python/process boundary witnesses (19), all passed. Documentation route/link verification also passed before the prose-only follow-ups. No real provider GUI was exercised. A prepared-artifact full/full fixture run took 31.73 s, 29.01 s user CPU + 1.53 s system CPU; sampled descendant-family PSS peaked at about 944 MiB (250 ms samples, excludes Vitest). These are bounded-run observations, not a speedup claim.GitHub Actions checks remain queued; this is unverified CI, not a passing result. The existing human-owner readiness declarations below are preserved.
Post-merge history verification: the rebase merge retained 22 commits with their original authors/messages and an identical final tree. GitHub omitted four historical commits that were already tree-empty on the linearized branch; the original PR head
faac54bd70c1a644f4533269ef888138e7466c29retains the pre-merge history. No contribution changes were squashed.Author readiness
Human owner: @morluto
Before merge
type(scope): outcome.