Repository navigation
feat(api): online resolve for account datasets, an ambiguous decision and a typed status map (#529) - #1377
Merged
Conversation
… and a typed status map (#529) POST …/datasets/{ds}/resolve read only int_std_records and standardized the probe as a person, so an account dataset resolved against nothing. It now picks the corpus and the standardizer by entity_type. decision gains `ambiguous`: candidates in two or more entities each clearing auto_merge, so no single entity is the answer. Every failure was a 409. Now: 409 when the dataset is not yet resolvable (no model, no published config), 422 for an undeclared source (naming the declared ones) or a non-object record, 500 for a model or lake that will not load. The handler's doc, which is the operation description, states the decision values, the status map and that a resolve during a run reads the last committed snapshot. Tests: pg_launch_proof resolves over HTTP (a re-keyed copy finds its original, a stranger is reject, 422 twice); acct_e2e resolves an account copy into its entity and a stranger to reject; a unit test pins the ambiguous rule. Latency, payload limit and metering are #1365. 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 29, 2026 02:02 — with
GitHub Actions
Inactive
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 #529
What
Online resolve (
POST …/datasets/{ds}/resolve) for account datasets: the corpus and the standardizer now followentity_type.decisiongainsambiguousfor when candidates in two or more entities each clearauto_merge. Errors are no longer all 409: 409 when not yet resolvable (no model / no published config), 422 for an undeclared source (naming the declared ones) or a non-object record, 500 for a model or lake that will not load. The handler doc (the operation description) states the decision values, the status map, and that a resolve during a run reads the last committed snapshot.Why
#529's missing list: no HTTP test, every failure a 409, person-only corpus, no ambiguous outcome, undefined behaviour during a run. Its other items, latency, payload limit and metering, need a measurement or a contract choice and are now #1365. Decision: resolve calls don't count toward the record allowance, because they write nothing. Decision: online resolve is launch scope; it already sits in the public contract.
Proof
make checkexit 0 on the branch rebased over #1363 and #1373.pg_launch_proof(real Postgres) resolves over HTTP: a re-keyed copy finds its original, a stranger isreject, an undeclared source and a non-object record are 422.acct_e2eresolves an account copy into Acme's entity and a stranger to reject. Mutation: pointing the account corpus back atint_std_recordsfails it. A unit test pins the ambiguous rule.Risk & rollback
decisioncan now beambiguous, which callers that branch on three values must handle; no external caller exists. Status changes (409→422/500) are the documented contract. Rollback:git revert <merge-sha>.Post-merge ledger
Closed by: agent · session
Claude Code:24d16c2e-fec6-49d8-9797-060338df4848onbrians-MacBook-Pro· 2026-11-29T02:26:34Zmainis 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: — 0945e6d, rust 46213919002 + frontend 46213919008 success
imagesbuilt, or correctly never ran because nothing that goes intoan image changed: — success, run 46213918974
deployconverged — proved by a line the running process emitted, notby the image digest and not by the workflow conclusion: — run 46214211102 success
deploy,drift,kind's nightly leg) is green, or knowingly red for a reason that is notthis change: — infra, devcontainer, marketing preview success on 0945e6d
Donethrough the automation rather than byhand, and the issue closed: — E20 — Public duplicate-check and record-resolution API #529 CLOSED by feat(api): online resolve for account datasets, an ambiguous decision and a typed status map (#529) #1377 via automation
(a skill, a reference, memory) — or nothing new was learned: — resolve now picks the corpus by entity_type, the pattern the Resolution model breadth: audit person/account support and generalize from customer requirements #547 matrix tickets follow
Specific to this change
Context — plan, discoveries, measurements, files
Plan
Discoveries
Measurements
Files
Conflicts with #1363 (the shared dictionary reader in
resolve_blocking) were resolved by keeping both: the reader's errors now map to 500. #871 (typed evidence keys) still owns the untypedevidenceschema.🤖 Generated with Claude Code