Skip to content

fix(cache): engage in-flight staging under real contention - #1374

Merged
kalbasit merged 2 commits into
mainfrom
fix-inflight-staging-producer-temp-race
Jun 9, 2026
Merged

kalbasit merged 2 commits into
mainfrom
fix-inflight-staging-producer-temp-race

Conversation

@kalbasit

@kalbasit kalbasit commented Jun 8, 2026

Copy link
Copy Markdown
Owner

Summary

  • The in-flight NAR staging producer opened the holder's download temp file unconditionally; when a cross-pod staging request was observed at download completion, the temp file had already been removed by the post-completion cleanup, so the open failed with ENOENT and the producer logged a WARN error instead of staging — staging never served.
  • produceStagingParts now treats fs.ErrNotExist as a clean no-op (the NAR is already committed to storage; waiters serve from there).
  • stagingActivationPollInterval lowered 1s → 200ms to match the waiter's cadence, so the holder observes a request while the download is still in flight.

Proven green via the contention e2e in the download window across local and s3 (staging activates on the non-holder; byte-identical NARs; no producer WARN).

Test plan

  • task fmt / task lint / task test (race) pass
  • New pkg/cache unit test (red→green)
  • Multi-process e2e: download window green (local + s3)

@kalbasit

kalbasit commented Jun 8, 2026 •

Copy link
Copy Markdown
Owner Author

@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. bug Something isn't working go Pull requests that update go code labels Jun 8, 2026
@coderabbitai

coderabbitai Bot commented Jun 8, 2026 •

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@kalbasit, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 42 minutes and 30 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 88a900b7-901e-4d4f-a877-76865f163342

📥 Commits

Reviewing files that changed from the base of the PR and between 6005f3e and 9b3c140.

📒 Files selected for processing (9)
  • dev-scripts/test-inflight-staging-contention-e2e.py
  • openspec/changes/archive/2026-06-08-fix-inflight-staging-producer-temp-race/.openspec.yaml
  • openspec/changes/archive/2026-06-08-fix-inflight-staging-producer-temp-race/design.md
  • openspec/changes/archive/2026-06-08-fix-inflight-staging-producer-temp-race/proposal.md
  • openspec/changes/archive/2026-06-08-fix-inflight-staging-producer-temp-race/specs/inflight-nar-staging/spec.md
  • openspec/changes/archive/2026-06-08-fix-inflight-staging-producer-temp-race/tasks.md
  • openspec/specs/inflight-nar-staging/spec.md
  • pkg/cache/inflight_staging.go
  • pkg/cache/inflight_staging_producer_internal_test.go
📝 Walkthrough

Walkthrough

Reduce stagingActivationPollInterval from 1s to 200ms and make produceStagingParts treat a missing temp file as a clean no-op; add spec/design/docs, a unit test validating the no-op, and e2e harness updates (larger default package, upstream override, URL redaction, clearer failure hint).

Changes

Inflight NAR Staging Race Fix

Layer / File(s) Summary
Specification updates
openspec/specs/inflight-nar-staging/spec.md, openspec/changes/archive/.../specs/inflight-nar-staging/spec.md, openspec/changes/archive/.../.openspec.yaml
Inflight NAR staging spec clarified: holder begins staging only when observing a cross-pod waiter request via staging_state; if the request is detected after download completion, staging is a clean no-op; local locker replicas never stage.
Design rationale and tasks
openspec/changes/archive/.../design.md, openspec/changes/archive/.../proposal.md, openspec/changes/archive/.../tasks.md
Design document, proposal, and task checklist describing the race, goals (graceful no-op, prompt activation), decisions (D1–D3), risks/trade-offs, migration plan, and verification artifacts.
Producer polling and error handling
pkg/cache/inflight_staging.go
Staging activation poll interval shortened from 1s to 200ms. produceStagingParts treats os.Open(...)=fs.ErrNotExist as a debug-only no-op and returns nil; other os.Open errors still propagate.
No-op validation test
pkg/cache/inflight_staging_producer_internal_test.go
New unit test TestProduceStagingParts_NoOpWhenDownloadAlreadyCompleted ensures produceStagingParts succeeds without persisting staging parts when the temp .nar file is absent.
E2E test harness updates
dev-scripts/test-inflight-staging-contention-e2e.py
E2E contention script: default package changed to nixpkgs#gcc-unwrapped, added redact_url() helper, optional upstream cache substitution via NCPS_E2E_UPSTREAM_URL/NCPS_E2E_UPSTREAM_KEY, and clearer failure hint advising a larger --package so the NAR download outlasts multiple poll ticks.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~22 minutes

