Repository navigation
test(api): launch proof on a tenant's own dataset; activate provisioned datasets, scope job reads (#1013) - #1273
Merged
Merged
Conversation
… activate provisioned datasets, scope job reads (#1013) The executable launch proof now creates a dataset with the tenant's admin key, validates and publishes its config, delivers by idempotent JSON push, resumable upload and CSV import, reads duplicates, golden records and lineage, exports golden + lineage and checks them against the live read, and watches an unreadable delivery fail as a run with an error class. Doing so found two bugs: - Activate flipped only the org and its DEFAULT dataset, so every dataset created through POST …/datasets stayed `provisioning` forever and refused publish and every delivery. It now activates the job's own dataset. - Job routes looked a job up by org alone, so …/datasets/a/jobs/{id} served dataset b's job (and its tasks, cancel, resume, clear). They now 404 for another dataset's job; org-level jobs stay visible. The api-contract skill records what the proof covers, the supported limits, and what is owed before an external production key. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
|
The marketing preview was removed because this PR is closed or merged. |
athvin
temporarily deployed
to
marketing-preview
November 26, 2026 20:29 — with
GitHub Actions
Inactive
6 tasks
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1013
What
pg_launch_proofnow runs the whole customer workflow on a dataset the tenant creates itself (validate → publish → idempotent JSON push, resumable upload, CSV import → duplicates/golden/lineage → golden + lineage exports agreeing with the live read → a failed run visible witherror_class/error_detail→ cross-dataset 404s). Two bugs it found are fixed.api-contract/references/launch-readiness.mdrecords coverage, limits and what is owed before an external production key; the docs distinguish acceptance, completion and writeback.Why
#1013's remaining acceptance: an executable non-Salesforce workflow on the public contract with failure-case coverage, and a recorded readiness checklist.
Proof
pg_launch_proofwithDEDUPE_E2E_DUCKLAKE=1against local Postgres: passes (143 s); it failed first on each bug below.cargo test -p er-serveragainst Postgres: 282 + 153 pass.make check: exit 0.Risk & rollback
Job routes now 404 a job of another dataset in the same org — intended; org-level jobs are unaffected.
git revert <merge-sha>.Post-merge ledger
Closed by: agent · session
Claude Code:24d16c2e-fec6-49d8-9797-060338df4848onbrians-MacBook-Pro· 2026-11-26T20:40:08Zmainis green with this change on it — the merge SHA, and the runthat proves it. A later head SHA with this commit as an ancestor counts;
a cancelled run with zero jobs does not:
53bc8fbd— rust 45891353663, frontend 45891353650, infra/devcontainer/marketing preview successimagesbuilt, or correctly never ran because nothing that goes intoan image changed: 45891353576 success
deployconverged — proved by a line the running process emitted, notby the image digest and not by the workflow conclusion: deploy 45891750117 success (dev + prod); the live process at https://dupezero.com/docs serves the new acceptance/completion/writeback paragraph (probed 20:40Z)
deploy,drift,kind's nightly leg) is green, or knowingly red for a reason that is notthis change: deploy green; drift/kind red before this merge for known reasons (Confirm the er-alerts email subscription and prove alert delivery #1056, kind probe red since 2026-11-10: KeyError 'token_hash' after the credential-omission fix #1106)
Donethrough the automation rather than byhand, and the issue closed: API launch proof: configure, ingest, dedupe and retrieve results without Salesforce #1013 CLOSED, card Done via the merge automation
(a skill, a reference, memory) — or nothing new was learned: api-contract/references/launch-readiness.md records the proof's coverage, limits and owed items
Specific to this change
provisioning: list them and activate (dev/prod) — blocked — needs the operator token or database access; the AWS SSO session on this machine expired (interactiveaws sso login). Query:SELECT o.name, d.name FROM datasets d JOIN orgs o ON o.id=d.org_id WHERE d.state='provisioning' AND d.name<>'default'; fix:UPDATE datasets SET state='active' WHERE …once confirmedContext — plan, discoveries, measurements, files
Plan
Discoveries
Activate(the last task ofprovisionanddataset_provision) moveddefaultonly; adataset_provisionjob's own dataset never leftprovisioning. Reproduced by the proof's publish 409.get_job/cancel_job/resume_job/list_job_tasks/clear_job_taskresolved the dataset for a 404 but then looked the job up by org: the proof'sdefault/jobs/{contacts job}returned 200. Newdataset_jobhelper filters bydataset_id.Measurements
Files
🤖 Generated with Claude Code