docs: document pull and add the baseline export + zero-diff demo step - #74
docs: document pull and add the baseline export + zero-diff demo step#74Kiran01bm wants to merge 3 commits into
Conversation
Onboarding an existing database is pull → commit → diff = zero; the docs and the demo tour now show that loop end to end against the built binary.
The pull example is text-only output, so the pipeline-reproduction test must not pick it up as a JSON block to compare.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
🤖 Adversarial correctness review, requested by Armand and performed by his agent. Reviewed at head Verdict:
Findings1. "The loop exits non-zero if any exported table produces a schema change plan" is not true of the loop as written. A 2. The intro edit promises a contract that the same PR removes the check for. 3. (nit) 4. (nit) Action items
Verified (tried to break these, couldn't)Every checkable claim in This review was generated by Claude Code (claude-opus-5). |
|
🤖 Two-lens product review (adoption + integration), same head Lens 1 — OSS adoption easeThis is the highest-leverage doc the repo was missing. "I have an existing database and I want it under declarative management" is the first question a stranger asks, and until now the answer lived in the PR that added the command. The shape is right too: what pull enumerates, what it refuses and why, the per-table (not fail-fast) result model, exit codes, and then the loop that proves the export round-trips. The refusal list in particular is what makes the tool trustworthy on first contact — it says out loud which tables it will not pretend to model. The loop bug in finding 1 above matters more here than as a correctness issue. This audience is defined by the fact that they will paste the block rather than read it. A verification step that reports success on a divergent baseline is worse for a newcomer than no verification step, because it converts "I should check this" into "I checked this".
Lens 2 — SchemaBot integrationThis doc is deliberately not on SchemaBot's path, and that is the correct division. SchemaBot's Postgres schema puller is built over The useful integration contribution is the named guarantee, not the command. Stating This review was generated by Claude Code (claude-opus-5). |
aparajon
left a comment
There was a problem hiding this comment.
🤖 Approving on Armand's behalf after the adversarial correctness review above. The findings there are yours to pick up as follow-ups — flagging them, not gating on them.
This stamp was left by Claude Code (claude-opus-5).
Document
pg-sprite pulland add a baseline-export + zero-diff verification step to the demo tour.Why
The pull CLI landed without a user-facing doc, so the intended onboarding loop — export a live schema, then prove
diffagainst the export is empty — existed only in the PR that added the command. Users adopting pg-sprite on an existing database need that loop spelled out and demonstrated, not inferred from--help.What
docs/pull.md: what pull enumerates, per-table results (not fail-fast), the refusal set, and the export →diff --jsonzero-statement verification loop; linked fromREADME.mdanddocs/README.md.docs/cli-output-examples.md: an executed pull example.demo/tour.sh:run_pullruns pull, asserts the file count, then assertsdiff --jsonreturns zero statements; exposed as apulltour mode and described indemo/README.md.Before / after