Possibly related PRs

  • kalbasit/ncps#1356: Related to holder-side staging/reclamation after staging succeeds; interacts with produceStagingParts behavior.
  • kalbasit/ncps#1353: Introduced holder activation logic and stageInflightNar; this PR refines polling and open-file semantics used there.
  • kalbasit/ncps#1354: Adds the cross-pod waiter/reader that consumes staged parts; changes here affect that orchestration pipeline.

Suggested labels

size:M, merge-stack

Poem

🐰 A temp file hopped away in the night,
The holder polled slow and caused a small fright.
Two hundred milliseconds now keep the beat,
Missing files are graceful — no WARN, just neat.
Hooray — staging sings without missing a bite!

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 75.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and specifically describes the main change: fixing in-flight staging to work correctly under real contention conditions.
Description check ✅ Passed The description is directly related to the changeset, explaining the problem (temp file race), the solution (treat ENOENT as no-op, lower poll interval), and verification approach.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Comment @coderabbitai help to get the list of available commands and usage tips.

@dosubot

dosubot Bot commented Jun 8, 2026 •

Copy link
Copy Markdown

Documentation Updates

1 document(s) were updated by changes in this PR:

NAR File Download and Streaming
View Changes
@@ -83,9 +83,9 @@
 
 When `InflightStagingEnabled()` is true and a distributed locker is configured, the holder pod (the pod that wins the download lock and initiates the upstream NAR download) launches a background staging producer via `stageInflightNar()` to make in-flight bytes available to other pods in the cluster. This addresses the cross-pod coordination problem: once a holder begins downloading a NAR, other pods requesting the same NAR cannot serve the same-pod temp-file streaming path and must wait for the download to complete. The in-flight staging mechanism allows cross-pod readers to serve a complete NAR during the holder's download without waiting.
 
-**Activation mechanism**: The staging producer polls `staging_state` on a coarse interval (1 second, `stagingActivationPollInterval`) looking for a cross-pod waiter's "requested" status. It remains dormant until a request appears, so single-reader downloads have zero overhead—no staging occurs unless a waiter appears.
-
-**Part production process**: Once activated, `produceStagingParts()` tails the holder's temp file from offset zero using `fileAvailableReader`, which naturally backfills already-written bytes and appends new bytes as they arrive. It writes fixed-size part-objects to shared storage (default 8 MiB parts, configurable via `--cache-inflight-staging-part-size` or `defaultInflightStagingPartSize` constant). The use of `fileAvailableReader` ensures the staging producer blocks until bytes are available in the temp file and returns `io.EOF` once `ds.finalSize` is reached, allowing the staging producer to seamlessly handle both the backfill and append phases.
+**Activation mechanism**: The staging producer polls `staging_state` on a tight interval (200ms, `stagingActivationPollInterval`) looking for a cross-pod waiter's "requested" status. It remains dormant until a request appears, so single-reader downloads have zero overhead—no staging occurs unless a waiter appears. The short interval ensures the holder observes the request while the download is still in flight; otherwise a fast download finishes first and staging never engages (the temp file is gone before the producer can tail it). The 200ms interval matches the waiter's own poll interval.
+
+**Part production process**: Once activated, `produceStagingParts()` tails the holder's temp file from offset zero using `fileAvailableReader`, which naturally backfills already-written bytes and appends new bytes as they arrive. It writes fixed-size part-objects to shared storage (default 8 MiB parts, configurable via `--cache-inflight-staging-part-size` or `defaultInflightStagingPartSize` constant). The use of `fileAvailableReader` ensures the staging producer blocks until bytes are available in the temp file and returns `io.EOF` once `ds.finalSize` is reached, allowing the staging producer to seamlessly handle both the backfill and append phases. If the staging request is observed after the download has already completed (the temp file has been removed by the post-completion cleanup), the producer treats this as a clean no-op: the NAR is already committed to shared storage and cross-pod waiters serve it from there, so staging is unnecessary. This prevents spurious errors when a fast download finishes before the staging producer can engage.
 
 **Progress tracking**: After each part is written to shared storage via `c.narStore.PutStagingPart()`, `advanceStagingParts()` increments `staging_state.parts_available` and records the temp file's native compression (`ds.tempFileCompression`, D9) so cross-pod readers can transcode at parity with same-pod reads. This progress tracking is transactional: the staging producer advances `parts_available` only after a part-object is durably written to shared storage, ensuring cross-pod readers never attempt to fetch parts that don't exist yet.
 

