fix(results): snapshot validated application authority - #277
Draft
seonghobae wants to merge 20 commits into
Draft
Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This was referenced Aug 20, 2026
seonghobae
changed the base branch from
main
to
fix/recovery-evidence-weakref-coverage-b84f0c9
August 20, 2026 10:06
seonghobae
added a commit
that referenced
this pull request
Sep 2, 2026
Non-destructively compose current semantic-naming Draft #324 with exact authority predecessor #27722556ad. The merge tree takes Result Application production/tests from #277, which now contains the semantic private vocabulary plus public compatibility guards, while preserving #324-owned architecture/changelog/doctoring/gap documentation. No predecessor check or review evidence transfers.
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.
ACTIVE Draft — bounded result-application authority + semantic core
Protected
main@b84f0c94154043a3473939c01bb6471de5a129aeremains unchanged. This lane is an explicit non-destructive child of coverage-root#233@5951b7a4d779903b8924abaef2a387cae50b7f54. Current exact head is5d9407a234794ed02444b0f143bba80af7d09045.Bounded authority repair
The branch captures caller-owned result/checkpoint authority before store/callback hooks, reconstructs exact package-owned checkpoint snapshots, recursively detaches exact JSON primitives under finite structural/text budgets, rejects behavior-bearing/malformed/cyclic/non-finite authority, preserves transaction-local cursor revocation and checkpoint conflict semantics, and does not claim distributed exactly-once delivery.
The resource-boundary repairs are test-first:
ef233fe94114ab216adae444cf7503d204168979proved multibyte text could exceed the intendedDEFAULT_MAX_JSONL_LINE_BYTESbudget when Python code points were counted rather than UTF-8 bytes; GREENf2c94afd4a068fb27db33cb560399c4cf9e0cbceperforms bounded chunked UTF-8 byte accounting;298ffc13d28ef6f9ef2a281a95ce3e6f98a70b51proved exact integer JSON values consumed no text budget ({"n":12345}survived a four-byte snapshot budget);1b1db1ae6ba4923556bac40c512cfd6f8a6b504badditionally requires Python's oversized integer-to-string conversion limit to fail through the same redacted package validation boundary;5d9407a234794ed02444b0f143bba80af7d09045counts decimal integer representation against the finite text budget and convertsValueErrorfrom oversized integer string conversion into boundedValidationErrorevidence.This prevents caller/post-construction-mutated numeric values from bypassing the same finite decoded-record resource boundary enforced for text. The error remains content-redacted (
item.record,<redacted>).Semantic naming / compatibility
The useful source/test delta from later naming Draft #324 remains folded into this earlier Result Application authority owner. Package-owned implementation uses semantic multiword names such as
transaction_cursor,checkpointed_record,record_effect,previous_checkpoint,result_checkpoint,field_name, andvalidation_reason, with_SemanticResultApplicationOutcome(record_applied, result_checkpoint)behind the released compatibility surface.Public compatibility remains test-pinned for
ResultApplicationError(phase=...),ResultApplicationOutcome(applied, checkpoint), andapply_checkpointed_result_in_transaction(cursor, checkpoint_store, consumer_name, item, apply_record).Descendant ancestry
#324 is documentation-only. After this parent advanced, it was non-force restacked to exact head
69520a8a6944ad12b59068739602f674e7f79cab. Fresh comparison from this exact parent reportsbehind_by=0and merge base exactly5d9407a...; the child diff remains onlyARCHITECTURE.md,CHANGELOG.md,docs/doctoring/result-application-semantic-identifiers.md, anddocs/product-technical-gap-baseline.md. No predecessor checks/reviews transfer.Exact-current evidence
Exact-head CI
33659906131and Release Acceptance33659906071are still non-passing. CI materialized all five expected jobs on5d9407a..., but each is queued before checkout withrunner_id=0, no runner/group identity andsteps=[]: container/PostgreSQL100347641140, coverage/docstrings/lint/package100347641486, Python 3.12100347641563, Python 3.10100347641601, and Python 3.14100347641657.This is runner-acquisition/control-plane evidence, not a source failure and not hosted GREEN. Exact evidence was advanced to existing central owner issue
.github#712; no leaf churn or gate weakening is justified merely to retrigger admission.Fresh formal reviews and inline review threads are empty on this exact head. Absence of review is not approval.
Stack and governance
#233 remains the exact predecessor and separately governed. Keep this PR Draft until #233 integrates or is genuinely superseded and this head is reconciled non-destructively to the then-current protected main. Before Ready/merge, regenerate actual-checkout exact-head evidence for supported Python including 3.14, exact 100% owned production statement/branch coverage, 100% public docstrings, PostgreSQL/container/package/reproducibility/security/SAST/release acceptance, zero valid findings/threads, and every then-live governance requirement.
Queued, pending, cancelled, skipped-required, absent, neutral, stale, predecessor, status-only, synthetic, author-only, rate-limited, infrastructure-failed, dismissed, or conclusion-null evidence is non-passing. No force push, destructive rebase, self-approval, gate weakening, or central workaround copy.