Skip to content

refactor(github): await personal and repository publication lifecycle - #168953

Merged
steipete merged 103 commits into
mainfrom
dbasync/sw7d-lifecycle
Oct 11, 2026
Merged

steipete merged 103 commits into
mainfrom
dbasync/sw7d-lifecycle

Conversation

@steipete

@steipete steipete commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Personal and repository publication coordinators still perform receipt transitions, checkpoint preparation, and recovery mutations on the Gateway thread.

User Impact

V2 personal/repository requests and their recovery paths now use the typed worker facade. Accepted internal bookkeeping and GitHub effect observations can settle after action revocation, while another external effect still requires current authority. The common shared coordinator, RPC migration, runtime reporting, and SDK facade are completed by the next slice.

Why This Change Was Made

The typed facade, checkpoint callers, execution callbacks, and recovery owner move together. Coordinators await worker commits and receipt installation; the shared coordinator passes its actual lifetime to its children. Execution bookkeeping uses custody without source reservations and retains the final beforeRun guard. Each further external effect requires current authority.

Eight publication read routes reuse the owning shared-state worker; their duplicate readonly registration, validation, and dispatch are removed with the last adapters. Shared async orphan deferral also moves to its existing worker command in this slice, avoiding an eager pending-results read for empty shared rows. Repository orphan reconciliation returns after its existing empty list read. Retirement checks its reservation once after the final awaited receipt read and holds it through settlement. Checkpoint source preparation reuses the existing action guard instead of wrapping it with duplicate checks. Repository execution checks custody after the complete awaited preparation sequence, avoiding the redundant intermediate check. No new fence, revocation generation, generic batching framework, or reconciliation protocol is introduced.

Checkpoint-preparation failure and stale-request retirement use bookkeeping custody. If a checkpoint becomes available or a session is restored after the observation, the user may need a new publication request. A dispatched marker can remain if the final beforeRun effect guard refuses; that marker does not prove an observed GitHub effect. Original content and recorded GitHub effects remain intact.

S4b’s canonical receipt owner supplies authority facts. The obsolete stale-receipt wrapper is removed; restart confirmation and released opaque-callback diagnostics move in the final slice. Native compatibility routes remain. No schema, stored-data, retention, or update migration is required.

S10 handoff after the complete stack: the parked w6github lane can use host-minted GitHubPublicationRequesterV2 and PersonalGitHubSessionActionV2, with GitHubPublicationTransitionAuthority and typed source/transition operations. This slice is a prerequisite; the complete-stack handoff includes canonical receipt installation before observers and does not claim removal of every final synchronous guard.

Repository execution propagates pending-recovery errors instead of recording a terminal failure while recovery is unsettled.

Immediate repository execution borrows the caller’s branded V2 requester only when its canonical encoded snapshot, including alias bindings, exactly matches the reread row; otherwise it restores a requester, and cleanup releases only the requester execution owns.

All three cold timing exceptions now meet the user’s same-flow warm condition: repository 1.007231831×, shared 1.199174605×, and failed worker-turn preparation 0.572740991×. The original cold results remain reported below. Required follow-up: "pre-warm if a cheap sibling warm-up exists". No product warmup is included.

Stack dependency: S7 slice 6/7, head 4e4245a101952e5af28654540cf34b36bc3fe056, base main. Parent slice merged as c2e1f0f60557475951991e81cc17d38470878b62. The original implementation base remains f9c477e3387116c0b9e7dc35cecfb1f52addf786; the current integration base is c2e1f0f60557475951991e81cc17d38470878b62.

Evidence

Original complete-stack proof source: f33795fc32205414b436f84f06dcd5e924255704, tree 7e949f3b906ebc5e0f70dfa483b22c018c43c3cb. Its tree matches reviewed repair f33795fc32205414b436f84f06dcd5e924255704. post-runtime-repair-deb8cf38/source-relation.json — workerAwaitCorrection: exact twelve unnecessary awaits removed from one worker test; production and every other file equal b6. Actual proof heads retained. Slice1LandingIntegration records the separate remote-verified integrated successor; complete-stack f337 proof remains historical for that successor. Complete-stack results below do not claim a separate execution of this intermediate head.

