Skip to content

feat: add sink-parity agent skill - #1689

Merged
jescalada merged 8 commits into
finos:feat/postgresfrom
dcoric:feat/sink-parity-skill
Aug 28, 2026
Merged

feat: add sink-parity agent skill#1689
jescalada merged 8 commits into
finos:feat/postgresfrom
dcoric:feat/sink-parity-skill

Conversation

@dcoric

@dcoric dcoric commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Adds a sink-parity skill for AI agents working on the sink backends.

The skill encodes the parity contract between src/db/file, src/db/mongo and src/db/postgres: the Sink interface in src/db/types.ts as the single source of truth, step-by-step checklists for adding interface members, entity fields and postgres schema changes, the semantic rules the compiler cannot enforce (defaults, timestamp bumps, projections, case handling, error behaviour), and the verification commands that catch drift.

It is written for any agent that reads AGENTS.md: Claude picks it up through the existing .claude/skills symlink and opencode through the added command stub, following the same layout as the existing skills.

Targeted at the feat/postgres integration branch since the parity obligation becomes three-way once the PostgreSQL sink lands.

Resolves #1688

Adds a skill that encodes the cross-backend parity contract for the
fs, mongo and postgres sinks: the Sink interface as the source of
truth, checklists for new members, entity fields and schema changes,
the semantic parity rules the compiler cannot enforce, and the
verification commands. Exposed to Claude through the .claude/skills
symlink and to opencode through a command stub.
@dcoric
dcoric requested a review from a team as a code owner August 24, 2026 10:07

@jescalada jescalada left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just a few suggestions for agent output quality 👍🏼

Comment thread .agents/skills/sink-parity/SKILL.md Outdated
Comment thread .agents/skills/sink-parity/SKILL.md
dcoric added 5 commits August 27, 2026 09:37
…tion

Review feedback: the skill told agents to treat the mongo
implementation as the reference, which misleads when new functionality
starts in another backend; the contract in src/db/types.ts and its doc
comments are the source of truth. Also adds a testing section covering
unit versus integration setup per backend and aligned scenarios so
parity is proven by the suite rather than eyeballed.
@codecov

codecov Bot commented Aug 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.49%. Comparing base (13caea1) to head (6249a64).

Additional details and impacted files
@@              Coverage Diff               @@
##           feat/postgres    #1689   +/-   ##
==============================================
  Coverage          86.49%   86.49%           
==============================================
  Files                108      108           
  Lines               5962     5962           
  Branches            1106     1106           
==============================================
  Hits                5157     5157           
  Misses               527      527           
  Partials             278      278           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jescalada
jescalada merged commit 864be89 into finos:feat/postgres Aug 28, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants