Skip to content

chore(contracts): remove dead exports - #4707

Merged
thymikee merged 1 commit into
mainfrom
audit/contracts-dead-exports
Nov 18, 2026
Merged

thymikee merged 1 commit into
mainfrom
audit/contracts-dead-exports

Conversation

@thymikee

@thymikee thymikee commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Summary

Removes three fallow-flagged dead exports from @agent-device/contracts (2 files touched):

  • packages/contracts/src/gesture-plan.ts — sampleGestureOffsets, interpolateGesturePoint
  • packages/contracts/src/android-snapshot-quality.ts — ANDROID_CAPTURE_FAILURE_REASONS

Each symbol was referenced only inside its own module, so the export keyword was dropped and the declarations became module-private (no behavior change; exported types like AndroidCaptureFailureReason are unchanged). A workspace-wide grep (src, packages, scripts, test, tools, website, docs, .github, skills, including string/dynamic references) found no external reference; the published root ./contracts export (dist/src/contracts from src/sdk/contracts.ts) and src/sdk/index.ts do not re-export them, and dist/ contains no occurrence of any of the three symbols. pnpm check:production-exports passes and does not require them, so they are provably not public API.

Validation

Tested SHA: d49eca8

  • npx fallow dead-code --config .fallowrc.json — the three symbols no longer listed (0 matches; unused-export count 10 → 7, remainder pre-existing in other packages)
  • pnpm lint — 0 warnings, 0 errors (oxlint, 5230 files)
  • pnpm format:check — all files use the correct format
  • pnpm typecheck — pass (tsc -b)
  • pnpm check:production-exports — "No issues found"
  • pnpm check:fallow — "No issues in 2 changed files"
  • npx vitest run --project unit-core packages/contracts — 94 files / 840 tests passed
  • npx vitest run --project unit-core on all other test files importing gesture-plan or android-snapshot-quality (platform-android, platform-apple, platform-linux, platform-harmonyos, provider-webdriver, daemon, maestro, src/sdk, repo-guards, layering) — 90 files / 1075 tests passed

CI obligations: the serialized gate stage validates the pushed head (d49eca8); this PR is not merged and CI is not awaited here.


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

View guided diff Turn on auto-fix

Un-export sampleGestureOffsets, interpolateGesturePoint, and
ANDROID_CAPTURE_FAILURE_REASONS: no workspace file or published entry
point references them outside their own modules.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
@github-actions

Copy link
Copy Markdown
Contributor

Size Report

Metric Base Current Diff
Installed (including dependencies) 6.40 MB 6.40 MB 0 B
Package (unpacked) 6.40 MB 6.40 MB 0 B
Package (download) 1.94 MB 1.94 MB -4 B

Startup median (7 runs, lower is better):

Scenario Base Current Diff
CLI --version 25.6 ms 22.4 ms -3.2 ms
CLI --help 63.8 ms 48.6 ms -15.2 ms

@apex-sentinel-staging

Copy link
Copy Markdown

Apex Sentinel · ✅ Approve · review of d49eca8

No open findings.

Reviewed with this repository's own Sentinel configuration (894c80ac681c).

💬 Talking to Sentinel

In a finding's thread, reply with:

Command What it does
@apex-sentinel-staging note <context> Adds context; Sentinel re-checks the cited code
@apex-sentinel-staging pivot <why> Says the finding is wrong; Sentinel re-checks the cited code
@apex-sentinel-staging like Marks the finding as useful
@apex-sentinel-staging dislike <why> Marks it as not useful, so it is not raised again

On this conversation, comment @apex-sentinel-staging review to run a full review once again.

@thymikee thymikee added the ready-for-human Valid work that needs human implementation, judgment, or maintainer merge label Nov 18, 2026
@thymikee

Copy link
Copy Markdown
Member Author

I found no problems in d49eca8. The removed exports have no remaining references anywhere in the tree. All 18 checks pass and none fail. No conflicts. Nothing else needs to happen before merge.

@thymikee
thymikee merged commit 7c3dbd4 into main Nov 18, 2026
18 checks passed
@thymikee
thymikee deleted the audit/contracts-dead-exports branch November 18, 2026 17:08
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