Skip to content

Phase 10 / Task B2: Apply the Mechanical Prettier 3 Migration #193

Closed

Description

@Sam-Bolling

Phase 10 Task

Task ID: B2
Title: Apply the Mechanical Prettier 3 Migration
Source: Approved Phase 10 Roadmap
Roadmap: P10-ROADMAP.md


  • Objective: Reformat the exact contribution-relevant file population required by current upstream Prettier 3 without semantic edits.
  • Acceptance criteria advanced: P10-B1, P10-B2, P10-B3.
  • Complexity/risk: Medium; large but mechanical diff.
  • Locked decisions: Inventory before writing; format only contribution-relevant paths; keep formatter-only work separate; do not restore Prettier 2 behavior.
  • Expected work:
    • install lockfile-resolved dependencies under Node.js 24;
    • derive and record the exact --list-different population using local line-ending-safe diagnosis when necessary;
    • review that inventory for historical/workbench-only or generated paths;
    • run Prettier write only on the accepted explicit paths;
    • inspect the diff for mechanical-only changes;
    • run targeted formatting, typecheck, lint, and CSAPI test gates;
    • commit and push the formatter-only result.
  • Affected areas: The machine-derived CSAPI/source/test/fixture/public-doc file set; no historical docs/ content.
  • Explicit exclusions: Authored documentation correction, refactoring, renaming, logic changes, generated files, audit remediation.
  • Automated acceptance gate:
    • npm run format:check exits 0 in a clean Linux checkout;
    • npm run typecheck, npm run lint, existing CSAPI browser tests, and existing CSAPI node tests exit 0;
    • a semantic-diff review reports formatting only;
    • git diff --check exits 0.
  • Deliverable: One pushed mechanical Prettier 3 migration commit plus its exact file inventory.
  • Closing evidence: Commit SHA, formatter version, inventory, gate results, 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: #192 — Phase 10 Task B1
Blocks: #194 — Phase 10 Task C1

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 B2.

    Commit: 82db2103e55244723788b1042c68a591d51b0888

    Changed-file reality:

    • 52 mechanically formatted source/test files.
    • 1 evidence file: docs/research/phase-10/04-task-b2-prettier3-file-inventory.txt.
    • Total commit population: 53 files.
    • The inventory contains 48 CSAPI files plus src/ogc-api/endpoint.ts, endpoint.spec.ts, info.ts, and info.spec.ts.
    • Historical docs/, .tmp/, dependencies, generated output, fixtures, README, and package metadata were excluded.

    Acceptance-gate results:

    • Runtime: Node.js 24.20.0.
    • Formatter: lockfile-resolved Prettier 3.9.6.
    • Pre-write --list-different --end-of-line auto .: exactly 52 accepted paths; prohibited-path count 0.
    • Prettier write: executed only against those 52 explicit paths; exit 0.
    • Mechanical semantic audit: PASS. Every resulting source file was byte-equal to Prettier 3 formatting applied independently to its baseline version; zero non-Prettier edits.
    • Targeted Prettier check over all 52 paths: PASS.
    • Whole-tree local line-ending-safe Prettier check: PASS.
    • npm run typecheck under Node 24: PASS.
    • npm run lint under Node 24: PASS.
    • Existing CSAPI browser environment: 30/30 suites and 1,383/1,383 tests passed.
    • Existing CSAPI node environment: 30/30 suites and 1,383/1,383 tests passed.
    • git diff --check: PASS.
    • Staged-scope comparison: exactly 52 inventoried source paths plus the one inventory file.
    • Clean Ubuntu/Node 24 GitHub Actions run: success.
      • npm ci: success.
      • exact npm run format:check: success.
      • full npm run typecheck: success.
      • full npm run lint: success.
      • full npm run test:browser: success.
      • full npm run test:node: success.
    • Remote verification: origin/phase-10 equals the commit above and the worktree is clean.

    The existing QA workflow was changed from disabled_manually to active through the GitHub Actions API solely to execute the issue’s required clean-Linux gate. No workflow file or other repository setting was changed beyond that activation.

    No source semantics, public API, documentation wording, package metadata, dependency, generated file, or historical record was authored or refactored.

    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