Skip to content

Move MCP lifecycle-lock classifier properties into the source-local suite #8356

Closed

Description

@jyaunches

Objective

Give MCP lifecycle-lock classification properties one source-local owner and remove test registration from a helper module.

Evidence

  • test/helpers/mcp-lifecycle-lock-properties.ts imports Vitest and registers five property tests.
  • test/mcp-lifecycle-lock.test.ts loads those tests by side-effect.
  • src/lib/state/mcp-lifecycle-lock-identity.test.ts already owns nine classifier properties and repeats owner, observation, and probe builders.

Unique helper coverage includes the corrupt or wrong-sandbox grace boundary, variable age and grace for a live owner, main/reaper parity, and fresh-read match, mismatch, and unavailable outcomes.

Scope

  • Move unique properties into src/lib/state/mcp-lifecycle-lock-identity.test.ts.
  • Deduplicate builders, arbitraries, and equivalent properties.
  • Preserve 250 runs and the existing deterministic seed and timeout intent.
  • Delete test/helpers/mcp-lifecycle-lock-properties.ts.
  • Remove its side-effect import from test/mcp-lifecycle-lock.test.ts.
  • Do not change lock behavior or production code.

Relationships

This is not a good first issue: PID reuse, foreign-host and PID-namespace identity, and stale-lock semantics need domain context.

Acceptance criteria

  • Every unique invariant remains explicit.
  • No equivalent property remains duplicated.
  • No MCP helper module registers tests.
  • Both source-local and root lifecycle-lock suites pass.
  • Vitest project membership remains exhaustive.

Validation

npx vitest run --project cli src/lib/state/mcp-lifecycle-lock-identity.test.ts
npx vitest run --project integration test/mcp-lifecycle-lock.test.ts
npm run test:projects:check

Metadata

Metadata

Assignees

Labels

area: architecturehelp wanted

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions