Skip to content

feat(commands): add /ds-data-review + /ds-data-mode — data-layer coverage (#23)#38

Merged
lucindo merged 2 commits into
gleicon:mainfrom
lucindo:feat/23-data-review-mode
Jun 1, 2026
Merged

feat(commands): add /ds-data-review + /ds-data-mode — data-layer coverage (#23)#38
lucindo merged 2 commits into
gleicon:mainfrom
lucindo:feat/23-data-review-mode

Conversation

@lucindo

@lucindo lucindo commented Jun 1, 2026

Copy link
Copy Markdown
Collaborator

Closes #23.

Two companion commands closing the data-layer gap, split so each does a single job — one audits the operational store after the fact, the other shapes how pipelines get built.

/ds-data-review — action (correctness family)

Store-agnostic (relational and NoSQL) audit owning the unowned question: is the data correct, consistent, and well-modeled? Checks schema & integrity, query-result correctness, transactions & consistency, and migration safety. Lines drawn by consequence, not feature:

  • slow query → /ds-perf-plan; query returning wrong/duplicate data → here
  • injection stays with /ds-security-review (assumes parameterized queries)
  • general code-logic races stay with /ds-bug-review

Output is a prioritized findings list (critical / wrong-results / integrity-gap / hardening); changes nothing. Spine: no finding without a concrete data hazard reachable in this schema/queries.

--pipelines flag adds a sixth check area — data-pipeline / ETL correctness (idempotency, replay/backfill safety, late & out-of-order data, dedup, schema drift). Off by default (the locked default scope is the operational store); when on, it's the after-the-fact audit counterpart to the /ds-data-mode build mode.

/ds-data-mode — mode (build-time complement)

Tool-agnostic data-engineering discipline (batch + streaming) countering the naive ETL shape LLMs default to. Encodes constraints up front: idempotent transforms, late/out-of-order data (event-time windowing + watermarks), dedup, schema-drift contracts, replay/backfill safety, boundary DQ assertions that fail the run, E/T/L separation. Stacks with /ds-tiger-style-mode + /ds-test-mode; its audit counterpart is /ds-data-review (store) and /ds-data-review --pipelines (pipeline code).

Quality gate integration

/ds-data-review joins /ds-quality-gate-mode as a conditional pass 5 (security → bug → data → code-quality), running only when the change touches schema/queries/transactions/migrations, else skipped with a note. It's a review, so it belongs in the gate's review-family spine (unlike the plan commands #21/#22, which stay out). Six-pass → seven-pass.

Registration

  • README "Skills" table — review + mode rows; quality-gate row updated to seven-pass
  • docs/commands.md/ds-data-review under Reviews (+ layered-gate intro node), /ds-data-mode under Engineering modes, quality-gate reference updated
  • docs/recipes.md — modes stack, pre-PR gate step, new "Building a data pipeline" recipe, two "Which command, when" rows

Verification

  • npm test → 36 passed, 0 failed; integrity check sees 40 commands (was 38)
  • bash install.sh --dry-run installs both files cleanly across Claude / OpenCode / Codex targets

Drafted from the locked proposals attached to #23; refined via /ds-grill-me (quality-gate integration + --pipelines audit added in review).

lucindo added 2 commits June 1, 2026 15:42
…rage (gleicon#23)

Two companion commands closing the data-layer gap, split so each does one job:

- /ds-data-review (action): store-agnostic data-correctness/integrity/migration-
  safety audit. Owns the unowned question — is the data correct, consistent, and
  well-modeled? Lines drawn by consequence vs perf/security/bug-review.
- /ds-data-mode (mode): build-time data-engineering discipline (idempotency,
  late/out-of-order data, schema drift, replay/backfill safety, DQ assertions).
  Tool-agnostic; stacks with tiger-style + test modes; complements the review.

Registered in README, docs/commands.md (Reviews + Engineering modes), and
docs/recipes.md (modes stack, pre-PR gate, new pipeline recipe, which-command-when).
…ETL audit

From the /ds-grill-me pass on PR gleicon#38:

- Add /ds-data-review as a conditional pass 5 in /ds-quality-gate-mode (it's a
  review, so it belongs in the gate's review-family spine, unlike the plan
  commands). Gated: runs only when the change touches schema/queries/
  transactions/migrations, else skipped with a note. Six-pass → seven-pass
  across the command file, docs/commands.md, and README.
- Add --pipelines to /ds-data-review: an additive sixth check area auditing
  ETL/pipeline code (idempotency, replay/backfill safety, late/out-of-order
  data, dedup, schema drift) — the after-the-fact audit counterpart to the
  /ds-data-mode build mode. Default scope (operational store) unchanged.
- Weave /ds-data-review into the Reviews layered-gate intro as a conditional node.
- Cross-link the mode <-> review --pipelines pairing in both command files,
  docs/commands.md, and the recipe.
@lucindo
lucindo marked this pull request as ready for review June 1, 2026 18:57
@lucindo
lucindo merged commit 294dd09 into gleicon:main Jun 1, 2026
@lucindo
lucindo deleted the feat/23-data-review-mode branch June 1, 2026 18:59
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.

Add /ds-data-review (store correctness/integrity/migrations) + /ds-data-mode (pipeline-build discipline)

1 participant