Skip to content

fix(config): remove redundant caller-budget limit alias - #8045

Closed
wunianze666-netizen wants to merge 1 commit into
morluto:mainfrom
wunianze666-netizen:codex/hopper-caller-limit-owner
Closed

wunianze666-netizen wants to merge 1 commit into
morluto:mainfrom
wunianze666-netizen:codex/hopper-caller-limit-owner

Conversation

@wunianze666-netizen

@wunianze666-netizen wunianze666-netizen commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Remove the redundant Hopper caller-scan ceiling alias that makes npm run knip fail on frozen main bf115be2cd900724a5bbd59a5cefc7af1dc2576f. The budget record and recovery guidance now read the existing shared maximum directly.

Problem and expected behavior

Knip reports one duplicate export: MAX_PROVIDER_STARTUP_TIMEOUT_MS|MAXIMUM_HOPPER_CALLER_SCAN_BUDGET_MS. This was independently reproduced on the unmodified baseline while validating #8043; the fix belongs in this separate PR. No existing issue was found for that exact alias.

The configuration record, its recovery guidance and the analysis-setting admission already use the same signed 32-bit timer boundary, 2,147,483,647 ms. Remove the duplicate name without changing that value, the 2,000 ms default, the 1 ms minimum, or the fixed byte allowances.

Change and scope

Three files: remove the alias from the domain limits owner, migrate its configuration consumer, and retain the existing tests against the shared constant. Runtime registration, JavaScript verifiers, bridge scripts, tests and packaged entrypoints were searched before removal; no other consumers were found. This is an internal import, with no package export or persisted name to migrate.

Contract and boundary impact

  • Semantic owner and earliest changed stage: analysisResourceLimits.ts; the budget metadata consumer uses its existing maximum.
  • Contribution scope fit and linked maintainer decision: ordinary internal cleanup; no new capability or authority.
  • CLI and MCP/tool-catalog contract: accepted settings and recovery output are unchanged.
  • Provider, bridge, target-format, or platform compatibility: no provider implementation change.
  • Evidence, artifact, provenance, or reconstruction contract: unchanged.
  • Target selection, authority, upstream behavior, and cleanup details: unchanged.
  • Generated metadata, package, or installation impact: none; no dependencies or generated files changed.

Expected effects:

  • Read existing files or captured data.
  • Launch or attach to a process.
  • Inject instrumentation or run scripts/code.
  • Change process memory, registers, files, or configuration.
  • Contact network services.
  • Recover protected code or work around protections.
  • Documentation or usability only; no target interaction.
  • Not sure yet; investigation or maintainer guidance needed.

The changed path computes an existing configuration record and explanatory text; it acquires no target resources.

Evidence and regression coverage

The unmodified baseline fails npm run knip with the duplicate export above. The existing two caller-budget tests verify default/explicit-setting metadata, setup forwarding, recovery bounds and fixed-allowance guidance; both pass after migrating the import. No additional test duplicates the import implementation.

  • Observed, derived, and inferred claims remain distinguishable.
  • Artifact identity, source provenance, and failed attempts remain preserved.
  • Unsupported, incomplete, unavailable, or uncertain outcomes remain visible.

Validation performed

  • npm run test:local -- src/config/hopperCallerScanBudget.test.ts — 2 passed.
  • Full npm run check — six Turbo tasks passed (one cached), including typecheck, lint/module boundaries, format, Knip and metadata/compile. Architecture guards passed across 2,251 source files; production reachability completed with 29 advisory candidates. The command as a whole did not finish: its final typed-lint family was stopped after roughly six minutes and a roughly 4.8 GB working-set observation. No typed-lint pass or product failure is inferred from that interrupted check.
  • No real Hopper session or public capture was run; this does not establish provider/platform execution coverage.
  • An initial test command named a nonexistent second file and stopped before tests. The isolated worktree also initially lacked its native command-lock prerequisite; the matching official 6.8 artifact was restored and verified before the full check. Neither setup failure is described as a product regression.

Current-head CI 40918809903 completed successfully: 39 jobs, 20 success / 19 optional skips. The selected source raw log checked out 9236e74131004177e002664eb4687f55de9836df, parents c0c39022 + 96a80217, tree ca6aa92eb2f187a95412847d850a20758447c12b. Source: 21,990 passed / 16 skipped, including the two caller-budget controls. Deep static checks were skipped; this CI result does not turn the interrupted local typed-lint command into a pass or establish real Hopper execution.

Compatibility, safety, and release

No breaking behavior or migration. The admitted range, returned values and recovery text remain the same. No package, provider launch, target mutation, new budget or performance claim.

Author readiness

Human owner: @wunianze666-netizen

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

Before merge

  • This PR addresses a concrete problem or an agreed enhancement.
  • Material scope and authority questions are resolved, and any required maintainer scope decision covers the final diff.
  • The PR has one focused outcome and the title follows type(scope): outcome.
  • Related issue is linked, or the reason for not linking one is stated above.
  • Tests cover changed observable behavior and meaningful failure paths.
  • Owning docs, contracts, and generated metadata are updated where needed.
  • User-visible CLI/MCP changes include representative output.
  • I checked the final diff for secrets, unrelated cleanup, and unsupported claims.

The unchecked CLI/MCP output item is not applicable: this preserves existing output.

@greptile-apps

greptile-apps Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] This cleanup appears safe to merge; it preserves existing behavior.

Summary

Removes the redundant caller-scan limit alias and switches its consumer and tests to MAX_PROVIDER_STARTUP_TIMEOUT_MS.

  • The Hopper caller-scan budget record uses the shared timer limit.

Reviews (1) · Last reviewed commit: "fix(config): remove redundant caller-bud..." · Reviewed by Greptile

SII-YDD added a commit to SII-YDD/rea that referenced this pull request Oct 30, 2026
Apply only the three-file patch from PR morluto#8045 as a CI prerequisite for morluto#7716.
Implementation credit remains with its original author.

Original-commit: 96a8021
Co-authored-by: wunianze666-netizen <[email protected]>
@morluto morluto added area: setup Setup, packaging, upgrade, install, Doctor, and client registration bug Something isn't working labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: setup Setup, packaging, upgrade, install, Doctor, and client registration bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants