Repository navigation
Description
Phase 8 Task
Task ID: E1
Title: Full CI Gate + Source Patch Generation
Source: Phase 8 delivery sequence — verification gate before clean-pr squash
Severity: N/A (verification only — no source change)
Category: CI / Delivery / Verification
Ownership: Ours (phase-8 branch on OS4CSAPI/ogc-client-CSAPI_2)
Phase 8 phase: E — Verification & Delivery
Goal
Run the full upstream CI gate against the Phase 8 outcome and generate the source-only patch (phase-8.patch) to be applied onto clean-pr in Task E2. After E1:
- All five upstream QA commands (
format:check,typecheck,lint,test:browser,test:node) exit 0 onphase-8 - A
phase-8.patchfile exists on disk containing onlysrc/ogc-api/csapi/**,src/ogc-api/endpoint.ts,src/ogc-api/index.ts, andfixtures/csapi/**diffs (relative tophase-7) - No
docs/,app/,src-node/, governance, planning, or workstream-3 catalog updates appear in the patch - Patch size approximately ~400 source LOC + ~550 test LOC (per P8-ROADMAP §Roadmap Summary)
Acceptance criterion: All Phase 8 acceptance criteria (A1–A8, B1–B2) are validated end-to-end by green CI; the source-only patch is the deliverable handed to Task E2.
Locked Decision
⚠️ This decision is locked. Do not re-litigate in this issue. Surface deviations to the user; do not silently re-decide.
Decision: Verification & delivery is two tasks, not one:
- E1 (this issue) = CI gate + patch generation on
phase-8(the planning branch) - E2 (next issue) = squash + apply onto
clean-pr+ push + PR D-1: ResolveSystemTypeUrisname collision between model.ts and constants.ts #136 refresh + tag @jahow
The split mirrors Phase 7's delivery pattern, which is the one part of Phase 7 that was structurally right (P8-implementation-guide.md §11). E1 is pure verification on the planning repo; E2 is pure delivery to the upstream-shaped delivery branch.
The patch is generated with git diff phase-7..phase-8 -- src/ fixtures/. Phase 7 is the baseline, not main or master. The path filter src/ fixtures/ is the scope fence — it deliberately excludes docs/, app/, src-node/, tools/, governance markdown, and planning markdown so workstream-3 catalog updates do not flow upstream.
Locked in:
- P8-implementation-guide.md §8.2 — CI gate command sequence
- P8-implementation-guide.md §11 steps 2–3 — patch generation and inspection
- P8-ROADMAP.md §Phase E Task E1 — task definition
Problem Statement
After Tasks A1–A4, B1, B2, C1, D1 land on phase-8, the branch contains the full Phase 8 outcome but has not yet been validated as an integrated whole. Each task's acceptance gate ran CI on its own diff, but Phase 8's final integration may surface lint, typecheck, test, or formatter issues that no individual task's gate caught (e.g., import ordering after Datastream rename + dynamic-import refactor; unused-import warnings after isCollectionInfo removal; combined-effects test flakiness).
Additionally, the patch generated for upstream delivery must be scoped surgically — Phase 8's planning branch has accumulated docs/governance/, docs/planning/phase-8/, docs/code-review/, governance memo, and possibly app/demo updates that must not flow to camptocamp/ogc-client. The diff filter (-- src/ fixtures/) is the scope fence, and an inspection step is required before the patch is handed to Task E2.
Affected branch state: phase-8 HEAD after D1 lands; baseline phase-7; output artifact phase-8.patch.
Files to Modify
| File | Action | Est. Lines | Purpose |
|---|---|---|---|
| (none) | (no source edits) | 0 | Verification & artifact generation only — no src/, fixtures/, app/, docs/, or test files are modified by this task. |
phase-8.patch |
Create | ~950 LOC | Source-only diff (git diff phase-7..phase-8 -- src/ fixtures/) saved to repo root; artifact, not committed to phase-8. |
Cross-reference P8-implementation-guide §8.2 + §11 steps 2–3 for the canonical command sequence. If you find yourself editing source files inside this task, stop — that's a regression, not E1's job.
Implementation Approach
Execute the canonical command sequence verbatim from P8-implementation-guide §8.2 and §11 steps 2–3. All commands run in PowerShell from the repo root.
Step 1 — Confirm working tree is clean and on phase-8 HEAD:
cd c:\Users\sbolling\Documents\ogc-client-CSAPI_2
git status # must show "nothing to commit, working tree clean"
git rev-parse --abbrev-ref HEAD # must print: phase-8
git log -1 --oneline # confirm D1 (or last Phase 8 task) is HEADStep 2 — Run the five upstream QA commands in order:
npx prettier --check . # gate 1
npm run typecheck # gate 2
npm run lint # gate 3
npm run test:browser # gate 4
npm run test:node # gate 5Every command must exit 0. If any fails, stop, file the failure as a Phase 8 hotfix issue (or amend the offending Phase 8 task), and re-run E1 from Step 1. Do not proceed to Step 3 with any red CI gate.
Step 3 — Generate the source-only patch:
git diff phase-7..phase-8 -- src/ fixtures/ > phase-8.patchThe path filter -- src/ fixtures/ is the scope fence. Do not omit it. Do not broaden it. Do not switch the baseline from phase-7 to anything else — phase-7 is the upstream-merge baseline.
Step 4 — Inspect the patch:
# 4a. File-list inspection — must contain ONLY the four allowed prefixes
git apply --stat phase-8.patch
# Expected paths begin with: src/ogc-api/csapi/, src/ogc-api/endpoint.ts,
# src/ogc-api/index.ts, fixtures/csapi/
# Reject any path under: docs/, app/, src-node/, tools/, .github/, *.md (planning/governance)
# 4b. LOC sanity-check — should be approximately ~400 source + ~550 test
(Get-Content phase-8.patch | Measure-Object -Line).Lines
git apply --numstat phase-8.patch | Measure-Object -Property @{Expression={$_.Split("`t")[0]}} -SumStep 5 — If anything fails inspection: the patch is poisoned. Identify the unwanted file (e.g., a stray docs/ edit committed to phase-8 by accident, or an app/ demo update), and either (a) regenerate with a tighter pathspec (preferred), or (b) revert/move the offending commit on phase-8 and regenerate. Do not hand a poisoned patch to E2.
Step 6 — Final artifact handoff: phase-8.patch exists at repo root; CI is fully green on phase-8; ready for E2.
Scope — What NOT to Touch
- ❌ Do NOT modify any source file (
src/,fixtures/,test-setup*.ts) inside this task. E1 is verification + artifact generation only. Any code change is out-of-scope and must be filed as a hotfix issue or rolled into the offending A1–D1 task. - ❌ Do NOT modify
docs/,app/,src-node/, governance files, or planning files inside this task. - ❌ Do NOT broaden the diff pathspec beyond
-- src/ fixtures/. Specifically, do NOT add-- docs/,-- app/,-- src-node/,-- *.md, or-- .github/. - ❌ Do NOT change the diff baseline from
phase-7tomain,master,clean-pr, or any other ref.phase-7is the upstream-merge baseline locked in P8-implementation-guide §11. - ❌ Do NOT commit
phase-8.patchto thephase-8branch. The patch is an artifact, not a tracked file. Addphase-8.patchto.gitignoreonly if it is not already covered. - ❌ Do NOT skip any of the five QA commands. All five must exit 0; partial-green is not green.
- ❌ Do NOT use
--no-verify,--no-cache=falseshortcuts, or bypass any gate. Hidden flake is delivery-blocking, not delivery-deferring. - ❌ Do NOT execute Task E2's actions (squash, apply, push, PR refresh, @jahow tag) inside this task. E2 is a separate issue and a separate repo (
OS4CSAPI/ogc-client'sclean-prbranch). - ❌ Do NOT add
@deprecatedtags anywhere in Phase 8 (locked decision; PR unmerged ⇒ no consumers). - ❌ Do NOT absorb consumer-side ergonomic helpers (Phase 8 hard scope fence; Closed (wontfix): library is spec-correct; server-side root cause tracked at connected-systems-go#11; institutional knowledge preserved in references.md #168 / Closed (wontfix): heuristic coordinate extraction not adopted; architecturally correct path tracked at #171 #169 stay closed wontfix).
- ❌ Do NOT re-open a Phase 8 deferred finding (020, 025, 026) or a deferred CS-Go issue (Future-enhancement (deferred): async-iterator helpers for paginated CSAPI list methods — out-of-scope until upstream broadens scope #170, Deferred enhancement: SWE Common–aware result-vector extraction (out-of-scope until upstream broadens scope) #171).
- ❌ Do NOT amend any prior Phase 8 commit on
phase-8to "tidy up" — granular per-task history on the planning branch is intentional. Any squash happens only in E2 ontoclean-pr.
Acceptance Criteria
- Working tree clean and on
phase-8HEAD before any QA command runs -
npx prettier --check .exits 0 -
npm run typecheckexits 0 -
npm run lintexits 0 -
npm run test:browserexits 0 -
npm run test:nodeexits 0 -
phase-8.patchgenerated viagit diff phase-7..phase-8 -- src/ fixtures/ -
git apply --stat phase-8.patchshows only paths undersrc/ogc-api/csapi/,src/ogc-api/endpoint.ts,src/ogc-api/index.ts,fixtures/csapi/ - No
docs/,app/,src-node/,tools/,.github/, or top-level*.mdpaths appear in the patch - Patch LOC roughly ~400 source + ~550 test (~950 total per the roadmap summary; deviation > ±20% is a smell to investigate before E2)
-
phase-8.patchis not committed to thephase-8branch - No source files modified by this task (working tree still clean after Step 6 except for the untracked
phase-8.patchartifact)
Acceptance Gate (verification command)
The Phase 8 roadmap defines a specific verification command for this task (P8-ROADMAP §Phase E Task E1). Paste the output of these commands on the issue before closing:
# 1. Branch + working-tree state
git rev-parse --abbrev-ref HEAD # expected: phase-8
git status --short # expected: empty (or only untracked phase-8.patch after Step 3)
# 2. Five upstream QA gates (must mirror .github/workflows/qa.yml)
npx prettier --check .
npm run typecheck
npm run lint
npm run test:browser
npm run test:node
# 3. Patch generation
git diff phase-7..phase-8 -- src/ fixtures/ > phase-8.patch
# 4. Patch scope inspection — must show ONLY the four allowed prefixes
git apply --stat phase-8.patch
# 5. Patch scope verification — must return zero forbidden paths
git apply --stat phase-8.patch | Select-String -Pattern '^\s*(docs|app|src-node|tools|\.github)/'
# Expected: no output (zero matches)
# 6. Patch LOC sanity check
git diff --shortstat phase-7..phase-8 -- src/ fixtures/
# Expected: roughly ~950 LOC changed (±20%)Expected output:
- HEAD =
phase-8; working tree clean (artifact untracked is fine) - All five QA commands exit 0
git apply --statshows onlysrc/ogc-api/csapi/...,src/ogc-api/endpoint.ts,src/ogc-api/index.ts,fixtures/csapi/...- The
Select-Stringforbidden-path check returns zero matches - LOC roughly ~950 (~400 source + ~550 test)
Phase E1 → E2 handoff: the only artifact crossing the task boundary is
phase-8.patch. E2 picks up that file and applies it ontoclean-pr. Do not pre-stage anything else for E2 inside this task.
Dependencies
Mandatory. Walk the P8-ROADMAP dependency graph and fill in every applicable row.
Blocked by: All of Phases A–D complete and green on phase-8 — Tasks A1, A2, A3, A4, B1, B2, C1, D1 must all be merged onto phase-8 and individually CI-green before E1 starts. E1 is the integrated re-verification; if any of A–D's individual CI was skipped, E1 catches it.
Blocks: Task E2 — E2 cannot start until phase-8.patch exists and CI on phase-8 is green. The single artifact handoff is the patch file.
Related: Phase 7's delivery pattern (P8-implementation-guide §11); upstream PR #136 (E2's target).
Roadmap dependency row: P8-ROADMAP §Phase E Task E1: "Effort: Small (~30 min, mostly waiting for CI). Risk: None (verification only). Dependencies: All of Phases A–D complete. Acceptance gate: All five CI commands exit 0; phase-8.patch contains only source/fixture diffs and is ~400 source LOC + ~550 test LOC."
References
| # | Document | What It Provides |
|---|---|---|
| 1 | P8-contribution-goal-and-definition.md | Phase 8 goal, scope, acceptance criteria, locked decisions |
| 2 | P8-implementation-guide.md §8.2 | Canonical CI gate command sequence |
| 3 | P8-implementation-guide.md §11 steps 2–3 | Canonical patch-generation steps + scope fence |
| 4 | P8-ROADMAP.md §Phase E Task E1 | Task ordering, dependencies, acceptance gate |
| 5 | .github/workflows/qa.yml (upstream camptocamp/ogc-client) |
Authoritative source for the five-command QA gate |
| 6 | Phase 7's delivery sequence (historical) | Reference pattern E1 + E2 mirror |
Activity
Sam-Bolling commentedon Apr 29, 2026
Workflow & Closing Step (applies to this issue)
When working this issue, follow this workflow exactly:
git commit+git push origin <branch>). Verify withgit statusthat the working tree is clean andgit log origin/<branch>..HEADis empty.Acceptance-gate scrub: NO manual review
Any prior wording in this issue body that asks for a "manual review confirmation paragraph", "manual review paragraph", "human review", or any other free-form prose-confirmation gate is rescinded. The acceptance gate is the set of automated commands listed under Acceptance Gate (verification command) — exit codes only, no manual-review prose. If any such manual-review wording appears in the original body of this issue, treat it as a no-op and ignore it.
If the original verification block called for a "manual review confirmation" step, the corrected gate is:
npx prettier --checkinvocations exit 0.npm runQA invocations (format:check,typecheck,lint,test:browser,test:node) exit 0.phase-8HEAD prior to this task's commit) — paste a one-linegit stash; npx jest <suite>; git stash popreproduction in the closing comment.For PR-page verification gates that previously called for "manual / browser" inspection of
pull/136, replace with API-based verification using the GitHub MCP tools (mcp_io_github_git_pull_request_read,mcp_io_github_git_list_commits) — no browser, no manual screenshotting.docs(phase-8): LOC footprint report (pre-E1 measurement)
chore(phase-8): ignore phase-8.patch artifact (E1 / #180)
style(phase-8): apply prettier to LOC footprint report (E1 / #180)
Sam-Bolling commentedon Apr 30, 2026
E1 complete. Source-only patch generated and validated.
QA gates (on phase-8 HEAD
7de1bde)prettier --check .npm run typechecknpm run lintnpm run test:nodenpm run test:browserPatch
phase-8.patch(127,270 bytes / 3,060 lines / 22 files / +1173 / -369 = +804 net)docs/,app/,src-node/,tools/,.github/,wms/,wfs/,wmts/).Deviations from locked spec (flagged per protocol)
src/ogc-api/csapi/,src/ogc-api/endpoint.ts,src/ogc-api/endpoint.spec.ts,src/ogc-api/index.ts,src/index.ts) instead of issue's literal-- src/ fixtures/to filter out upstream's WMS DescribeLayer commits (caf3bd5,6d2c872) which arrived via merge643626f. End-state identical to spec; eliminates the post-hoc inspection-and-reject step.src/ogc-api/endpoint.spec.ts(D1b's csapi() test coverage) andsrc/index.ts(A2'sCSAPICollectionRefexport) beyond Phase 8 / Task E1: Full CI gate + source patch generation #180's literal allowlist. Both required for the patch to be self-contained.fixtures/csapi/has zero changes in Phase 8 (no new fixtures landed); it is in Phase 8 / Task E1: Full CI gate + source patch generation #180's allowlist but contributes nothing.Patch handoff to E2 (#181) complete.