Repository navigation
feat(settings)!: report update mode and pending restart - #9885
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: f4f927c94e
ℹ️ 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: f2b7c3bb92
ℹ️ 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".
Depends on morluto#9885. That branch replaces rea_restart_required with update_mode and pending_restart and forbids the legacy fields.
Depends on morluto#9885. The $MFT limit uses update_mode and pending_restart, and the setting declares updateMode so the numeric-limit check accepts it.
Depends on morluto#9885. That branch replaces rea_restart_required with update_mode and pending_restart and forbids the legacy fields.
Depends on morluto#9885. The hive limit uses update_mode and pending_restart, and the setting declares updateMode so the numeric-limit check accepts it.
Depends on morluto#9885. That branch replaces rea_restart_required with update_mode and pending_restart and forbids the legacy fields.
Omit a path or URL literal when its serialized record, including provenance, does not fit the remaining worker result budget. When the count ceiling is already the setting maximum, report that ceiling as maximal. Depends on morluto#9885: the limit uses update_mode and pending_restart.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 58b4b17fd3
ℹ️ 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: bb598a23cf
ℹ️ 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: 70f91ac602
ℹ️ 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: 5d79a3c395
ℹ️ 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: 58bd9a6f02
ℹ️ 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".
Depends on morluto#9885. Bring the allowlist, tracked-limit rules, parameter update mode, and restored historical receipts.
Depends on morluto#9885. Bring the allowlist, tracked-limit rules, parameter update mode, and restored historical receipts.
Depends on morluto#9885. Bring the allowlist, tracked-limit rules, parameter update mode, and restored historical receipts.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2622efe5df
ℹ️ 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".
Part of #9881. Add effect immediate or next_process and keep rea_restart_required, restart_required, and restartRequired as compatibility aliases.
Callers read update_mode to see whether update_analysis_settings can change a limit, and pending_restart only when a configured value is not active in this process.
Invalid ChangeTime settings now carry update_mode and pending_restart through the configuration error and its projection, including startup parsing. Runtime recoveries name update_analysis_settings instead of telling the caller to restart REA.
artifact_limits and web-network budgets report update_mode parameter because update_analysis_settings cannot change them. The legacy-name scan no longer reads docs, and the 2026-11-09 Ghidra receipts are restored to the fields they recorded.
analysis_timeout_ms, max_heap_mb, and command_timeout_ms keep the source chosen by the caller, the runtime override, or the built-in default. A request value reports update_mode parameter because update_analysis_settings cannot change that call.
The changelog and the limit migration now name runtime, restart, and parameter. parameter is the mode for a value this call supplied.
A one-shot CLI failure tells the caller to set the launch environment for the next REA process. update_analysis_settings stays on the continuing session. Reused JavaScript workers also keep the limit source that selected them.
Retain existing merge resolutions for update modes, source-scan failures and external-reader fixtures while replaying the settings layer on the merged inventory. Preserve parent provenance, candidate counts and presentation-test resource bounds. Co-authored-by: gensokyo-dev <[email protected]>
5db63b2 to
af344fe
Compare
Breaking change
update_analysis_settings,inspect_analysis_settings, and limit errors no longer includeeffect,rea_restart_required,restart_required, orrestartRequired. There is no compatibility alias.Read
update_modeandpending_restart.runtimemeans the setter can change the active value.restartmeans this process keeps the value it started with.parametermeans the limit is controlled by a per-call parameter, soupdate_analysis_settingscannot change it. The separatesourcefield says whether the value came from the request or a default. Artifact reader limits, web-network capture budgets, and an explicitanalysis_timeout_ms,max_heap_mb, orcommand_timeout_msuseparameter, withpending_restart: false.A caller argument is
source: "request"andupdate_mode: "parameter"; an omitted parameter can instead usesource: "default"with the same mode. A runtime override issource: "runtime"andupdate_mode: "runtime"; a runtime-editable built-in default usessource: "default"andupdate_mode: "runtime". The changelog and the limit migration name all three modes.The 2026-11-09 Ghidra verification receipts keep the fields they recorded. The legacy-name scan does not read
docs.Summary
Part of #9881. This branch incorporates #9884. Numeric-limit discovery distinguishes direct reads from syntax candidates and reports unresolved dynamic keys; its static scan does not prove reachability or complete reader coverage. External Python and generated bridge controls have separate behavioral witnesses.
Validation performed
Integrated stacked changes:
npm run check:fast, 21 scanner tests, the numeric guard and its focused permission-boundary test passed. The permission test skips on Windows and when run as root.npm run check:fast— passed.npm run test:focused -- tests/evaluation/numericLimitCheck.test.ts— passed (9 tests).Follow-up
57e5925f0d: rejected Windows ChangeTime values no longer claim a pending accepted restart or an effective value. Ten regression cases failed on the prior head; 104 config/projection tests andnpm run check:ci:fastpass after the fix. No Windows host was exercised.Follow-up
01e388b0ef: the numeric-limit guard fails on missing or unreadable scan roots and subdirectories. A real permission-boundary test failed on the prior head and passes for unreadable root, unreadable child, and missing root.npm run check:ci:fastpassed. Four compiled CLI/MCP settings and limit suites passed 19 tests; the guard permission test is skipped on Windows and when run as root.Invalid launch-state follow-up
An invalid launch value without a runtime override no longer reports
pending_restart: false; the descriptor and SDK-converted schema omit the unproven field. A valid runtime override reportsfalse, and reset restores the invalid-state omission. The existingupdate_modesemantics remain unchanged.pending_restart: false.npm run check:ci:fastpassed. Real JADX and Ghidra providers were not exercised.Integration validation (2026-11-11)
Replayed the 11 settings-layer contributions on merged #9884 with their original authors and messages. One separately attributed integration commit preserves the existing syntax/provenance and permission-fixture resolutions. Parent test bounds and source-candidate counts remain intact.
Executed on Node 24.22.1 with two-core CPU affinity:
check:fast,docs:check(including 9 consistency tests), 241 configuration/application/projection/WASM tests, 23 registry/guard tests including real unreadable/missing-directory cases, and 26 compiled CLI/MCP tests across settings, artifact reader limits, ASAR admission and JavaScript resource recovery. All passed. SDK-converted settings schemas and invalid launch override/reset were exercised. No Windows host or real analysis provider was exercised.Automated review completed on
af344fe65with no findings. Actions remain queued, so CI is unverified; integration uses the authorized maintainer bypass. Existing human-owner declarations below are preserved.Author readiness
Human owner: @morluto
Before merge
type(scope): outcome.