refactor(move): move the batch runner and batch policy into @agent-device/command-registry - #2388
Merged
Merged
Conversation
…to @agent-device/command-registry
… at the command-registry batch module
Size Report
Startup median (7 runs, lower is better):
|
|
Member
Author
|
Reviewed 1e26e7b. The batch runner and policy move without changing behavior or the public batch entry. Consumers, package exports, test discovery, bundle groups, and the baseline follow the move. No findings; all checks pass. Ready for human review. |
thymikee
added a commit
that referenced
this pull request
Sep 8, 2026
…cope-contracts * origin/main: (25 commits) fix(ios): avoid duplicate alert routing queries (#2398) docs(adr): record the #2278 coupling audit and re-trace entry-to-platform hops (#2355) chore(gates): classify #2278 daemon-platform-runtime edges and ratchet handler session authority (#2354) test(capture): shrink the 3x crop fixture to avoid coverage timeouts (#2399) perf(ios): settle the first interaction on a deadline, not a fixed sleep (#2395) feat: support standalone Maestro clearState command (#2366) refactor(capture-kit): complete ADR 0019 end state — relocate snapshot and recording zones (#2385) refactor(ios): delete the unused snapshot plan interface (#2392) fix(conformance): isolate post-tap settling from app launch (#2390) test(remote): assert the proxied snapshot's whole wire conversation (#2387) fix(daemon): stop an attested tenant from downgrading its own isolation (#2386) refactor(ios): prune converged snapshot paths (#2383) refactor(move): move the batch runner and batch policy into @agent-device/command-registry (#2388) fix(remote): let a plain-session client read its own failure record (#2382) refactor(move): move replay divergence vocabulary into @agent-device/ad-replay (#2384) refactor(cli): take the CLI's vocabulary off runtime barrels (#2379) perf(cli): keep scroll vocabulary off gesture runtime (#2378) chore: drop the stale planned-operations closure approval (#2373) fix(gates): stop an eager-closure approval from turning main red on merge (#2375) fix(ios): honor the startup budget through a cold Simulator boot (#2325) ...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Move 3 of the
src/core-> owning-package sweep (#2335):src/core/batch.ts(the batch runner) andsrc/core/batch-policy.ts(the batch allowlist/normalization policy, which derives from the command-descriptor registry) move to@agent-device/command-registrybehind new./batchand./batch-policysubpaths;batch.test.tsmoves with them. The moved files keep their content (git rename detection;batch-policyonly swaps its two self-package imports for relative ones, per package convention). The thirteen consumer import sites (src/daemon,src/commands,src/mcp,src/cli,src/client,src/sdk) now use the package subpaths, andcommand-registrydeclares its new@agent-device/kerneldependency. The publicagent-device/batchentry (src/sdk/batch.ts) is unchanged in shape. 20 files, 47 insertions.Validation
pnpm check:affected --runat1e26e7bf53: all runnable checks passed — format, lint, typecheck, layering (R11 now 240 exported subpaths), di-seams, fallow, mcp-metadata, build, package (published-tarball closure + clean-install import of every entry point), integration-node, macos-coverage, vitest-related, integration-progress, replay-compat, daemon-wire-compat, plus the fail-open full set.git diff -M90% --stat origin/main...HEAD:batch.tsandbatch.test.tsare pure renames;batch-policy.tsdiffers only in its two now-relative self imports.sdk-batch/sdk-batch-runnerand the fallow health baseline are re-pointed at the new location (gate commit).