Skip to content

chore: remove unused pipeline & observability packages (closes #208)#214

Merged
williamzujkowski merged 2 commits into
mainfrom
chore/remove-unused-pipeline-observability
Jun 23, 2026
Merged

chore: remove unused pipeline & observability packages (closes #208)#214
williamzujkowski merged 2 commits into
mainfrom
chore/remove-unused-pipeline-observability

Conversation

@williamzujkowski

Copy link
Copy Markdown
Collaborator

Closes #208. Decision: remove (repo owner chose this over keep-as-library / wire-up).

Why remove

  • Zero importers — confirmed nothing in workflows, scripts, apps, or other packages imports @civic-source/pipeline or @civic-source/observability; pipeline didn't even depend on observability.
  • The live sync-law.yml inlines its own fetch→transform→annotate logic and never called orchestrate().
  • orchestrate() wasn't a viable drop-in anyway: it lacked the entire data-repo git/commit/push half and still carried the pre-fix(ci): decode+unzip OLRC archive before transforming in sync (closes #199) #204 base64-ZIP bug.
  • Aligns with the repo's stated YAGNI principle — no speculative abstractions.

Changes

  • Delete packages/pipeline/ and packages/observability/ (incl. their tests).
  • Remove their rows from README.md and ARCHITECTURE.md; relabel the ARCHITECTURE data-flow diagram box PipelineWorkflow (orchestration is performed by the GitHub Actions sync, not a package).
  • Regenerate pnpm-lock.yaml.

Verification

  • pnpm build → 8→6 packages, all green.
  • pnpm test → all green.
  • pnpm install --frozen-lockfile → clean (no stale refs).
  • Final grep: no lingering references in source/docs/tsconfig/turbo.

🤖 Generated with Claude Code

Both packages were built, tested, and documented but had zero importers:
nothing in the repo (workflows, scripts, apps, other packages) imported
@civic-source/pipeline or @civic-source/observability. The live
sync-law.yml inlines its own fetch→transform→annotate logic and never
called orchestrate(); pipeline didn't even depend on observability.

Per the repo's YAGNI principle, remove the speculative packages rather
than carry the maintenance/build surface. orchestrate() also still
carried the pre-#204 base64-ZIP bug and lacked the data-repo
git/commit/push half, so it was not a drop-in for the workflow anyway.

- Delete packages/pipeline and packages/observability (+ their tests).
- Drop their rows from README.md and ARCHITECTURE.md; relabel the
  ARCHITECTURE data-flow diagram's orchestration box "Pipeline" →
  "Workflow" (the GitHub Actions sync now fills that role).
- Regenerate pnpm-lock.yaml.

Build drops 8→6 packages; full build + tests green; frozen-lockfile
install clean.

Closes #208

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@williamzujkowski williamzujkowski requested a review from a team as a code owner June 23, 2026 12:55
Removing pipeline/observability made "267 tests across 8 packages"
inaccurate; replace the brittle hardcoded count with a non-numeric note.
Also correct the toolchain line (Node 22.x/pnpm 9.x → Node 24.x/pnpm
11.x) to match the #183 migration, mirroring the earlier CLAUDE.md fix.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@williamzujkowski williamzujkowski merged commit c4ff426 into main Jun 23, 2026
3 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.

chore(vestigial): @civic-source/pipeline and @civic-source/observability are built/tested/documented but unused

1 participant