An outdated dataset upload overwrites a newer revision
A retry from an older editor replaces a dataset after another upload has already succeeded. Follow revision validation and quality-run capture. Reject stale uploads while preserving valid replacement and retry behavior.
Data EngineerDataset release gate
Work through a real codebase.
Choose an environment, investigate the existing implementation and use the tests to check your change. Sign in to open a workspace; execution and Ono usage follow your plan’s allowances.
create takes id, owner and a nonempty schema of distinct column names. replace requires the owner, expectedRevision and rows containing exactly those columns. A successful replace increments revision.
check takes id, dataset, actor, rules and optional maxFailures (default zero). A rule names column and kind: required, unique or range. Range limits are inclusive. Unique reports later duplicate row indexes. Required rejects null and empty strings.
Quality allowance counts distinct failed rows across all rules, not the sum of rule failures. An empty dataset has no failing rows. A check captures the dataset revision and a deep copy of its rows.
approve requires passing checks and a reviewer different from the check operator. Publish requires approval and the dataset owner; it must publish the checked rows even if the dataset was edited later.
publish takes run ID, channel and expectedGeneration. A new channel starts at generation zero; each successful publication increments it. Existing channels must stay with the same dataset and cannot regress revision.
read returns channel, dataset, revision, generation and rows. publications returns channel history for the requesting tenant. Failed publication must not create a channel or a history entry.
Each command includes op and tenant. IDs are scoped to a tenant. A request is limited to 200 commands. Commands run in order; one failed command does not stop the rest. The live workspace API persists state across requests; /run creates a disposable test workspace.
Mutations and audit entries commit together. failAudit simulates an unavailable audit writer and must roll back the command. Read operations never write an audit entry.
The optional request field makes mutation retries idempotent within a tenant. The same request and payload return the saved result. Reusing it with changed fields returns request-conflict. failAudit is excluded from payload comparison.
The response is {results:[...]}. Each result is {ok:true,value:...} or {ok:false,error:...}. The history command returns tenant-scoped audit entries with the successful mutation revision.
create takes id, owner and a nonempty schema of distinct column names. replace requires the owner, expectedRevision and rows containing exactly those columns. A successful replace increments revision.
check takes id, dataset, actor, rules and optional maxFailures (default zero). A rule names column and kind: required, unique or range. Range limits are inclusive. Unique reports later duplicate row indexes. Required rejects null and empty strings.
Quality allowance counts distinct failed rows across all rules, not the sum of rule failures. An empty dataset has no failing rows. A check captures the dataset revision and a deep copy of its rows.
approve requires passing checks and a reviewer different from the check operator. Publish requires approval and the dataset owner; it must publish the checked rows even if the dataset was edited later.
publish takes run ID, channel and expectedGeneration. A new channel starts at generation zero; each successful publication increments it. Existing channels must stay with the same dataset and cannot regress revision.
read returns channel, dataset, revision, generation and rows. publications returns channel history for the requesting tenant. Failed publication must not create a channel or a history entry.
Each command includes op and tenant. IDs are scoped to a tenant. A request is limited to 200 commands. Commands run in order; one failed command does not stop the rest. The live workspace API persists state across requests; /run creates a disposable test workspace.
Mutations and audit entries commit together. failAudit simulates an unavailable audit writer and must roll back the command. Read operations never write an audit entry.
The optional request field makes mutation retries idempotent within a tenant. The same request and payload return the saved result. Reusing it with changed fields returns request-conflict. failAudit is excluded from payload comparison.
The response is {results:[...]}. Each result is {ok:true,value:...} or {ok:false,error:...}. The history command returns tenant-scoped audit entries with the successful mutation revision.
create takes id, owner and a nonempty schema of distinct column names. replace requires the owner, expectedRevision and rows containing exactly those columns. A successful replace increments revision.
check takes id, dataset, actor, rules and optional maxFailures (default zero). A rule names column and kind: required, unique or range. Range limits are inclusive. Unique reports later duplicate row indexes. Required rejects null and empty strings.
Quality allowance counts distinct failed rows across all rules, not the sum of rule failures. An empty dataset has no failing rows. A check captures the dataset revision and a deep copy of its rows.
approve requires passing checks and a reviewer different from the check operator. Publish requires approval and the dataset owner; it must publish the checked rows even if the dataset was edited later.
publish takes run ID, channel and expectedGeneration. A new channel starts at generation zero; each successful publication increments it. Existing channels must stay with the same dataset and cannot regress revision.
read returns channel, dataset, revision, generation and rows. publications returns channel history for the requesting tenant. Failed publication must not create a channel or a history entry.
Each command includes op and tenant. IDs are scoped to a tenant. A request is limited to 200 commands. Commands run in order; one failed command does not stop the rest. The live workspace API persists state across requests; /run creates a disposable test workspace.
Mutations and audit entries commit together. failAudit simulates an unavailable audit writer and must roll back the command. Read operations never write an audit entry.
The optional request field makes mutation retries idempotent within a tenant. The same request and payload return the saved result. Reusing it with changed fields returns request-conflict. failAudit is excluded from payload comparison.
The response is {results:[...]}. Each result is {ok:true,value:...} or {ok:false,error:...}. The history command returns tenant-scoped audit entries with the successful mutation revision.