Skip to content

feat: add bounded type-contract inspection for 1.0 - #339

Merged
logohere merged 9 commits into
perf/v1-path-searchfrom
feat/v1-types
Nov 1, 2026
Merged

logohere merged 9 commits into
perf/v1-path-searchfrom
feat/v1-types

Conversation

@logohere

@logohere logohere commented Nov 1, 2026 •

Copy link
Copy Markdown
Collaborator

Scope

Refs #333, #334 and #335. Stacked on #338; remains an unreleased 1.0.0 candidate.

  • Inspect one exported contract with a trusted project-installed TypeScript 7.0.2 compiler through its actual unstable/sync API. No automatic installation, beta requirement, new service or mandatory runtime npm dependency.
  • Preserve original project diagnostics/configuration without declaration emit or build output. Resolve supported re-exports, signatures and bounded declared-type references into the existing graph model.
  • Retain compiler/config/input identities on node evidence through generic graph import and MCP retrieval. Saved audits detect changed recorded repository inputs; they do not discover new files or prove business/runtime behavior. Coverage stays partial.
  • Bound worker time, input/output and traversal; terminate its process tree on timeout/output limit. Unsupported compilers/configurations fail explicitly. No MCP query executes a compiler.
  • Share existing parser chunks instead of duplicating the worker bundle; clear generated output before builds. Default artifact-audit language is generic; the explicit optional profile remains unchanged.

Verified locally

  • SolidState full suite: 130 tests, 2,080 assertions, one snapshot, zero failures. A restricted run could not bind the existing local HTTP fixture; the isolated test and unrestricted full suite passed. No assertion was removed.
  • Lint, validate, doctor, package allowlist (35 files), repeat-build chunk hashes and stale-output cleanup passed.
  • Real compiler valid → TS2322 → repaired, alias/config/overload/union/repeated-name cases, import/MCP provenance, changed-input audit, no emit/build metadata, Unicode output, missing/unsupported inputs and timeout/output-limit cleanup are exercised.
  • Clean-consumer archive SHA-256 5288a86aa46bf00c06acfb9af5bac332a051d942facddd6bffcbbe9bb10b396d passed Node 22.12.0, 24.22.1 and 26.8.1 plus Bun entry points. This is a local package checkpoint, not publication.
  • Development archives: 1,313,355 → 1,219,546 bytes. Warm-cache Node 26.8.1 --version, 10 warmups/30 alternating samples: p50 114.10 → 60.23 ms; p95 117.07 → 63.57 ms. No general-command, cold-cache or agent-productivity claim. See docs/path-performance.md.

Limits and remaining gates

TypeScript 7.0.2 only; project-reference/composite/noCheck configurations unsupported. Selected declared references are not full semantic dependency closure. Compiler/version metadata does not authenticate untrusted executable code. Broader audit, actual-host acceptance and final frozen-artifact checks remain in #334/#336. Current head d189460 passes the Linux Node 22/24/26, macOS Node 24 and Windows Node 24 matrix, including package checks. Initial Windows type failures were repaired by reusing the shared native canonical-path helper consistently across the request and worker. No merge, tag or npm publication.

@logohere
logohere marked this pull request as ready for review November 1, 2026 09:50
@logohere
logohere merged commit 19ca318 into perf/v1-path-search Nov 1, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant