Skip to content

fix(ci): disable FlakeHub in magic-nix-cache-action - #7142

Closed
dezren39 wants to merge 1 commit into
mainfrom
queue/2661-807-apply-wiring-87931033455988018-4783379169720085329
Closed

dezren39 wants to merge 1 commit into
mainfrom
queue/2661-807-apply-wiring-87931033455988018-4783379169720085329

Conversation

@dezren39

@dezren39 dezren39 commented Nov 8, 2026 •

Copy link
Copy Markdown
Member

Opened by the branch-disposition execution (2026-11-07) from branch queue/2661-807-apply-wiring-87931033455988018-4783379169720085329.

Branch origin: queue branch for issue #2661.
This branch was laptop-local work (or a stranded remote branch) with real changes ahead of main and no PR. Per Drew's 2026-11-07 branch-disposition ruling, ahead branches with real changes get a PR; this PR surfaces the work for triage instead of leaving it stranded on a branch.

Triage owner: batch issue in developing-today/code, "Unowned PR batch from branch disposition (2026-11-07)". Outcome per batch triage: close with reason, or route to impl/finish/merge as a follow-on fix task.

Evidence: branch-ahead review ~/workspace/scratch/branch-ahead-review-2026-11-07.md; execution log ~/workspace/scratch/branch-disposition-2026-11-07.md.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

The `DeterminateSystems/magic-nix-cache-action` fails with "FlakeHub registration required" error.
This commit sets `use-flakehub: false` in the action's `with` block across all workflows to resolve the issue.

Note: There is a preexisting unrelated test failure in `attention action controls (#1152/#1156)` which is left untouched as it does not affect this workflow change.

Co-authored-by: dezren39 <11225574+dezren39@users.noreply.github.com>
@dezren39
dezren39 requested a review from a team as a code owner November 8, 2026 04:34
@coderabbitai

coderabbitai Bot commented Nov 8, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 48 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 9a639838-e073-4d00-813c-f313a18a31fb
Commits

Reviewing files that changed from the base of the PR and between 3ea2a10 and d6e5c84.

Files selected for processing: 10

  • pkgs/id/contract/shell-contract.v1.json
  • pkgs/id/src/commands/world.rs
  • pkgs/id/src/meta_client.rs
  • pkgs/id/src/world/actor.rs
  • pkgs/id/src/world/core.rs
  • pkgs/id/src/world/tests.rs
  • pkgs/id/src/world_net.rs
  • pkgs/id/src/world_session/mod.rs
  • pkgs/id/src/world_session/tests.rs
  • pkgs/id/src/world_session/types.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 8, 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-11-08T04:39:56.289341Z d6e5c84 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: d6e5c8471c

ℹ️ 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 +83 to +87
"download_module_admin": {
"class": "admin",
"phases": ["opening"],
"opens": "closed",
"fields": { "admin_token": "string", "module_hash": "string" }

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 Document the new admin module-download interface

This adds an admin-only protocol operation that retrieves non-active modules, but no corresponding design document accompanies the change. A repository-wide Markdown search found only older high-level manifest descriptions, not documentation of this API or its storage and authorization semantics. pkgs/id/AGENTS.md explicitly requires a dated design record for interface/API changes; add that record so the new protocol behavior and rationale are documented.

AGENTS.md reference: pkgs/id/AGENTS.md:L159-L168

Useful? React with 👍 / 👎.

Comment on lines +1044 to +1045
let wasm = client.fresh_session().await?.download_module_admin(admin_token, hash).await?;
client.fresh_session().await?.install_wasm(admin_token, &wasm, *seed).await?;

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 Add CLI integration coverage for the revised apply path

The manifest hash-install path now uses an admin download followed by installation on separate sessions, but the added tests only exercise ordering and direct client operations. There is no test invoking world apply in tests/cli_integration.rs, so the actual command's state-read, planning, routing, and execution sequence remains unverified. pkgs/id/AGENTS.md explicitly requires integration tests there for CLI behavior; add a regression case that applies a manifest naming a previously installed, non-active module through the command.

AGENTS.md reference: pkgs/id/AGENTS.md:L152-L152

Useful? React with 👍 / 👎.

Comment on lines +980 to +982
ApplyStep::SetGrants { .. } => 2,
ApplyStep::SetCeiling { .. } => 3,
ApplyStep::InstallModule { .. } => 4,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Reconcile revoked grants after replacing the old program

In a grant-on-use world, if the existing program subscribes to players and the manifest installs a replacement that no longer requests it while setting grants = [], this ordering silently restores the unwanted grant. UpdateCaps removes the grant and reconciles subscriptions, but the actor immediately runs after_change, which evaluates the still-running old program and grants its subscription again (world/actor.rs, apply_subscriptions; world_caps.rs, CapLedger::decide_for). The subsequent installation leaves that grant intact, so apply reports success while the world still differs from the manifest. Grant additions can precede compilation, but removals need to be reconciled after replacing the old program.

Useful? React with 👍 / 👎.

Comment on lines +697 to +699
if let Some(blobs) = self.blobs.as_ref()
&& let Ok(bytes) = blobs.blobs().get_bytes(hash).await
&& bytes.len() <= MAX_WORLD_MODULE_BYTES

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Check blob size before loading the requested module

If an administrator supplies the hash of a large ordinary file rather than a module, get_bytes loads the entire blob into memory before the 16 MiB limit is checked. Production worlds share the general-purpose file blob store (commands/serve.rs, ServeWorlds::open_world), so this can exhaust the host's memory instead of cheaply rejecting an invalid module hash. Unlike the existing participant download, this path is not restricted to an active module already bounded during installation. Check the blob's size through status(hash) before reading it, as the bounded document reader in world_ssh.rs already does.

Useful? React with 👍 / 👎.

@dezren39

Copy link
Copy Markdown
Member Author

🤖 Agent note · closing as superseded (task 14679 shepherd, lane code-o)

This PR surfaced a stranded local branch from queue task 2661 (issue #807 apply wiring) during the 2026-11-07 branch disposition. The same work was reviewed and merged through PR #1820 (id(world): wire manifest apply — module install + schedules over the wire, merged 2026-10-30, 17c4a0d), and issue #807 closed as completed on it.

Salvage check (diff-based, per the fleet duplicate protocol): every distinctive identifier this PR's implementation adds — ordered_steps, fresh_session, download_module_admin, stored_module_bytes, and the tests apply_hash_path_sequences_fresh_sessions_on_one_connection / apply_steps_run_in_reachability_order — is present on current main with identical occurrence counts, and PR #1820's file list covers all ten files this PR touches (plus cli.rs, world/handle.rs, shell_contract/tests.rs). The PR's single commit is also mistitled ("fix(ci): disable FlakeHub…" — the diff contains no CI change; it is the apply-wiring implementation).

Nothing unique to salvage. Closing this PR loses no work; the canonical implementation is on main via PR #1820. Disposition also recorded on the batch owner issue #7297, per the shepherd packet's acceptance.

@dezren39 dezren39 closed this Nov 10, 2026
@dezren39
dezren39 deleted the queue/2661-807-apply-wiring-87931033455988018-4783379169720085329 branch November 14, 2026 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant