Skip to content

Phase 10 / Task E2: Prove the Production Package and Clean-Consumer Imports #197

Closed

Description

@Sam-Bolling

Phase 10 Task

Task ID: E2
Title: Prove the Production Package and Clean-Consumer Imports
Source: Approved Phase 10 Roadmap
Roadmap: P10-ROADMAP.md


  • Objective: Demonstrate that the production artifact contains and resolves both the root and CSAPI JavaScript/declaration entry points.
  • Acceptance criteria advanced: P10-A4, P10-D5, P10-D6, P10-D7.
  • Complexity/risk: Medium; build and disposable-consumer verification.
  • Locked decisions: Use Node.js 24 with a POSIX shell; no live requests; use an ignored .tmp/ consumer; do not commit generated packages or dependency trees.
  • Expected work:
    • run the production build from a clean dependency installation;
    • run npm pack --dry-run --json and record the file inventory;
    • create a disposable minimal consumer under .tmp/;
    • pack/install the library tarball;
    • verify JavaScript imports and TypeScript declarations from both package paths using representative public symbols;
    • compare export targets with actual packed files;
    • remove the disposable consumer and tarball after evidence capture.
  • Affected areas: Ignored .tmp/ artifacts and verification evidence only; no intended source change.
  • Explicit exclusions: Network API calls, publishing, package metadata redesign, audit remediation, committed generated artifacts.
  • Automated acceptance gate:
    • npm run build exits 0;
    • package inventory contains root and CSAPI JavaScript/declaration targets;
    • fresh-consumer runtime and TypeScript checks exit 0 for both @camptocamp/ogc-client and @camptocamp/ogc-client/csapi;
    • final repository status contains no generated or temporary artifact.
  • Deliverable: Committed and pushed package-proof evidence or an evidence-only issue result linked to the verified immutable commit.
  • Closing evidence: Verified commit SHA, build/pack/consumer commands and results, package inventory, cleanup result, 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: #196 — Phase 10 Task E1
Blocks: #198 — Phase 10 Task F1

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

    I have reviewed the AI Operational Constraints.
    Issue goal: Complete Phase 10 Task E2 by proving a clean Node.js 24 production build and packed artifact resolve representative root and CSAPI runtime/declaration imports in a disposable consumer.
    Assumptions requiring confirmation: none.

  2. Sam-Bolling commented on Aug 28, 2026

    @Sam-Bolling
    Author

    Completed Phase 10 Task E2 as an evidence-only result.

    • Verified immutable workbench commit: 3c07baf615519cfcfa454d522209cf944c0f690b
    • Existing authoritative QA for that commit: run 33124802529.
    • Changed tracked files: none. Local phase-10, origin/phase-10, and the verified SHA remain identical.
    • Runtime/shell: Git Bash 5.3.15 (MINGW64 POSIX shell), Node.js v24.20.0, npm 11.19.0.

    Build and package results:

    • npm ci: exit 0 (60s); clean installation added 836 packages and audited 837. The inherited audit report was recorded and not remediated.
    • Final accepted npm run build with npm lifecycle shell pinned to Git Bash: exit 0 (162s). Worker, Node, browser JavaScript, source maps, and declarations were generated.
    • npm pack --dry-run --json --ignore-scripts: exit 0.
    • npm pack --json --ignore-scripts --pack-destination .tmp/task-e2-pack: exit 0.
    • Packed artifact: @camptocamp/ogc-client@1.3.1-dev, 521 files, 4,363,490 unpacked bytes; disposable tarball SHA-256 d7390c4216b7c79694cf988ff7b55d4037b9b2d0ae411f88e4819d2726a47cd1.
    • Package metadata, dry-run inventory, actual tar archive, and installed package all contained the required targets:
      • root JS: dist/index.js;
      • root declarations: dist/index.d.ts;
      • CSAPI JS: dist/ogc-api/csapi/index.js;
      • CSAPI declarations: dist/ogc-api/csapi/index.d.ts.

    Disposable clean-consumer results:

    • The already-installed @rgrove/parse-xml@4.2.3 dependency was packed locally; both dependency and library were installed through local file: tarballs with npm install --offline --ignore-scripts --no-audit --no-fund.
    • Offline consumer install: exit 0 (8s); exactly two local packages added.
    • Runtime check: exit 0. OgcApiEndpoint resolved from @camptocamp/ogc-client; CSAPIQueryBuilder and createCSAPIBuilder resolved from @camptocamp/ogc-client/csapi; the pure factory returned a CSAPIQueryBuilder instance.
    • TypeScript check: exit 0 (2s) under the project-aligned skipLibCheck boundary. Root and CSAPI declarations resolved, and representative value/type assignments compiled with strict, NodeNext, and noEmit.
    • Live API/network calls: zero. The runtime proof performed no fetch; consumer installation was explicitly offline.

    Cleanup and exclusions:

    • Removed dist/, the consumer, both tarballs, pack JSON, audit helper, Node/npm shims, and the temporary local npm shim.
    • Exact artifact checks report every task-e2-* path and dist/ absent; git status --short is empty and git diff --check passes.
    • Nothing was published; no package metadata, source, dependency, audit, or delivery-repository change was made.

    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