Repository · handoffs
id: hf-2026-10-08-finish-ci-verification-for-the-startup-refresh-memory-guard url: url://handoff/handoffs/hf-2026-10-08-finish-ci-verification-for-the-startup-refresh-memory-guard title: Finish CI verification for the startup refresh memory guard summary: Watch the required CI gate on the updated open BuildTestEmbedded PR. Both collecting mutations failed the memory guard, and all six local four-test batches passed on first attempts. The test-only head is 46c22281fb1ed3ca0f889f4abd1cc4bb8ca74519; CI remains in progress at the task time boundary. Do not merge or deploy. created: 2026-10-08T10:38:48.967Z completed: null dependencies:
Handoff: Finish CI verification for the startup refresh memory guard
Written 2026-10-08 10:37 UTC.
RE-VERIFY: This is a write-time snapshot. Query gh pr view https://github.com/CodexCoder21Organization/BuildTestEmbedded/pull/1301 --json state,headRefOid,mergeStateStatus,statusCheckRollup,mergedAt before acting. Do not merge, enqueue, bypass checks, delete branches, or deploy.
Mission
The user asked to carry out fix1301r4: add the public memory regression guard the fresh review requested, prove the collecting regression red and streaming green on CLI 0.0.112 and 0.0.121, run three four-test first-attempt gates per pin, update the existing PR, and watch CI. The 75-minute task boundary leaves only CI verification pending.
Found and completed
- Public constructor allowances and synchronous rewrite callbacks support a real guard. The former default-window/no-public-seam conclusion was refuted. Test holds 24 runs fixed, configures 32,768 protected positions and 16 MiB tail allowance, seeds 65,537 compact valid rows, and commits 16 renewals while staged. a one-record threshold and explicit journal window metadata prevent retention of an unnecessary startup prefix without reducing the workload.
- Live heap is sampled after forced GC at positions 1, 4,000 through 32,000 within the first active rewrite. A 2 MiB bound was selected before measurements: two growable 256 KiB output buffers may each retain 512 KiB, plus 1 MiB fixed-state allowance. The test checks exact sampling positions, publication, one refresh, window reached, and first-rewrite node work. The writer is joined during cleanup.
- Equivalent collecting mutation retains rowIndex/change inputs until finish, then replays original streaming construction before sorting runs. First 112 attempt RED: 4,950,824 bytes growth,90553ms; first 121 RED: 4,951,976 bytes,90836ms. Bound 2,097,152 bytes. All six automatic attempts failed this memory assertion; no workload assertion failure. An earlier unmeasured startup OOM probe is explicitly not evidence. Both CLIs hardcode three attempts; successful gates must be first-attempt passes.
- Streaming restored. Both pins passed all three four-test batches on first attempts: 24/24 executions total. Guard112 durations 153956/117287/139624ms; 121 durations 94329/96200/128870ms; unchanged 240s timeout. Other tests: testProjectionStartupRefreshBoundsIndexReadsAndStagedRowPasses, projectionStartupCompactionUnderSustainedProductionScaleLoad, projectionChangeFeedReadRemainsAvailableDuringContinuousMaintenance. Successful CLI logs omit console samples, so numeric green samples are unavailable; all bound/position/work assertions passed.
- Independent test and adversarial review approved. Final source diff adds only tests/testProjectionStartupRefreshBoundsRetainedClassificationMemory.kts. Original 112 pins and streaming source preserved. Fresh fetch/rebase left 46c22281fb1ed3ca0f889f4abd1cc4bb8ca74519 unchanged; worktree clean. PR verified OPEN at expected old head, pushed force-with-lease, body patched using gh api-F body file and re-read identical. Review round 4 added and former open/no-heap-test note removed.
- Branch CI watcher 0.0.21 plain--pr started. Current snapshot state=OPEN, mergeStateStatus=BLOCKED, head=46c22281fb1ed3ca0f889f4abd1cc4bb8ca74519. Required bld-build has not appeared; four bld-test-shard checks in progress. Watcher also reports a non-dispatching kotlin-build-ci-test app, backed by mature queued/no-run base suites; it treats this as existing non-dispatch and does not re-request. Do not infer a test failure from pending state.
- Remote 112 backups are superseded by complete local gates. Six jobs failed before build due git absent, then archive checkout without.git. Two later jobs were cancelled at parent direction after a repository-ownership error before build. All eight are terminal and all helpers stopped. This produces no test verdict and leaves no test requirement pending. Remote workflow branches/logs are linked below. Future helper setup needs git installed before checkout, full history, explicit main fetch, and a correct ownership configuration for the job's own checkout; that last adjustment was not tested.
Relevant PRs and refs
| Repo | Branch | Verified remote head | PR | Contents and state |
|---|---|---|---|---|
| BuildTestEmbedded | fix/startup-refresh-one-pass-rewrite | 46c22281fb1ed3ca0f889f4abd1cc4bb8ca74519 | https://github.com/CodexCoder21Organization/BuildTestEmbedded/pull/1301 | Open PR; test only;24/24 required local test executions pass |
| BuildTestEmbedded | wip/sol-fix1301r4-2026-10-08 | 892c02105bb84fb75402df3a0f03908f241f2d43 | no PR | Experimental collecting-mutation history and restored streaming source;121 pins;not for merging |
| BuildTestEmbedded | wip/sol-fix1301r4-final-2026-10-08 | 46c22281fb1ed3ca0f889f4abd1cc4bb8ca74519 | no PR | Clean test-only checkpoint matching PR |
| BuildTestEmbedded | wip/sol-fix1301r4-evidence-2026-10-08 | a336855c8e42ccee4b5915280a267f0e03d87da1 | no PR | Verification/review/helper notes;not for merging |
The backup ref inventory below is verified by git ls-remote; each is a throwaway workflow and is not for merging. Initial/fixed six are setup failures; repo-labelled two are cancelled before build/test. No PR exists for these refs.
| Branch URL | Remote SHA | Actions run URL |
|---|---|---|
| https://github.com/CodexCoder21Organization/BuildTestEmbedded/tree/gha-run/fix1301r4-112-gate1 | 89bcc2ae68f99337df0e085f97d75b74f44489aa |
https://github.com/CodexCoder21Organization/BuildTestEmbedded/actions/runs/37763081811 |
| https://github.com/CodexCoder21Organization/BuildTestEmbedded/tree/gha-run/fix1301r4-112-gate2 | d9ffc827c5baa33d5ac77d7877feb058a79fab28 |
https://github.com/CodexCoder21Organization/BuildTestEmbedded/actions/runs/37763148509 |
| https://github.com/CodexCoder21Organization/BuildTestEmbedded/tree/gha-run/fix1301r4-112-gate3 | 01aff72d16738a83d4f2ec13fc830b0685753b2f |
https://github.com/CodexCoder21Organization/BuildTestEmbedded/actions/runs/37763082597 |
| https://github.com/CodexCoder21Organization/BuildTestEmbedded/tree/gha-run/fix1301r4-112-gate1-fixed | 76a47ac73c7846daa735172f50c6cdc70e8059b1 |
https://github.com/CodexCoder21Organization/BuildTestEmbedded/actions/runs/37763450488 |
| https://github.com/CodexCoder21Organization/BuildTestEmbedded/tree/gha-run/fix1301r4-112-gate2-fixed | 70b046a8de290431aea366b073edbaa69da0909a |
https://github.com/CodexCoder21Organization/BuildTestEmbedded/actions/runs/37763451210 |
| https://github.com/CodexCoder21Organization/BuildTestEmbedded/tree/gha-run/fix1301r4-112-gate3-fixed | 8d7844dcbc0893c713cd9445c3f28b785884c6fb |
https://github.com/CodexCoder21Organization/BuildTestEmbedded/actions/runs/37763450602 |
| https://github.com/CodexCoder21Organization/BuildTestEmbedded/tree/gha-run/fix1301r4-112-gate1-repo | 9a7dc1778a2e4b97ad56c40ff3591c733ae45e4e |
https://github.com/CodexCoder21Organization/BuildTestEmbedded/actions/runs/37763723724 |
| https://github.com/CodexCoder21Organization/BuildTestEmbedded/tree/gha-run/fix1301r4-112-gate2-repo | 5d5f627f5a2cf575666617aec6e6731a65577ab4 |
https://github.com/CodexCoder21Organization/BuildTestEmbedded/actions/runs/37763723290 |
| no remote ref | none | no run |
No deployment or Maven publication occurred: authorized work and command record contain only test execution, GitHub branch/PR updates and reads. No live service change needs reconciliation.
Next steps
- Re-verify current PR head and checks first; never push to a merged branch.
- Run
coursier launch buildwatchman:build-watchman:0.0.21 -r https://kotlin.directory -- --repo CodexCoder21Organization/BuildTestEmbedded --pr 1301. Plain PR watch only; no merge modes. Required gate is bld-build. Investigate any actual failing check using local reproduction, not blind job re-queues. - Once the requested CI gate is green, report completion and complete this handoff. Stop with PR open; merging/deployment require explicit user instruction.
Operational notes
Verification notes, independent review, brief, slot wrapper and challenge drafts are preserved under handoff-notes/fix1301r4. Experimental history is separate from PR. Every local scripts/test.bash call used one of three mkdir build slots with bounded waits and EXIT release. The root local gates all finished; the local CI watcher will be stopped at the task boundary, while actual PR CI continues.
Challenge CLI was not invoked because it auto-enqueues/merges, forbidden by this brief; drafts retain automatic-retry and remote-helper findings. The canonical handoff README still contains a legacy git-PR merge section contradicting current service-only skill; this handoff uses the central service with no PR or merge.
Generated jars, dependency caches, and raw test-result files were deliberately omitted from source snapshots under the user's artifact policy. All measured outcomes, failure mechanism, reproducible source and reusable scripts are retained in notes; full remote setup logs are available through the Actions links. Local raw logs were never treated as portable references.
Current branch CI run: https://github.com/CodexCoder21Organization/BuildTestEmbedded/actions/runs/37764042890 (in progress at10:37 UTC). The local watcher was stopped at the task boundary; actual branch CI was left running.