Skip to content

Preserve release cooldowns when installing an account's agent - #17911

Open
chessing234 wants to merge 2 commits into
omacom:quattrofrom
chessing234:codex/security-account-release-cooldown
Open

chessing234 wants to merge 2 commits into
omacom:quattrofrom
chessing234:codex/security-account-release-cooldown

Conversation

@chessing234

Copy link
Copy Markdown
Contributor

What changes

When an account dispatcher exists before its CLI, the first-run install forces MISE_MINIMUM_RELEASE_AGE=0 and exports it into version resolution and the agent. That overrides the user's release-delay policy.

Let both declared-tool installation and user-config selection inherit mise's configured policy. An explicit zero still works. Update the existing account-dispatch fixture, which required the forced zero. Related #11514 covers other mise paths; this change is scoped to the account dispatcher.

Verification

The focused regression passes both first-run paths with an unset cooldown, 86400 and an explicit zero, and confirms installation and resolution agree while retaining the selected account. It fails against unchanged quattro because both stages see zero. The existing full account-dispatch test cannot find mise on its pinned /usr/bin path on this Mac, reproduced on base. Linux CI remains pending.

Screenshots

No visible change: this changes validation, file handling or execution context without changing desktop layout.

@chessing234
chessing234 marked this pull request as ready for review November 7, 2026 02:17
@greptile-apps

greptile-apps Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Summary

The account dispatcher no longer forces MISE_MINIMUM_RELEASE_AGE=0 when installing a missing agent.

  • First-run account dispatch keeps mise's release-age setting.

Reviews (3) · Last reviewed commit: "Keep account cooldown regressions in the..." · Reviewed by Greptile

@omarchybot

Copy link
Copy Markdown
Collaborator

I read the dispatcher change, both cooldown test fixtures, and the existing review comments at be53e75fb7a33e7a250314ee44ce674f22561b3b against quattro. My classification is bug: the dispatcher currently exports MISE_MINIMUM_RELEASE_AGE=0 before installation and version resolution. The configured second classifier, deepseek-v4p1-flash, returned no valid class, so classification remains unsettled. Codex (GPT-6; reasoning effort not exposed) completed the reading; no second classification or code review completed. No worker tests ran and no code was pushed. This is left for maintainer follow-up on classification before verification proceeds.

@omarchybot omarchybot added the bug Something isn't working label Nov 22, 2026
Exercise unset, configured, and explicitly disabled cooldowns through both first-install paths in the existing account-dispatch test. Its real declaration helper and mise dispatch coverage avoid maintaining a second fixture, addressing Greptile comment 4499581646.

Co-Authored-By: Codex (GPT-6; effort not exposed) <noreply@openai.com>

Co-Authored-By: Greptile <noreply@greptile.com>
@omarchybot omarchybot added the verified Omarchy Triage has verified that this issue is ready for final review label Nov 22, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

Reproduced the cooldown override on an ISO worker: unset and 86400 were forced to zero on both first-install paths. This change preserves those values and explicit zero; restoring the old export makes the reproduction fail again. Account selection and spaced arguments were preserved.

Pushed 4b02fb9 to fold all six cooldown cases into the existing account-dispatch fixture and remove the duplicate fixture. The existing fixture passes 42 checks, and the full CLI suite passes 129 checks on the worker.

Codex (GPT-6; effort not exposed) reviewed the code and worker results. Opus 5.5 High and muse-wonder via pi, thinking high found no blocking defects and agreed with the review; their independence is not guaranteed. Greptile scores the new head 5/5, and its test-fixture finding is fixed and answered.

GitHub CI is green on this commit. The behavior is verified; whether first-run installs should inherit the caller’s cooldown policy is left for the maintainer to decide.

@omarchybot omarchybot removed the verified Omarchy Triage has verified that this issue is ready for final review label Nov 23, 2026
@chessing234

Copy link
Copy Markdown
Contributor Author

@emirb could you take a look when you get a chance?

@omarchybot

Copy link
Copy Markdown
Collaborator

quattro has superseded this change. #19917 (5f1460d9f29f0c74d040847bf189ab7a19984d7c) removed the dispatcher's entire first-run mise install / mise use / mise which fallback, including the forced release-age export. Agents are now installed as packages; a dispatcher whose CLI is missing removes itself and exits 127. The cooldown cases here cover that retired fallback, so there is nothing left to port.

Codex (GPT-6; reasoning effort not exposed) checked the full diff at 4b02fb9e598e7a0c130d6b28c7c6ad1e81a6cd54, the current base, the removal commit and the replacement dispatcher tests. Opus 5.5 High and muse-wonder via pi, thinking high reviewed the comparison and agreed that no behavior or test coverage remains to carry forward; their independence is not guaranteed. This was a source review: no new worker tests ran and no code was pushed. Leaving this with the maintainer for closure as superseded by #19917.

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

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants