Skip to content

fix(ci): remove unused PostgreSQL fingerprint export - #192929

Merged
vincentkoc merged 1 commit into
mainfrom
fix/ci-postgres-schema-private-helper-20261104
Nov 4, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/ci-postgres-schema-private-helper-20261104

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Dependency checks fail after PostgreSQL standby inspection exports a schema fingerprint helper that has no callers outside its module.

User Impact

Internal CI repair; no user-visible behavior, database schema, or stored-data change.

Why This Change Was Made

Keep postgresSchemaFingerprint private. Its four existing callers remain in the same module, and the separately consumed postgresSchemaHash stays exported.

Related: #192645

Evidence

  • On base 3e114e23c33c55585bb6859bc695693749139f03, pnpm deadcode:exports reports the PostgreSQL helper in both production and full-tree scans. With this one-keyword change, both findings disappear; the script scan passes.

  • The aggregate export check still exits 1 solely for the unchanged SKILL_WORKSHOP_PLUGIN_ID export in ui/src/pages/skill-workshop/plugin-availability.ts. No overall scanner pass is claimed.

  • Targeted maintained lint, formatting, pnpm tsgo:core, and git diff --check pass on an isolated physical macOS arm64 install with Node 24.22.1 and frozen dependencies. The proof checkout and committed source file match byte for byte.

  • No new test duplicates the existing whole-repository export guard. Simplification pass: one keyword removed, one source line changed, zero test changes.

  • Fresh local ClawSweeper review completed on 3e114e23c33c55585bb6859bc695693749139f03..06c4498b35db1e178d00b414f7e473886f0187f0: no actionable correctness, compatibility, or security findings; confidence 0.99. The review verified the complete diff and source contracts without rerunning the reported checks.

  • CI run 41880253379, attempt 1 is terminal. All three PostgreSQL conformance shards, scoped type/lint checks, and security-fast passed. checks-ui-e2e (1/2) failed; the CI aggregate reports that UI root failure.

  • Tested merge ca25a31a75bfe51a128dcb659f2cf03dcdc17da2 has baseline d4f79d57d59e179c6c4ea7b4271dbf435cedae1a and this exact PR head as its ordered parents. Its sole diff removes this export keyword; the complete UI tree and recorded test/workflow/dependency inputs are unchanged. Independent source-attribution audit found no causal path from this change to the UI failure. The failed UI raw log was unavailable; annotation-only discovery lists three creator tests and may omit cases. No baseline replay, exact failure-signature match, or overall CI success is claimed.

@vincentkoc vincentkoc self-assigned this Nov 4, 2026
@clawsweeper

clawsweeper Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@vincentkoc
vincentkoc marked this pull request as ready for review November 4, 2026 17:45
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 4, 2026
@clawsweeper

clawsweeper Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR makes the PostgreSQL schema fingerprint helper private while preserving its four internal callers.

Example: Run the unused-export check against postgres-schema.ts.

  • Before: postgresSchemaFingerprint is exported despite having no external callers.
  • After: The helper remains available internally without exposing an unused export.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A minimal, source-verified maintenance repair supported by scoped validation reports; no runtime behavior or persistence contract changes.
Proof confidence 🐚 platinum hermit (4/6) This maintainer-authored internal export repair changes no shipped runtime behavior; reported scanner results and inspected source support the repair without a Gateway demonstration.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Maintenance · Worth it: Yes · Fix scope: Complete
User problem: Dependency checks reject an unnecessary internal export.
Reason: The maintainer-authored change directly repairs the existing guard violation with the smallest possible edit.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR makes a useful, minimal CI repair that current main still needs; no actionable patch defects were found.

Priority: P3
Reviewed head: 06c4498b35db1e178d00b414f7e473886f0187f0

Before merge

None.

Findings

None.

Agent review details

How this fits together

The PostgreSQL schema owner converts catalog facts into fingerprints used during schema sealing and admission; the export guard checks which module exports have consumers.

flowchart LR
  A[PostgreSQL catalog facts] --> B[Schema owner]
  B --> C[Private fingerprint helper]
  C --> D[Schema seal and admission]
  E[Unused export guard] --> B
Loading

Technical review

Best possible solution:

Keep the fingerprint private and retain the existing export guard without adding tests or changing database behavior.

Do we have a high-confidence way to reproduce the issue?

Source confirms an exported helper with only internal callers and a zero-unused-export guard; the PR reports before/after scanner results, which were not rerun during this read-only review.

Is this the best way to solve the issue?

Removing the single export keyword restores the intended module boundary without changing fingerprint computation, admission checks, or the externally consumed schema hash.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against c9b26404f58f.

Provenance checked

  • PostgreSQL fingerprint export changes intended behavior with a stated reason (cf50d4a: Standby admission added retained schema-seal evidence and exported schema helpers; current consumers require postgresSchemaHash, not postgresSchemaFingerprint.)

Testing

Proof path: none.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit e3b8a28 adds src/infra/database-engine/postgres-schema.ts:78 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: e3b8a282764d; files: src/infra/database-engine/postgres-schema.ts)

PR surface

Source 0. Total 0 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 1 1 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 1 1 0

Labels

Label changes:

  • add P3: This is a narrowly scoped internal export cleanup with no runtime or stored-data change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is a narrowly scoped internal export cleanup with no runtime or stored-data change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 4, 2026, 1:01 PM ET / 18:01 UTC.

@vincentkoc
vincentkoc merged commit cfb85a1 into main Nov 4, 2026
217 of 220 checks passed
@vincentkoc
vincentkoc deleted the fix/ci-postgres-schema-private-helper-20261104 branch November 4, 2026 18:22
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

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

Labels

P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant