Skip to content

SW-220 — Add a malformed package-script metadata matrix for the dev resolver #402

Open

Description

@dDevAhmed

Summary

The dev resolver validates the package scripts object and selected script values, but its tests do not comprehensively pin behavior for null, array, primitive, and non-string script metadata. Add a focused dev-only malformed-manifest matrix so invalid metadata cannot reach npm. This issue does not cover test project detection or Node/Cargo ambiguity, which remain in #119.

Workstream

  • Workstream: WS-DEV
  • Primary scope: src/dev/project.ts; tests/dev-project.test.ts
  • Priority: P2
  • Difficulty: low
  • Proposed points: 100
  • Protected surface: No

Acceptance Criteria

  • Null, array, and primitive scripts values are rejected.
  • Non-string selected dev/start/start:backend script values are rejected or skipped according to a documented precedence rule.
  • Error categories are actionable and consistent.
  • Invalid metadata is rejected before process-plan creation or npm spawn.
  • Valid dev scripts continue to resolve unchanged.
  • Tests explicitly distinguish malformed scripts metadata from missing or blank script values.

Dependencies

  • SW-212

Out of Scope

Definition of Done

  • Deterministic regression tests cover each malformed scripts shape.
  • Supported-platform CI passes.

Labels

  • Stellar Wave (do not apply until activation is explicitly authorized)
  • type: test
  • area: dev
  • priority: P2
  • difficulty: low
  • points: 100
  • workstream: dev

Activity

  1. changed the title [-]SW-220 — Add a malformed package-script metadata matrix for dev and test resolvers[/-] [+]SW-220 — Add a malformed package-script metadata matrix for the dev resolver[/+] on Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    blockedBlocked by an unresolved dependencyintake: queuedWave backlog not yet open for claims

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions