Repository navigation
refactor(move): split script publication into record and publisher modules - #4746
Conversation
Size Report
Startup median (7 runs, lower is better):
|
This comment has been minimized.
This comment has been minimized.
97e7c98 to
b71515f
Compare
This comment has been minimized.
This comment has been minimized.
|
This PR is ready at b71515f. The moved code is unchanged. CI (Smoke Tests and Coverage) is still running, so please let it finish green. A wire-compat digest mismatch would show up there. Not blocking, and you can take or leave both:
Merge order: #4744 first, then retarget this PR to main. |
b71515f to
1dd8cca
Compare
This comment has been minimized.
This comment has been minimized.
1dd8cca to
b3d9e32
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
b3d9e32 to
77d7607
Compare
This comment has been minimized.
This comment has been minimized.
|
Re-checked at 77d7607 against #4744 at abfa16f. The three files hold the same code as |
77d7607 to
947c0c6
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
ed7f411 to
37d9099
Compare
This comment has been minimized.
This comment has been minimized.
37d9099 to
bb699e0
Compare
|
This PR is ready at bb699e0: the rebase onto #4744's 586896a is still move-only. A sorted-line comparison shows no line added, dropped or edited, and the moved code includes the new staging-path validation, recovery hints and cleanup handling from 586896a. The wire-compat ledger entries follow the moved declarations, and ADR 0016 line 9 is accurate. No review threads are open. The diff touches only the client-side script publication modules in Before merge: merge #4744 first, then retarget this PR to main. If #4744 changes again, this PR needs the same rebase. |
This comment has been minimized.
This comment has been minimized.
8c31fee to
8b154c4
Compare
This comment has been minimized.
This comment has been minimized.
|
This PR is ready at 8b154c4: the rebase onto #4744's ae1127a is still move-only, the conflict is gone, and the moved code matches ae1127a (the staging check is absent here too). Wire-compat, coverage and integration jobs pass. The label is back on. Not blocking: Before merge: merge #4744 first, then retarget this PR to main. #4744 still has four docs and hint fixes to land, so expect one more rebase. |
8b154c4 to
c0e6854
Compare
|
This PR is still ready at c0e6854: the rebase onto #4744's 79a97c8 is move-only (the same function bodies, including the new hint placeholder logic), and wire-compat, layering, coverage and integration jobs pass. The label stays. Not blocking: Before merge: merge #4744 first, then retarget this PR to main. #4744 has one more small fix pending, so expect one more rebase. |
This comment has been minimized.
This comment has been minimized.
c0e6854 to
a33de26
Compare
|
This PR is still ready at a33de26: the rebase onto #4744's 1925845 is move-only. All 50 top-level declarations and their comments match 1925845 exactly once exports are unwrapped; only declaration order changes. CI is green, and the label stays. Before merge: merge #4744 first, then retarget this PR to main. #4744 has one more small fix pending, so expect one more rebase. |
This comment has been minimized.
This comment has been minimized.
a33de26 to
76b8b43
Compare
|
This PR is still ready at 76b8b43: the rebase onto #4744's da315b7 is move-only. All 52 top-level declarations match da315b7 exactly once export modifiers are stripped (17 destination, 17 record, 18 publisher), the external imports match, and Before merge: merge #4744 first, then retarget this PR to main. |
This comment has been minimized.
This comment has been minimized.
76b8b43 to
c141bea
Compare
|
This PR is still ready at c141bea: the rebase onto #4744's 52bde73 is move-only. All 50 top-level declarations match 52bde73 verbatim once imports and export modifiers are excluded, and the runtime changes stay in the three remote modules. CI is green, and the label stays. Before merge: merge #4744 first, then retarget this PR to main. |
c141bea to
21dd597
Compare
This comment has been minimized.
This comment has been minimized.
|
This PR is still ready at 21dd597: the rebase onto #4744's b673232 is move-only. All 50 declarations, including bodies and comments, match b673232 once export modifiers are removed, and production changes stay in the three remote modules. All checks are green, and the label stays. Before merge: merge #4744 first, then retarget this PR to main. |
…dules Move-only. session-script-destination.ts mixed three concerns, so two move out by owner: - script-publication-record.ts: the record type, its path, parse, read, write, create, remove and the record lock; - script-version-publisher.ts: publishScriptVersion, staging, commit and interrupted-commit settlement. session-script-destination.ts keeps the remote open, receipt settlement and the delivery-failure disclosure. Declarations move unchanged; the wire-compat ledger follows the two moved declarations. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
21dd597 to
d73edd9
Compare
Apex Sentinel · ✅ Approve · review of
|
| Command | What it does |
|---|---|
@apex-sentinel-staging note <context> |
Adds context; Sentinel re-checks the cited code |
@apex-sentinel-staging pivot <why> |
Says the finding is wrong; Sentinel re-checks the cited code |
@apex-sentinel-staging like |
Marks the finding as useful |
@apex-sentinel-staging dislike <why> |
Marks it as not useful, so it is not raised again |
On this conversation, comment @apex-sentinel-staging review to run a full review once again.
Summary
Move-only refactor, stacked on #4744 (base:
fix/script-repeat-from-record). After #4744 merges, retarget this PR tomain.session-script-destination.tsmixed three concerns. Two of them move out by owner, with no behavior change:script-publication-record.ts: the record type, its path, parse, read, write, create, and remove, plus the record lock.script-version-publisher.ts:publishScriptVersion, staging allocation and release, commit, interrupted-commit settlement, and the staged-file check.session-script-destination.tskeeps the remote open, receipt settlement, and delivery-failure disclosure.Declarations move unchanged. The only edits are the new import blocks and
exporton the symbols that now cross files. The wire-compat surface, closure waiver, and ledger followpublishScriptVersionandPublishOutcometo their new file. Their digests change only because of the move and theexportkeyword, and the acks record that as a move.How the move was verified: a split from one file into three cannot show as renames with
git diff -M90%. I verified it by comparing the moved blocks instead. The old file's lines, sorted with imports andexportkeywords removed, equal the same lines from the three new files. The only difference is blank lines.The tests drive the public delivery route, so they stay where they are. 7 files, +640/−606 (incl. the ADR 0016 owner line).
Validation
At
d73edd9824(rebased onto #4744 at81fbe880c4):check:layering,fallow audit --base origin/main, andcheck:production-exportsare clean.CI validates the head.
🤖 Generated with Claude Code