Current landing candidate: 4e4245a101952e5af28654540cf34b36bc3fe056, tree c247baf3ec8d81b1ffeb20abdfcdb3a8595aa26e, integrated with captured main c2e1f0f60557475951991e81cc17d38470878b62 after S5 merged. All 27 production/test paths in this slice match the prior 3e093e7 source checkpoint byte for byte. The three affected suites passed 69 assertions at 3177896fad36fc55ac2a13220a27955e6eba6604 in 92.298 seconds; their reuse is explicit and no new runtime invocation is claimed.

A complete-path comparison caught 84 retired generic read-adapter lines resurrected by the automatic merge outside the GitHub-prefixed files. The final correction restores exact tested registry/request/validation bytes; superseded f227/0edd heads are not the landing candidates. This is a merge correction, with no SQL change relative to the tested implementation. The complete 27-path comparison replaces the earlier incomplete GitHub-only comparison. Final native T1, type-aware core lint, source contracts and mock-export ratchet pass. T1 falls from raw 623 to 621 and normalized 621 to 619. Knip exits 1 with 57 production and 34 full-tree findings, reproduced on exact current base c2e1; all 37 implicated source files are identical. Original statement counts and timing measurements below retain their actual tested identities.

Historical cold timing exceptions — user-approved warm conditions met. These are the original measurements, not timings of the current landing head.

Flow First-use seconds base → candidate Cold ratio Same-flow warm seconds base → candidate Warm ratio
repository.publish 0.671544942 → 1.581530125 2.355062 0.532329882 → 0.536179602 1.007231831
shared.publish 1.517890779 → 2.351212913 1.549000 0.103586268 → 0.124218022 1.199174605
repository.fail-preparation.worker-turn 0.066537728 → 0.588903527 8.850671 0.020428784 → 0.011700402 0.572740991

Repository and older shared evidence attribute first-use cost to existing compiled-JavaScript inventory/exact-sharing pools. Same-flow repeats amortize the cost; retained pool lifecycle is source-audited. The newer warm campaign did not retain task-worker IDs, so it does not assign every millisecond of shared/failure preparation to a specific worker. All warm ratios are ≤1.5; original cold values remain outside the ordinary duration gate. These are synthetic coordinator timings with setup excluded, not live GitHub or whole-Gateway measurements. Required follow-up: "pre-warm if a cheap sibling warm-up exists". No product warmup is included.

Original implementation diff at a0eaf5e32865e1cc775adae6db9ce6e817970ad6 relative to f9c477e3387116c0b9e7dc35cecfb1f52addf786: production +1253/−448 (1701 changed lines); tests +4/−4 (8 changed lines); docs +6/−6 (12 changed lines).

The recorded GitHub-style comparison uses observed main revision c2e1f0f60557475951991e81cc17d38470878b62 and merge base c2e1f0f60557475951991e81cc17d38470878b62: production +1539/−452 (1991 changed lines); tests +14/−4 (18 changed lines); docs +11/−11 (22 changed lines). This is a pinned comparison, not a claim about current main.

Check Result Tested source and scope Wall / CI seconds Evidence
Slice 6 affected publication suites REUSED 3177896fad36fc55ac2a13220a27955e6eba6604 — Three suites, 69 passing assertions: attribution, repository workflows and repository publication. No runtime rerun is claimed for corrected final 4e4245a. 92.29822895199868 / not measured landing-3177896f/results/completion.json; focused-gateway-vitest.json; slice6-final-4e4245a1.json; s5-landed-child-integration.json; reuse: Lead-approved reuse keeps the actual 3177896 invocation. All three test blobs match final 4e4245a; all 27 production/test paths match source checkpoint 3e093e7. Complete equivalence receipt s5-landed-child-integration.json includes the restored generic read adapters.
Slice 6 final scoped static gates PASS 4e4245a101952e5af28654540cf34b36bc3fe056 — T1 ratchet, type-aware core lint, source contracts and mock-export ratchet. T1 raw 623 → 621; normalized 621 → 619. T1 5.346; core 31.045; contracts 93.343; mock 17.820 (parallel) / not measured landing-4e4245a1/results/static-results.json; database-worker-ratchet.log
Slice 6 final Knip export scan FAIL (inherited) 4e4245a101952e5af28654540cf34b36bc3fe056 — 57 production and 34 full-tree findings reproduce on exact captured base c2e1; all 37 implicated source files are byte-identical. Candidate 108.445; baseline 107.030 / not measured slice6-4e4245a1-inherited-knip.json; baseline-exports-c2e1f0f6/completion.json
Migration closure REUSED 7a695a0f91db5de010a402c9452527b3623a17cc — 12-query census;14 committed-file hash matches. No escaped legacy caller, runtime alias, mutating read or retired route. Source proof only. not measured / not measured post-runtime-repair-deb8cf38/source-relation.json — latestMigrationSourceAudit; reuse: Two reviewed test-only corrections leave production unchanged: b6 personal teardown and f337 worker read awaits. Actual executed head retained; affected worker tests/types rerun separately.
Common6 RAW TURN workload and current source bridge REUSED c043a016383fe39faf5e7228d94426b59b28e002 — Four alternating pairs against fcb95c2; eight functional passes. Lead accepted RAW extra-pair whole decrease; first+234 and combinedstartup+216.5 remain explicit below. Owner duration is a separate gate. Phase durations in comparison; total suite wall time not recorded here / not measured common6-c043a016-owner-audit.md; common6-c043a016-owner-audit.json; renewal-7914382e/evidence/results/common6/comparison.json; final-custody-source-bridge-5b19be85.md; repair-source-bridge-16e1cb02.md; reuse: The accepted custody and repair source bridges exclude both changed production modules from all eight common workload samples, through current lifecycle d4522c2. Actual measured heads and all attribution limitations are retained. Lead accepted requester-reuse applicability to currenta0eaf5e3 by path exclusion: no repository execution on the common first/warmed workload; original measurement unchanged.
Worker fixture — Node and Bun PASS f33795fc32205414b436f84f06dcd5e924255704 — Node 11/11 and Bun 11/11; zero failed/pending/skipped/todo. Exact final source remained stable. Validates the twelve synchronous-read await removals. Node 30.823; Bun 28.180561 / not measured renewal-f33795fc/evidence/results/runtime/runtime-results.json; bun/runtime-results.json; both worker-fixture-vitest.json reports
Shared-publication tests REUSED 7a695a0f91db5de010a402c9452527b3623a17cc — Shared 23/23 and boundary 36/36 passed; includes unbranded legacy writer/callback paths. Both suites and production are unchanged through f337. 86.953 / not measured renewal-7a695a0f/evidence/results/runtime/runtime-results.json; bun/runtime-results.json; reuse: Shared/boundary inputs are unchanged through both test-only corrections; actual7a head retained.
Repository/requester aliases PASS a7c683b6829e50b595848a8357a6521557cd1e94 — 58/58: repository 43 and requester aliases 15 at a7. The repository suite includes the legacy callback that observes the publishing transaction. Later 7a bookkeeping tests are separate. 211.293 / not measured renewal-a7c683b6/evidence/results/runtime/runtime-results.json; focused-gateway.log
Identity/profile focused tests PASS f0b9308c8af2f3211f1c2fe357baed96bc596f0d — 14/14 tests across user-channel-identities and user-profiles-multi-account; native single invocation. Historical exact-f0 result. 46.381 / not measured renewal-f0b9308c/evidence/results/runtime/runtime-results.json; state-focused.log
Personal publication — full suite REUSED b6e39b6b5f2c4769ee6ec8d232e02c581eed1ff9 — 50/50, zero failed/pending/skipped/todo. Includes executed legacy personal-writer cases; validates the teardown correction. Source remained exact throughout. 141.705 / not measured renewal-b6e39b6b/evidence/results/runtime/runtime-results.json; focused-gateway-vitest.json; reuse: F337 changes only the separate worker test. Personal suite and all production files are byte-identical to b6; actual executed head retained.
Dedicated SDK type fixture REUSED 22b70997d7b0a5f7c85229b51f5a938f48739a32 — Bun wrapper 1/1 is type-only; f0 SDK test typecheck 54.002s validates its assertions. Legacy runtime coverage is listed separately; no universal parity or inherited-reader claim. 2.703 / not measured renewal-22b70997/evidence/results/bun/runtime-results.json; renewal-f0b9308c/evidence/results/runtime/sdk-test-types.log; reuse: Lead accepted the unchanged SDK fixture through the later source corrections; its actual executed head remains 22b7.
Types, declarations, cycles and dead code REUSED 7a695a0f91db5de010a402c9452527b3623a17cc — Core types, SDK declarations, Madge, configured Knip files/dependencies and canonical all-exports passed. SDK declarations match all 298 original f0 path/hash entries without normalization. git diff --check also passed. core 63.085; dts 105.468; Madge 19.095; Knip 69.662; exports 84.721; diff 0.048 / not measured renewal-7a695a0f/evidence/results/runtime/runtime-results.json; sdk-declaration-comparison.json; exports/runtime-results.json; reuse: Two reviewed test-only corrections leave production unchanged: b6 personal teardown and f337 worker read awaits. Actual executed head retained; affected worker tests/types rerun separately.
SDK API comparison REUSED f0b9308c8af2f3211f1c2fe357baed96bc596f0d — Original 951a→f0 comparison: no entrypoint additions/removals, 7 added exports, 182 reachable changes. Exact 7a declarations equal original f0; b6 is test-only. No new API-diff run. 547.025 / not measured renewal-f0b9308c/evidence/results/runtime/sdk-api.json; sdk-api-evidence.json; renewal-7a695a0f/evidence/results/runtime/sdk-declaration-comparison.json; f0-sdk-declarations-baseline.json; reuse: Lead and metadata verification independently matched all 298 path/hash entries to original f0, including original source-receipt/runtime-results and baseline snapshot hashes. Original API comparison remains applicable to 7a.
Common workload and failure behavior REUSED 7a695a0f91db5de010a402c9452527b3623a17cc — Common:a0→7a, 3 pairs, accepted under attributed turn noise floor/non-turn tolerance. Failure:2c32→7a, 5 pairs, 40/40 tests; cold worker-turn preparation has a user-approved exception after same-flow warm ratio 0.572741; original cold ratio retained. Actual bases, counts and all timings below. Per-phase/per-flow durations below; no total-suite timing claim / not measured renewal-7a695a0f/evidence/results/common7/comparison.json; failure/comparison.json; failure/*/vitest.json; reuse: Two reviewed test-only corrections leave production unchanged: b6 personal teardown and f337 worker read awaits. Actual executed head retained; affected worker tests/types rerun separately.
Earlier Gateway failure FAIL (resolved) deb8cf386e59daf7c84825a0a1b3fe57d7380842 — Original deb8: 131 passed/1 failed. Personal observation failure resolved by 22b7 selected cases (6 passed/44 skipped, 67.978s); full personal suite now passes 50/50 at b6. Original four-file run remains failed. 521.34 / not measured renewal-deb8cf38/evidence/results/runtime/runtime-results.json; focused-gateway.log; renewal-22b70997/evidence/results/runtime/runtime-results.json
Full check:changed — earlier failure FAIL 7a695a0f91db5de010a402c9452527b3623a17cc — Original7a run stopped at counted-line cap1002>1000; later steps did not run. The b6 correction passed the line cap, but this original run remains failed. 6.623 / not measured renewal-7a695a0f/evidence/results/changed/runtime-results.json; changed.log
Full check:changed — lint failure FAIL b6e39b6b5f2c4769ee6ec8d232e02c581eed1ff9 — Original b6 run:31 stages passed, then exactly12 worker-test await-thenable errors stopped lint; later stages did not run in that invocation. Reviewed f337 removed those awaits; the accepted cumulative row records the successful continuation without relabeling this failure. 2623.708 / not measured renewal-b6e39b6b/evidence/results/changed/changed.log; runtime-results.json; lint-diagnostics.json
Check:changed — cumulative completion PASS f33795fc32205414b436f84f06dcd5e924255704 — Lead accepted 31 successful prefix stages at b6 plus all11 native suffix stages at f337. Native command environments preserved; core0 errors/19 warnings, extension/script0 errors, cycles0. Production unchanged; neither original failed run is relabeled as passing. suffix elapsed982.658; command sum979.211; b6 prefix stages timed in original log / not measured renewal-b6e39b6b/evidence/results/changed/changed.log; renewal-f33795fc/evidence/results/changed-native/runtime-results.json; runtime-completion.json; native-plan.json
Same-flow warm timing conditions PASS f33795fc32205414b436f84f06dcd5e924255704 — Shared and failed worker-turn preparation: three alternating pairs each, all native assertions/same-process checks pass. Warm ratios 1.199174605/0.572740991. Repository original repeat ratio 1.007231831 retained. This satisfies the user’s cold-exception condition; cold ratios are not relabeled. Shared median 0.103586268→0.124218022; failure median 0.020428784→0.011700402 / not measured warm-repeat-f33795fc/completion.json; reuse-and-worker-lifecycle-audit.json

CI seconds were not measured. Earlier f0 Gateway verification failed (383 passed/10 failed; 991.429s), leading to requester-abort, pending-recovery and fixture repairs. The deb8 failure and selected 22b7 resolution above retain that history. Executed legacy coverage includes unbranded shared/boundary writer paths at 7a and the repository callback at a7 and the personal writer at b6. The full b6 personal suite executes legacy writer cases with V2 fields stripped; synchronous connection cancel/disconnect fixture shapes were source-inspected. Branded V2 requesters called through old method names are not evidence of legacy behavior. The dedicated SDK fixture is type-only; this evidence does not claim universal writer/callback parity or inherited status-reader compatibility. Full b6 check:changed stopped at twelve await-thenable errors after its preceding type/dead-export stages passed; later checks are now covered by the corrected f337 suffix; the b6 invocation remains failed. Prior7a worker fixture results were Node11/11 in30.596s and Bun11/11 in28.199s; current f337 Node/Bun reruns now pass as listed above. The suffix attempt at f33795fc32205414b436f84f06dcd5e924255704 failed as tooling after 397.502812829s: the external runner dropped native command.env, promoting 19 untouched max-lines warnings to errors. Zero await-thenable errors remained. The corrected runner preserved native plan/environment and all11 suffix steps passed; that tooling failure remains recorded, with no source change. Evidence: renewal-f33795fc/evidence/results/changed/changed.log. Current S6 proof consists of final 4e4245 static/T1 checks and 69 explicitly reused assertions from actual 3177896. The exact native completion records the reused test hashes. Complete 27-path equivalence includes the generic read registry/request/validation owners; superseded f227/0edd integrations were corrected before landing. Knip remains a failed invocation with exact-base inheritance proven. Hosted CI, native review and merge outcomes remain separate; no all-green CI or completed merge is claimed.

Current-head CI run 38143318385 has one failing test root: UI job 114481684259 repeats the mocked-Gateway directory-selection timeout waiting for the reports button. Nine other jobs were cancelled collaterally; their cancellation is not nine additional test failures and leaves that hosted coverage incomplete. CI gate job 114482638732 therefore does not establish a green run.

The exact tested CI merge is d53f0b2142b20667c5283c42af482950544f68f8, with parents bbc5a01970308975f7b9a8bc7a12030f066e9b67 and candidate 4e4245a101952e5af28654540cf34b36bc3fe056. Its entire UI tree matches that CI base. The failing test explicitly uses installMockGateway; this GitHub worker lifecycle does not execute in that flow. The lead classifies the timeout as unrelated UI coverage, also observed in S5 CI. No baseline execution or fix of that UI failure is claimed. The exact candidate native checks and 69 reused assertions remain valid within their recorded scope; they do not fill the cancelled hosted coverage. Evidence: slice6-ui-qualification.json, slice6-4e42-ui.log, slice6-4e42-gate.log, and slice6-4e42-failfast.log.

The ordinary native merge route refused before creating an intent. The lead is attempting the native admin route with slice6-admin-evidence.json; no successful merge or all-green CI is claimed here.

Lifecycle owner: f9c477e3387116c0b9e7dc35cecfb1f52addf786 → a0eaf5e32865e1cc775adae6db9ce6e817970ad6, five alternating pairs, 40/40 behavioral checks. Four ordinary flows pass. The cold exception is conditionally approved and its same-flow repository-repeat condition is met; its raw cold ratio remains outside the ordinary duration gate. Synthetic transport; all-thread totals include worker work.

Flow All-thread SQL base→candidate Requests base→candidate Seconds base→candidate Ratio Disposition
repository.publish 1200→1186 7→26 0.671544942→1.581530125 2.355062 cold exception; warm condition met
repository.publish-second 1116→1115 7→25 0.532329882→0.536179602 1.007232 accepted
repository.recover 787→754 6→16 0.852176847→0.845877565 0.992608 accepted
repository.retire 112→111 5→9 0.054665454→0.053222653 0.973607 accepted
repository.orphan-defer 23→20 0→3 0.010890240→0.009657602 0.886813 accepted

Evidence: renewal-a7c683b6/evidence/results/owner6/comparison.json. Cold overhead is +0.909985183 s from first use of the existing compiled-JavaScript targetDiscoveryLane (inventory) and projectionLane (exact sharing) pools, not TypeScript compilation. The same-flow repository repeat measures 0.532329882→0.536179602 s, ratio 1.0072318314830202. Required follow-up: "pre-warm if a cheap sibling warm-up exists".

Failure paths: 2c32aa6bfa7f9e1dc087d24c5f1cb810d50aebb1 → 7a695a0f91db5de010a402c9452527b3623a17cc, five alternating pairs, ten native invocations ×4/4 = 40/40. SQL/requests decrease in all four flows; cold worker-turn preparation retains its invalid raw ratio; its user-approved exception now has confirmed same-flow warm proof below.

Flow All-thread SQL base→candidate Requests base→candidate Seconds base→candidate Ratio Disposition
repository.fail-preparation.worker-turn 62→33 10→6 0.066537728→0.588903527 8.850671 cold exception; warm condition met
repository.fail-preparation.remote-exec 60→31 10→6 0.048278770→0.030740179 0.636722 accepted
repository.retire.archive 209→109 11→10 0.099715206→0.055456752 0.556151 accepted
repository.retire.reset 205→101 11→10 0.095833510→0.052448064 0.547283 accepted

Synthetic transport; only prepareClaimWorkspace and resumeSessionRequests are timed, excluding setup/verification. The actual baseline is prior 2c32, not the slice parent. Original fixture import failure was fixed by external-support-first ordering, without assertion/production changes. Evidence: renewal-7a695a0f/evidence/results/failure/comparison.json and ten native reports. The original cold delta is +0.522365799 s. Direct same-flow repeats now confirm that first-use cost is amortized; the warm timing and worker-attribution limit are recorded below.

First-use timing caveat: owner6/7 call the coordinator directly with a synthetic client, without real Gateway startup; owner7 orders shared→personal→repository in one process. Older exact a7 worker IDs show target/exact startup in candidate shared publication (~268/249 ms), then ~0.2 ms for those workers in repository; base first use is repository (~247/258 ms). Exact 7a per-run sums for those three publication windows give medians 8.516258→7.690622 s, 15460→13074 SQL, 64→91 requests. They exclude setup and are not whole-workload proof or a gate override. Gateway startup hydrates projectionLane but does not guarantee targetDiscovery warmth. These are compiled-JavaScript workers, not TypeScript compilation. No pool/routing workaround is planned; the user conditionally approved the cold exceptions, requiring same-flow warm ratios <=1.5. All three conditions are now met: repository 1.007232, shared 1.199175, and failed preparation 0.572741. Direct repeats amortize first-use cost; the source audit and attribution limits are recorded below. Required follow-up: "pre-warm if a cheap sibling warm-up exists".

Common6 accepted under RAW TURN: measured fcb95c21306f640aabafc3604be3ed013c9096d3 → c043a016383fe39faf5e7228d94426b59b28e002, four alternating pairs/eight functional passes, valid durations. Initial first-turn +482 triggered pair 4. Pair 4 whole SQL 22161→21977 (−184), requests 3430→3404 (−26); final whole medians 22057.5→21959 (−98.5), 3411.5→3402.5 (−9). Final warmed median −16.7/turn; first-turn remains +234 and combined startup +216.5. The combined-startup decrease criterion does not pass.

Acceptance uses the explicit RAW extra-pair rule and inspected source exclusions; not every indexing difference is a literal phase shift. M1/M2 lack direct source.replace across the workload while M3/M4/all candidates include it. Touched GitHub work is 68→64 SQL / +2 requests with no first/warm publication operation. Source bridges exclude repository execution; they do not validate active-owner timing. Aggregates lack per-request timestamps/arguments; memory-lock attribution uses matching source/operation groups. Evidence: common6-c043a016-owner-audit.md/JSON, renewal-7914382e/evidence/results/common6/comparison.json, custody/repair source bridges.

Historical failures retained: fcb95c2→c043a016 native owner proof passed 40 tests but publication rose +9 SQL, ratio 2.540277; workers were compiled JavaScript (earlier TypeScript explanation corrected). f9c477e→d4522c20 later had cold 1200→1200 SQL/ratio 2.464819, repeated 1116→1129 (+13)/ratio 1.178703 and orphan 23→20/ratio 1.542951. Subsequent requester reuse resolves repeated/orphan gates as the current table shows; the raw cold ratio remains invalid; the current conditional exception and warm proof are recorded above. Original receipts: owner6-compiled-worker-correction.md, renewal-7914382e/evidence/results/owner6/comparison.json, renewal-deb8cf38/evidence/results/owner6/comparison.json.

User-approved cold timing exceptions — warm conditions met. Repository repeat remains the original five-pair f9c477e3387116c0b9e7dc35cecfb1f52addf786 → a0eaf5e32865e1cc775adae6db9ce6e817970ad6 result: 0.532329882→0.536179602 s, ratio 1.007231831. Three new alternating pairs compare shared a0eaf5e32865e1cc775adae6db9ce6e817970ad6 → f33795fc32205414b436f84f06dcd5e924255704 and failed worker-turn preparation 2c32aa6bfa7f9e1dc087d24c5f1cb810d50aebb1 → that same f337 head. All native assertions and same-process checks pass.

Same-flow warm operation Median seconds base→candidate Ratio
shared publication 0.103586268→0.124218022 1.199174605
failed worker-turn preparation 0.020428784→0.011700402 0.572740991

The new campaign also records supplementary cold samples: shared 0.568831818→1.150739805 s (2.022987759×) and failed preparation 0.024539257→0.350373265 s (14.278071459×). These do not replace the original five-pair cold numbers above and are not ordinary duration-gate passes. Direct same-flow repeats amortize first-use work; the source audit confirms that the pool remains alive between repeats. This campaign did not retain task-worker IDs, so it does not assign every millisecond to a specific worker. Prior repository/older shared evidence attributes first-use cost to existing compiled-JavaScript inventory and exact-sharing pools. Setup is excluded; this is synthetic coordinator evidence, not live GitHub or whole-Gateway timing. No new SQL measurement is claimed.

Evidence: warm-repeat-f33795fc/completion.json (SHA256 6dec994d872f40d296a2f34774becf313db58bf566cecb58f5c01a110c64e40c) and warm-repeat-f33795fc/reuse-and-worker-lifecycle-audit.json. Required follow-up: "pre-warm if a cheap sibling warm-up exists". No product warmup is included.

The compatibility claim covers released writer/callback forms. Inherited status-reader limitations are recorded in the final stack PR; this slice does not establish whole-family reader compatibility.

Published-driver × candidate update cell: not required (v4). Publication request/execution/recovery lifecycle moves to awaited workers. The async restart-confirmation helper is introduced but Gateway startup still calls the existing synchronous path until slice 7. Publication lifecycle is not service startup/shutdown; no other v4 trigger.

Include the reviewed requester context and conservative source revocation repairs.
Install canonical worker authority receipts before observers and ordinary replies.
Consume the corrected worker receipt and source contracts.
Preserve existing branch history while carrying reviewed S7 repairs.
Preserve existing branch history while carrying reviewed S7 repairs.
Preserve existing branch history while carrying reviewed S7 repairs.
Preserve existing branch history while carrying reviewed S7 repairs.
Preserve existing branch history while carrying reviewed S7 repairs.
Preserve existing branch history while carrying reviewed S7 repairs.
…pairs

Preserve existing branch history and stage-specific ownership contracts.
Preserve existing branch history and stage-specific ownership contracts.
Preserve existing branch history and stage-specific ownership contracts.
Preserve existing branch history and stage-specific ownership contracts.
Preserve existing branch history and stage-specific ownership contracts.
Preserve existing branch history and stage-specific ownership contracts.
Preserve existing runtime bodies and branch history.
Preserve existing runtime bodies and branch history.
Preserve branch history and carry reviewed API, fixture, and static-gate repairs at their owning slice.
Preserve branch history and carry reviewed API, fixture, and static-gate repairs at their owning slice.
Preserve branch history and carry reviewed API, fixture, and static-gate repairs at their owning slice.
Preserve branch history and carry reviewed API, fixture, and static-gate repairs at their owning slice.
Preserve branch history and carry reviewed API, fixture, and static-gate repairs at their owning slice.
Preserve branch history and carry reviewed API, fixture, and static-gate repairs at their owning slice.
Keep agent-run admission separate from publication mutation authority and preserve the reviewed fixture repairs at their owning boundary.
Keep agent-run admission separate from publication mutation authority and preserve the reviewed fixture repairs at their owning boundary.
@clawsweeper clawsweeper Bot added the proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. label Oct 11, 2026
Base automatically changed from dbasync/sw7d-worker to main October 11, 2026 13:18
@clawsweeper clawsweeper Bot removed the proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. label Oct 11, 2026
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts agents Agent runtime and tooling labels Oct 11, 2026
@openclaw-barnacle openclaw-barnacle Bot removed scripts Repository scripts agents Agent runtime and tooling labels Oct 11, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

Maintainer disposition under the agreed landing policy: the P2 selection-rejection interleaving is an accepted edge case. If another invocation admits the same session/idempotency key during identity preparation, a competing rejection can still clear the first client's local selection/attempt. The admitted durable receipt remains owned by the publication worker. We are deliberately not adding a rejection-time reread or coordination protocol for this recoverable UI bookkeeping race.

The review reports no executed authorization bypass. Current authority checks before GitHub effects remain required; accepted-effect recording is bookkeeping, not permission for another effect. The existing focused authority and publication proof is retained with its stated limits; this disposition does not claim an additional live GitHub revocation test.

@steipete
steipete merged commit c5ccf14 into main Oct 11, 2026
134 of 146 checks passed
@steipete
steipete deleted the dbasync/sw7d-lifecycle branch October 11, 2026 13:48
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 12, 2026
…openclaw#168953)

* refactor(plugin-sdk): share legacy persistence warning budgets

* refactor(github): move personal connection authority to workers

* fix(github): publish connection and receipt revocation facts

* refactor(github): share transaction-local publication transitions

* refactor(github): prepare typed publication source authority

Include the reviewed requester context and conservative source revocation repairs.

* refactor(github): execute publication commands in state workers

Install canonical worker authority receipts before observers and ordinary replies.

* refactor(github): await personal and repository publication lifecycle

Consume the corrected worker receipt and source contracts.

* fix(github): propagate reviewed connection authority repairs

Preserve existing branch history while carrying reviewed S7 repairs.

* fix(github): propagate reviewed connections compatibility and gate repairs

Preserve existing branch history and stage-specific ownership contracts.

* refactor(github): propagate reviewed worker type-cycle repair

Preserve existing runtime bodies and branch history.

* fix(github): propagate reviewed connections gate repairs

Preserve branch history and carry reviewed API, fixture, and static-gate repairs at their owning slice.

* fix(github): preserve publication policy in source slice

Keep agent-run admission separate from publication mutation authority and preserve the reviewed fixture repairs at their owning boundary.

* fix(github): propagate reviewed facts focused repairs

Preserve existing history and carry the reviewed repair at its owning slice.

* refactor(github): simplify publication bookkeeping settlement

Reuse native settlement and retain only consumed connection notifications.

* refactor(github): simplify failed publication bookkeeping

Carry reviewed S7 source and inventory through the existing stack.

* perf(github): reuse the state worker for role authority

* refactor(github): simplify execution bookkeeping authority

* perf(github): reuse state worker for connection reads

* refactor(github): reuse publication worker for lifecycle reads

* perf(github): avoid redundant checkpoint and orphan preparation

* perf(github): reuse resident role authority

* refactor(github): check custody after repository preparation

Remove the redundant intermediate custody check; retain the check after
the awaited receipt read and the existing effect authority checks.

* fix(github): normalize publication requester revocation

Carry the reviewed publication runtime repair through its owning slice.
Preserve existing authority checks and pending recovery outcomes.

* refactor(github): reuse matching prepared publication requester

* fix(github): defer source authority exports to their consumer slice

* fix(github): defer worker exports until operation registration

* refactor(github): stage source authority with its consumers

* fix(github): preserve bounded deferral authority projection

* fix(github): settle deferrals through authority receipts

* test(github): expect host-minted publication requester

* fix(sqlite): classify GitHub worker-only publication operations

* fix(github): preserve migrated publication read dispatch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation gateway Gateway runtime merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant