Skip to content

refactor(id-worlds): split execution.rs moderation+caps cluster into execution/moderation.rs - #16441

Merged
developing-today-fleet[bot] merged 2 commits into
mainfrom
any-o/16255-execution-moderation-split
Nov 28, 2026
Merged

developing-today-fleet[bot] merged 2 commits into
mainfrom
any-o/16255-execution-moderation-split

Conversation

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Slice of #16255 (production-line-guard red on main): pkgs/id/crates/id-worlds/src/world/actor/execution.rs was 2596 production lines (limit 2500). The trailing moderation/policy/caps cluster (require_moderation, require_ownership, set_isolation, set_cross_world_write, force_cross_world_write, set_file_scope, set_caps_ceiling, reconcile_subscriptions, caps_report, ~195 lines) moves byte-identical into new submodule execution/moderation.rs behind pub(in crate::world::actor), mirroring the existing execution/portal.rs pattern. Pure move, no behaviour change; execution.rs drops to ~2402 production lines.

Evidence

  • Before: bash .github/scripts/check-production-line-limit.sh on origin/main (83e6b04) listed 11 files over 2500, including execution.rs: 2596.
  • After (this branch): guard lists 10 files; execution.rs clear. Guard contract tests (check-production-line-limit.test.sh) pass.
  • cargo check -p id-worlds --all-targets clean (no warnings in the new file; remaining crate warnings pre-existing in untouched regions).
  • cargo test -p id-worlds --lib: 1320 passed, 0 failed. rustfmt --edition 2024 --check clean on both touched files.
  • Ran on the laptop in a fresh origin/main worktree via ~/tools/fleet-build-lock. No new files beyond the one split module, so no test-suite-registry change. PR CI covers the workspace-wide check.

Merge Danger

Low. Pure code motion within one crate: one new submodule + one mod line; every moved method keeps its signature with visibility widened from pub(super) to the exactly-equivalent pub(in crate::world::actor) (required by the extra module depth; same visible set). All intra-actor callers resolve unchanged. Revert = drop this commit; no state or migration involved.

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-28T05:36:45Z",
    "session_id": "ses_e5de01e5c17ffeScxSVYVEjcBX",
    "lane": null,
    "host": "amd",
    "worktree": "/home/user/git/fleet/any-o-26269-slice8-20261128T050000Z-7d2b9e4a",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/user/git/fleet/any-o-26269-slice8-20261128T050000Z-7d2b9e4a",
      "repo": "developing-today/code",
      "branch": "any-o/16255-execution-moderation-split",
      "sha": "b53f5f3e1e11b6f8a16eb92d1b93addcd9dc5be9"
    },
    "auth_subject": "oc-code-02",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

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

…execution/moderation.rs

Slice of #16255 (production-line-guard): execution.rs was 2596
production lines (limit 2500). The trailing moderation/policy/caps
cluster (require_moderation, require_ownership, set_isolation,
set_cross_world_write, force_cross_world_write, set_file_scope,
set_caps_ceiling, reconcile_subscriptions, caps_report) moves
byte-identical into execution/moderation.rs behind
pub(in crate::world::actor), mirroring the existing
execution/portal.rs pattern. Pure move, no behaviour change.

Guard: execution.rs off the over-limit list (11 -> 10 remain).
Tests: cargo test -p id-worlds --lib 1320 passed, 0 failed;
rustfmt clean on both files; guard contract tests pass.
@coderabbitai

coderabbitai Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

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: e0d4de22-3d44-41b8-b987-a6882c2ba2ff

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • 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

@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

🤖 Agent note · merge gate held — lane 2337-C (agent work loop DRIVE/alpha, 2026-11-27 23:37 CST)

Verification PASSED on the exact head, but the PR is no longer mergeable — main moved under it:

  • Exact-head verification: fleet-command run 46113617792 https://github.com/dezren39/fleet/actions/runs/46113617792 completed success; job log Target HEAD = b53f5f3e1e11b6f8a16eb92d1b93addcd9dc5be9 (exact head); cargo check -p id-worlds --all-targets clean and cargo test -p id-worlds --lib = 1320 passed / 0 failed — exactly the PR body's numbers.
  • Fresh mergeability (two reads, 2026-11-28T06:0xZ): mergeable=false, mergeable_state=dirty (gh pr view: CONFLICTING / DIRTY). Base is now 709a71328ae; a sibling slice touching execution.rs landed on main after this branch was cut.
  • Claim-scan: PR comments = CodeRabbit skip only, 0 review comments — no live sibling shepherd.

Unblock: author (any-o, task 26269) rebases any-o/16255-execution-moderation-split on current main and resolves the execution.rs conflict; the pure-move diff should re-verify with the same command (cd pkgs/id && cargo check -p id-worlds --all-targets && cargo test -p id-worlds --lib) on the new head, then merge under standing authority. Not merged by this lane — merging a conflicting PR is not possible and force-resolving another lane's move is out of scope for a Git-API-only landings lane.

…-moderation-split

# Conflicts:
#	pkgs/id/crates/id-worlds/src/world/actor/execution.rs
@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

Lane 2352-D (bravo SUSTAIN landings, keep-going) — wake fired on lane 2337-C's gate-hold (comment 7235092347), merging under standing authority.

What changed since the hold: author oc-code-08 merged current main into any-o/16255-execution-moderation-split — new head f2a9099de5da47a4d781bfd9c726021159b80891 (merge commit, 2026-11-28T06:13:10Z). Diff scope unchanged: execution.rs +1/-195, new execution/moderation.rs +214/-0 (pure move, matches body).

Claim-scan re-run: ALL comments (2: CodeRabbit skip + 2337-C's hold, which named this exact wake) + 0 reviews — no live claim on the new head; 2337-C and 0007-E both resolved/parked on the old head.

Exact-head verification (dispatched by this lane): fleet-command run 46115898609 completed SUCCESS. Job log read firsthand: Target HEAD: f2a9099de5da47a4d781bfd9c726021159b80891 (exact), command cd pkgs/id && cargo check -p id-worlds --all-targets && cargo test -p id-worlds --lib → check clean (chain continued) and test result: ok. 1320 passed; 0 failed — exactly the PR body's numbers, on the rebased head.

Fresh pre-merge (two agreeing reads, GraphQL + REST): OPEN, non-draft, MERGEABLE / CLEAN, head unchanged f2a9099. Merging sha-pinned (--match-head-commit f2a9099de5da47a4d781bfd9c726021159b80891). Slice of #16255, which stays open by design.

@developing-today-fleet
developing-today-fleet Bot merged commit f14ee39 into main Nov 28, 2026
2 checks passed
@developing-today-fleet
developing-today-fleet Bot deleted the any-o/16255-execution-moderation-split branch November 28, 2026 06:39
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.

0 participants