How did I do? Any feedback?  Join Discord

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request resolves a race condition and activation delay in the in-flight NAR staging feature. It shortens the staging activation poll interval to 200ms and ensures that if a download completes before staging begins, the producer gracefully no-ops instead of logging a warning error. Additionally, the end-to-end test script is updated to use a larger default package and support upstream overrides. The review feedback suggests minor improvements: using os.ErrNotExist to avoid an extra import, simplifying the unit test's non-existent file setup, and adding a warning log in the Python script for partially configured upstream environment variables.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread pkg/cache/inflight_staging.go Resolved
Comment thread pkg/cache/inflight_staging.go Resolved

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@dev-scripts/test-inflight-staging-contention-e2e.py`:
- Around line 158-161: The current logic reads NCPS_E2E_UPSTREAM_URL into
upstream_url and NCPS_E2E_UPSTREAM_KEY into upstream_key and silently ignores a
partial override; update the block that builds args (where upstream_url,
upstream_key, and args are used) to validate both env vars together and fail
fast when only one is present: if exactly one of upstream_url or upstream_key is
set, print/log a clear error and exit (raise SystemExit) so the script fails
deterministically; otherwise, when both are set, append ["--cache-url",
upstream_url, "--cache-public-key", upstream_key] to args as before.
- Around line 164-165: The log builds a string that includes upstream_url
verbatim (see the f-string using variables upstream_url and upstream_key) which
can leak secrets; instead parse and sanitize upstream_url before including it in
the logged string — remove userinfo (username:password@) and strip or redact the
query/component containing credentials, then use the sanitized value in the
f-string (or replace with a fixed placeholder like "<redacted_upstream>") when
constructing the message that includes "upstream={...}". Ensure the sanitization
logic is applied where the f-string is composed so only non-sensitive parts are
logged.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: eba78154-79cc-4100-80ba-25629174ffdb

📥 Commits

Reviewing files that changed from the base of the PR and between 77512c7 and 02fa39f.

📒 Files selected for processing (9)
  • dev-scripts/test-inflight-staging-contention-e2e.py
  • openspec/changes/archive/2026-06-08-fix-inflight-staging-producer-temp-race/.openspec.yaml
  • openspec/changes/archive/2026-06-08-fix-inflight-staging-producer-temp-race/design.md
  • openspec/changes/archive/2026-06-08-fix-inflight-staging-producer-temp-race/proposal.md
  • openspec/changes/archive/2026-06-08-fix-inflight-staging-producer-temp-race/specs/inflight-nar-staging/spec.md
  • openspec/changes/archive/2026-06-08-fix-inflight-staging-producer-temp-race/tasks.md
  • openspec/specs/inflight-nar-staging/spec.md
  • pkg/cache/inflight_staging.go
  • pkg/cache/inflight_staging_producer_internal_test.go

kalbasit added a commit that referenced this pull request Jun 9, 2026
Address review feedback:
- Use os.ErrNotExist instead of fs.ErrNotExist in produceStagingParts,
  dropping the io/fs import (os is already imported).
  (threads PRRT_kwDONV6tZs6H_VzW, _Vze)
- Simplify the no-op test: point ds.assetPath at a never-created path
  under the temp dir instead of creating then deleting a temp file.
  (thread PRRT_kwDONV6tZs6H_Vzi)
- Contention driver: warn loudly when only one of NCPS_E2E_UPSTREAM_URL /
  NCPS_E2E_UPSTREAM_KEY is set (partial override is silently ignored), and
  redact any userinfo/query from the upstream URL before logging it.
  (threads PRRT_kwDONV6tZs6H_Vzl, _X7W, _X7k)
@kalbasit
kalbasit force-pushed the fix-inflight-staging-producer-temp-race branch from 02fa39f to 6005f3e Compare June 9, 2026 00:10

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

♻️ Duplicate comments (1)
dev-scripts/test-inflight-staging-contention-e2e.py (1)

175-183: ⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Fail fast on partial upstream override instead of warning and continuing.

If only one of NCPS_E2E_UPSTREAM_URL / NCPS_E2E_UPSTREAM_KEY is set, continuing with defaults can mask config mistakes and produce non-deterministic runs. Exit immediately (raise SystemExit(...)) when the pair is incomplete.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@dev-scripts/test-inflight-staging-contention-e2e.py` around lines 175 - 183,
The current check that warns when only one of upstream_url/upstream_key is set
should instead fail fast: inside the bool(upstream_url) != bool(upstream_key)
branch (where log(...) and Y are used), raise SystemExit with a clear error
message describing that both NCPS_E2E_UPSTREAM_URL and NCPS_E2E_UPSTREAM_KEY
must be provided together; remove or replace the existing log-only behavior so
the script exits immediately on a partial upstream override.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Duplicate comments:
In `@dev-scripts/test-inflight-staging-contention-e2e.py`:
- Around line 175-183: The current check that warns when only one of
upstream_url/upstream_key is set should instead fail fast: inside the
bool(upstream_url) != bool(upstream_key) branch (where log(...) and Y are used),
raise SystemExit with a clear error message describing that both
NCPS_E2E_UPSTREAM_URL and NCPS_E2E_UPSTREAM_KEY must be provided together;
remove or replace the existing log-only behavior so the script exits immediately
on a partial upstream override.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 3ee1d8ff-b046-4422-9029-d92b9927e492

📥 Commits

Reviewing files that changed from the base of the PR and between 02fa39f and 6005f3e.

📒 Files selected for processing (9)
  • dev-scripts/test-inflight-staging-contention-e2e.py
  • openspec/changes/archive/2026-06-08-fix-inflight-staging-producer-temp-race/.openspec.yaml
  • openspec/changes/archive/2026-06-08-fix-inflight-staging-producer-temp-race/design.md
  • openspec/changes/archive/2026-06-08-fix-inflight-staging-producer-temp-race/proposal.md
  • openspec/changes/archive/2026-06-08-fix-inflight-staging-producer-temp-race/specs/inflight-nar-staging/spec.md
  • openspec/changes/archive/2026-06-08-fix-inflight-staging-producer-temp-race/tasks.md
  • openspec/specs/inflight-nar-staging/spec.md
  • pkg/cache/inflight_staging.go
  • pkg/cache/inflight_staging_producer_internal_test.go
✅ Files skipped from review due to trivial changes (4)
  • openspec/changes/archive/2026-06-08-fix-inflight-staging-producer-temp-race/proposal.md
  • openspec/changes/archive/2026-06-08-fix-inflight-staging-producer-temp-race/design.md
  • openspec/changes/archive/2026-06-08-fix-inflight-staging-producer-temp-race/.openspec.yaml
  • openspec/changes/archive/2026-06-08-fix-inflight-staging-producer-temp-race/tasks.md
🚧 Files skipped from review as they are similar to previous changes (2)
  • openspec/specs/inflight-nar-staging/spec.md
  • pkg/cache/inflight_staging_producer_internal_test.go

Base automatically changed from test-harness-coverage-audit to main June 9, 2026 00:16
@dosubot dosubot Bot added size:XXL This PR changes 1000+ lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Jun 9, 2026
kalbasit and others added 2 commits June 9, 2026 00:16
The contention e2e (test-inflight-staging-contention) proved in-flight
NAR staging never served on real downloads, due to two coupled defects
in the staging holder path:

1. The producer opened ds.assetPath unconditionally. When a cross-pod
   waiter's staging request was observed only at download completion
   (the <-ds.done branch of waitForStagingRequest), the holder's temp
   file had already been removed by the post-completion cleanup, so the
   open failed with ENOENT and the producer logged a WARN error instead
   of staging anything. produceStagingParts now treats fs.ErrNotExist as
   a clean no-op: the temp file is only ever removed after the download
   completes and the NAR is committed to shared storage, so cross-pod
   waiters serve the finished NAR from storage. Any other open error
   still propagates.

2. stagingActivationPollInterval was 1s, but staging requests are
   recorded only by cross-pod waiters (markStagingRequested is called
   solely from pollForDownloadOrTakeOver) and the holder learns of them
   only by this poll. A download finishing within one tick never had
   staging engage. Lowered to 200ms to match the waiter's own
   pollInterval so the holder observes the request while the download is
   still in flight. No in-process signal is possible: same-node waiters
   share the downloadState and never record a request.

Proven green via the e2e in the download window across local and s3
(gcc-unwrapped, ~277MB NAR): staging activates on the non-holder replica
and every reader gets a complete, byte-identical NAR, with no producer
WARN. The chunking window surfaced a separate CDC serve-route 404 (the
non-downloading replica 404s the NAR), distinct from this fix and
deferred to its own change.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Address review feedback:
- Use os.ErrNotExist instead of fs.ErrNotExist in produceStagingParts,
  dropping the io/fs import (os is already imported).
  (threads PRRT_kwDONV6tZs6H_VzW, _Vze)
- Simplify the no-op test: point ds.assetPath at a never-created path
  under the temp dir instead of creating then deleting a temp file.
  (thread PRRT_kwDONV6tZs6H_Vzi)
- Contention driver: warn loudly when only one of NCPS_E2E_UPSTREAM_URL /
  NCPS_E2E_UPSTREAM_KEY is set (partial override is silently ignored), and
  redact any userinfo/query from the upstream URL before logging it.
  (threads PRRT_kwDONV6tZs6H_Vzl, _X7W, _X7k)
@kalbasit
kalbasit force-pushed the fix-inflight-staging-producer-temp-race branch from 6005f3e to 9b3c140 Compare June 9, 2026 00:16
@dosubot dosubot Bot removed the size:XXL This PR changes 1000+ lines, ignoring generated files. label Jun 9, 2026
@kalbasit
kalbasit enabled auto-merge (squash) June 9, 2026 00:16
@dosubot dosubot Bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Jun 9, 2026
@kalbasit
kalbasit merged commit daa9acb into main Jun 9, 2026
39 checks passed
@kalbasit
kalbasit deleted the fix-inflight-staging-producer-temp-race branch June 9, 2026 00:26
kalbasit added a commit that referenced this pull request Jun 10, 2026
…#1386)

## Summary

The `staging-contention` e2e's chunking window surfaced a real ncps gap:
in-flight NAR staging — documented (#1355/#1374/#1375/#1379, CHANGELOG)
as serving cross-pod reads during the eager-CDC chunking window and
*"superseding the fragile progressive-chunk reassembly"* — **never
actually engaged** for the **uncompressed `.nar`** request, which (since
predictive-`none`, #1380) is the *only* request clients make in that
window. The cross-pod reader served progressive chunks with zero
contention and zero staging. #1379 itself flagged this as unit-verified
but with "no green end-to-end run yet."

This PR closes the gap (ncps fix), then makes the e2e assert the
now-correct behavior.

### Root cause — two read-path sites

- **`GetNar` routing (`cache.go:~1320`):** the fall-through to download
coordination (the only path that records a staging request) was gated
`Compression != none`, so the uncompressed read short-circuited to
progressive chunk serving and never contended.
- **`pollForDownloadOrTakeOver` state (D) (`cache.go:~6815`):** even
once coordinating, an actively-chunking NAR with no staging parts *yet*
immediately returned "served-by-peer → progressive," pre-empting staging
on an early tick.

### Fix (both gated on `InflightStagingEnabled()`)

- Route uncompressed actively-chunking cross-pod reads through
coordination (new `shouldCoordinateInflight` predicate) so they record a
staging request and serve from staging.
- State (D) now waits, bounded (`maxStagingWaitTicks`), for staging
parts so the staging serve wins, before falling back to progressive
chunks (safety net for a stalled producer).
- Unchanged for: staging disabled, lazy CDC, single-replica/same-pod,
finished NARs.

### Harness + docs

- `staging-contention` chunking window now asserts **staging
activation** (with a bounded clean-restart retry — addresses the earlier
CodeRabbit review), reverting the interim progressive-chunk assertion.
- Corrected the CHANGELOG (the prior entry described
intended-but-unverified behavior) and synced the `inflight-nar-staging`
+ `unified-e2e-harness` specs.

## Verification

- [x] `go test -race ./pkg/cache/` green; full `task test` green — no
regression
- [x] New `pkg/cache` internal tests (red→green) for both sites + the
staging-disabled / stalled-producer guards
- [x] `task test:e2e ... staging-contention`: **both** windows activate
in-flight staging, twice (determinism). Chunking-window race **143s →
4.5s** as staging replaces progressive reassembly.
- [x] `task fmt` / `task lint` clean; `openspec validate --all` 41/0

> Note: the first commit on this branch was the interim harness-only
change; this PR's net diff is the ncps fix + the staging-activation
assertion.

---------

Co-authored-by: Claude Opus 4.8 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working go Pull requests that update go code merge-stack size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants