Skip to content

refactor(move): move lease scope vocabulary into @agent-device/contracts - #2380

Merged
thymikee merged 4 commits into
mainfrom
refactor/core-lease-scope-contracts
Sep 8, 2026
Merged

refactor(move): move lease scope vocabulary into @agent-device/contracts#2380
thymikee merged 4 commits into
mainfrom
refactor/core-lease-scope-contracts

Conversation

@thymikee

@thymikee thymikee commented Sep 7, 2026

Copy link
Copy Markdown
Member

Summary

Move 1 of the src/core -> owning-package sweep (#2335): src/core/lease-scope.ts and its unit test move to @agent-device/contracts behind a new ./lease-scope subpath. Pure file move with zero content change (git rename detection at 100%); the consumers (src/daemon, src/daemon-client, src/commands, src/client, src/remote) now import @agent-device/contracts/lease-scope. Gate pins follow the file: wire-compat surface/ledger key and the contracts exports snapshot.

Validation

  • pnpm check:affected --run at 0fd89d54b9: all runnable checks passed (format, lint, typecheck, layering, di-seams, fallow, mcp-metadata, build, package, integration-node, macos-coverage, vitest-related 355 files / 2766 tests, integration-progress, replay-compat, daemon-wire-compat, affected-selector).
  • check:daemon-wire-compat: the lease-scope declaration is a clean move, no removal.
  • git diff -M90% --stat origin/main...HEAD: moved file and test are pure renames; every other hunk is an import re-point.
  • Merged origin/main after the initial green run: it added remote-proxy-parity.test.ts referencing the pre-move path, re-pointed to the contracts subpath in the same branch.
  • No unresolved risks; rename-only, no behavior change.

@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown

Size Report

Metric Base Current Diff
Installed (including dependencies) 4.51 MB 4.51 MB 0 B
Package (unpacked) 4.51 MB 4.51 MB 0 B
Package (download) 1.34 MB 1.34 MB +7 B

Startup median (7 runs, lower is better):

Scenario Base Current Diff
CLI --version 27.9 ms 28.2 ms +0.3 ms
CLI --help 82.0 ms 76.6 ms -5.5 ms

@thymikee

thymikee commented Sep 7, 2026

Copy link
Copy Markdown
Member Author

The move at 54d5057 does not integrate cleanly with current main: CI picks up test/integration/provider-scenarios/remote-proxy-parity.test.ts, which still imports the deleted src/core/lease-scope.ts. Update that consumer to @agent-device/contracts/lease-scope when bringing the branches together, then rerun the affected checks. The missing-module failures in Typecheck & Package, Repo Guards, Integration Tests, and Coverage are directly related to this integration gap; the separate Apple snapshot timeout looks unrelated.

…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)
  ...
The test landed on main after this branch cut and still imported the
pre-move path src/core/lease-scope.ts; use the
@agent-device/contracts/lease-scope subpath like the other consumers.
@thymikee

thymikee commented Sep 8, 2026

Copy link
Copy Markdown
Member Author

Looks good at 0fd89d5. The remote-proxy integration test now uses the new lease-scope import, and the remaining changes preserve behavior. All current checks pass.

@thymikee thymikee added the ready-for-human Valid work that needs human implementation, judgment, or maintainer merge label Sep 8, 2026
@thymikee
thymikee merged commit 0627190 into main Sep 8, 2026
18 of 22 checks passed
@thymikee
thymikee deleted the refactor/core-lease-scope-contracts branch September 8, 2026 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-human Valid work that needs human implementation, judgment, or maintainer merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant