Skip to content

Phase 10 / Task A3: Audit Upstream and CSAPI Preservation #191

Closed

Description

@Sam-Bolling

Phase 10 Task

Task ID: A3
Title: Audit Upstream and CSAPI Preservation
Source: Approved Phase 10 Roadmap
Roadmap: P10-ROADMAP.md


  • Objective: Prove that Task A2 preserved both current upstream changes and the Phase 8 CSAPI public surface before maintenance edits begin.
  • Acceptance criteria advanced: P10-A2, P10-A3, P10-A4, P10-A5.
  • Complexity/risk: Medium; evidence generation and targeted correction only if already authorized by the merge resolution.
  • Locked decisions: No new public exports; no non-CSAPI upstream reversions; findings outside merge preservation are deferred.
  • Expected work:
    • compare upstream-changed paths against the merged workbench tree;
    • generate before/after CSAPI public-export inventories;
    • verify root and CSAPI package export targets coexist;
    • run targeted TypeScript and existing CSAPI tests that are compatible with the approved runtime;
    • inspect the final contribution diff against the merge parent for unexplained authored changes;
    • record findings and a clear pass/fail preservation conclusion.
  • Affected areas: Evidence under docs/research/phase-10/; merge-preservation corrections only if strictly required and documented.
  • Explicit exclusions: Formatter migration, public-doc rewrites, TypeDoc integration, new functionality, broad source fixes.
  • Automated acceptance gate:
    • automated public-export comparison reports no unexplained removal;
    • package target checks succeed;
    • targeted existing CSAPI tests and typecheck exit 0;
    • upstream-change comparison reports no unexplained reversion;
    • changed-file audit contains no unrelated authored source change.
  • Deliverable: Committed and pushed preservation-audit report and any strictly necessary documented merge-preservation correction.
  • Closing evidence: Commit SHA, commands/results, export inventory, reversion report, files, deviations or none.

Acceptance Criteria

  • The task objective and expected work are complete under the locked decisions.
  • Every condition in the automated acceptance gate above passes and its command output is recorded.
  • The actual changed-file or evidence set stays within the listed affected areas.
  • Every explicit exclusion is respected.
  • Required workbench changes and evidence are committed and pushed to phase-10, or the task's stated evidence-only result is linked to an immutable commit.
  • The closing comment records the commit SHA or verified immutable SHA, changed files, exact gate results, and Deviation from locked decision: none. or the approved deviation.

Dependencies

Blocked by: #190 — Phase 10 Task A2
Blocks: #192 — Phase 10 Task B1

Definition of Done / Closing Workflow

This issue is not complete until all three steps occur in order:

  1. Edit this issue so every acceptance checkbox is [x].
  2. Commit and push/sync all required changes or immutable evidence.
  3. Post the required summary comment and close the issue as completed.

Do not close without the summary comment. New findings are recorded separately and are not absorbed into this task.

Operational Constraints

Before starting, review AI_OPERATIONAL_CONSTRAINTS.md and use its required task-entry acknowledgment.

Authority order for this issue:

  1. Adopted standards and specifications.
  2. Project governance.
  3. P10 Contribution Goal and Definition.
  4. P10 Implementation Guide.
  5. P10 Roadmap.
  6. This issue.
  7. Existing repository code and documentation.
  8. Conversational context.

Preserve minimal diffs, do not refactor adjacent code, do not introduce new features or dependencies, and stop on unresolved scope or architectural conflict.

Activity

  1. Sam-Bolling commented on Aug 27, 2026

    @Sam-Bolling
    Author

    Completed Phase 10 Task A3.

    Commit: 5264889b51b22d18f45d863a79ac8eb8442d956d

    Files added:

    • docs/research/phase-10/03-task-a3-preservation-audit.md
    • docs/research/phase-10/03-task-a3-csapi-exports-before.txt
    • docs/research/phase-10/03-task-a3-csapi-exports-after.txt

    Acceptance-gate results:

    • Audited merge: 992f2d42dd2657c656cdcb6d1e45e88a968db430.
    • CSAPI subtree Git object before/after: identical (3e4f432b...).
    • CSAPI entry-point blob before/after: identical (cb0d0099...).
    • TypeScript-compiler-API public-export inventory: 173 before and 173 after; exact equality and zero unexplained removals.
    • Root and ./csapi JavaScript/declaration metadata targets: PASS.
    • Pre-merge ./csapi package export object preserved exactly; sideEffects: false preserved.
    • Dynamic-import endpoint facade and its existing tests preserved; no CSAPI root bulk export.
    • First-parent merge diff: exactly 172 status rows and zero differences from the A1 machine inventory.
    • Upstream path comparison: 166 unique paths equal upstream plus exactly the 8 reviewed semantic overlays; no additional difference and no unexplained upstream reversion.
    • Node.js acceptance runtime: 24.20.0.
    • TypeScript tsc --noEmit: PASS, exit 0.
    • Existing CSAPI Jest directory: PASS, 30/30 suites and 1,383/1,383 tests, exit 0; no live server contacted.
    • Evidence-document Prettier 3 check: PASS.
    • git diff --check: PASS.
    • Changed-file scope: exactly the three evidence files listed above; no source correction was required.
    • Remote verification: origin/phase-10 equals the commit above and the worktree is clean.

    The dependency installation reported inherited audit findings and an esbuild install-script notice. No audit fix, install-script approval, build, dependency remediation, or other out-of-scope action was performed.

    Deviation from locked decision: none.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions