Summary
Moves the substrate core into pplx-space-substrate
(crates/l40_api/substrate/core): the SubstrateAdapter trait, the
vocabulary shared code and the substrates pass across it, and
ControllerError. The Substrate dispatch wrapper and both adapters stay in
pplx-space-api, which re-exports everything that moved, so every existing
crate::… and pplx_space_api::… path still resolves, including
cluster-controller-server's. This is the second and last stage of the
substrate core extraction; #2510 started the crate. It is a refactor: no
runtime, wire, schema or metric-name change.
controllers/substrate/mod.rs moves onto the crate's lib.rs, which keeps
the crate doc and the module declarations #2510 put there. The wrapper is the
new controllers/substrate.rs. Because lib.rs already exists on main,
git diff -M shows it as modified and mod.rs as deleted; with break
detection (git diff -B -M) git pairs mod.rs → lib.rs at 67% similarity.
Moved
-
From
controllers/substrate/mod.rs:- the trait and its default helper
delete_observed_execution_via_node_api; - the shared types:
ExecutionBinding,ExecutionActivation,CreateExecutionRequest,SubstrateError,DurableSnapshotError,SubstrateCapabilitiesand the rest; DbContext,substrate_db_error,pool_error;- the node-api artifact backup and state helpers,
NodeSchedulability, and theRetry-Afterconstants.
The wrapper keeps
Substrate,Inner,impl Substrate,impl SubstrateAdapter for Substrate,ReflectorReadyandCommandReadyProbe. - the trait and its default helper
-
Whole files:
- from
controllers/substrate/:execution_fence,environment_placement,recovery_charge,runtime_upgrade,node_api_client,live_count,local_artifact,pool_claims,sandbox_state_probe,slot_headroom,unscheduled_backlog,runtime_rpcandpool_eligibility_tests; node_group_placement, withstore.rsand its tests;metrics/sandbox/api/client_id.rs.
unscheduled_backlogis two pure types, likeslot_headroom. - from
-
From
controllers/mod.rs:ControllerErrorand its kinds (SandboxNotRunning,TemplateReleaseMiss,SnapshotUploadInFlight,SnapshotUploadCheck,ControllerRetryAfterCause);DbErrorLikeand itsDbErrorimpl;node_draining,is_activation_sealed;- the
From<tonic::Status>andIntoResponseimpls, which the orphan rule requires to move.
#2452 changed these blocks after this PR's base; its changes are ported verbatim:
ControllerRetryAfterCause::{NodeDrain, NodeDrainUntilUndrained},node_draining's cause, the newnode_draining_until_undrained,From<tonic::Status>'s sealed-node answer, andSubstrateError::NodeSealed'sorphanedfield with its two arms inFrom<SubstrateError> for ControllerError.internal_error,db_contention_error,resolved_create_release,pool_store_errorandDrainV2Switchstay. TheFrom<MaterializeOwnerError> for ControllerErrorimpl becomes api'scontrollers::materialize_owner_error, with the same body, called at its three conversions.auth'sAuthLookupErrorkeeps itsDbErrorLikeimpl. -
Two more impls the orphan rule requires:
impl FileCallFailure for ControllerError(fromroutes/public/files.rs);impl TryFrom<PoolConfigWithCounts> for ClusterPoolConfigResponseand its two helpers (fromkubernetes/pool.rs).
-
Types the trait's signatures use:
models::{ClusterPoolConfigRequest, ClusterPoolConfigResponse}anddefault_cluster_pool_enabled;metrics::sandbox::api'sSandboxApiSurface,ClientClass,ParseClientClassErrorandSandboxApiMetricIdentity.
-
controllers::sandbox::fetch_sandbox. The Direct adapter calls it, so moving it is groundwork for that adapter's own crate.controllers::sandbox::fetch_sandboxstill resolves through a re-export. -
Metric families recorded only by moved code, unchanged:
environment_placement.would_refuse;node_group_placement.resolved;node_group_placement.local_restore_preflight.
Their vocabularies move with them.
environment_placement.running_podsandpending_pods,node_group_placement.pool_claim_admissionandrestore_shortlist_emptied, and the otheroperationsfamilies stay in api, which records them.
Stays in api:
ClusterActivationClass,SandboxQuotaandSubjectSandboxQuota;native_accessandworker_channels;driver_db::DriverDbContext;Substrate::from_env, the one sqlx-typed function on this path.
The new crate has no normal sqlx dependency, and no non-test moved code names
a sqlx type. sqlx is a dev-dependency, because environment_placement/tests.rs
and node_group_placement/tests.rs build a PgPool. Four doc comments from the postgres-pool conversion (#2515, #2528) still mention sqlx::Error or
sqlx::Decode.
One signature change. RuntimeClient::call takes substrate: &A for any
A: SubstrateAdapter + ?Sized instead of &Substrate. Its callers pass
&Substrate unchanged, and it compiles to the same code.
Widened to pub, because api still uses them:
lib.rs:override_request_policy;LOCK_CONTENTION_RETRY_AFTER,RESTORE_RETRY_AFTER_FLOOR;create_wait_should_preserve_node_work,persist_optional_current_local_artifact,CopyDurableArtifact;durable_snapshot_rpc_error,substrate_db_error,DbContext,pool_error,SubstrateError::demoted_after_side_effect,suspend_rpc_error;delete_observed_execution_via_node_api,enqueue_artifact_backup_via_retrying_node_api;artifact_backup_refusal,parse_reported_pin,node_reported_artifact_from_info;- the
RuntimeRpcErrorandGATEWAY_RETRY_AFTERre-exports; - the
node_api_clientmodule.
controller_error.rs:DbErrorLike;SandboxNotRunningwithsandbox_idandlifecycle;TemplateReleaseMiss;SnapshotUploadInFlightwithcheck,newandidle_for;SnapshotUploadCheck;is_activation_sealed;ControllerError'sactivation_rejection,demoted_after_side_effect,lock_contention,sandbox_already_exists,with_template_release_miss,template_release_miss,is_sandbox_already_exists,sandbox_not_running,sandbox_not_running_refusal,snapshot_upload_in_flight,snapshot_upload_in_flight_details,is_cluster_admission_rejection,live_cap_refused,is_live_cap_refusal,node_draining,node_draining_until_undrainedandmark_lock_contention_for_test;NODE_DRAIN_RETRY_AFTER, which #2452's api tests read.
node_api_client.rs:RuntimeClient'sreportfield, and itsnew,kept,with_report,endpoint,retire_kept_connection,require_activation_policy_supportandinternal_client;KeptCallReportand its six fields;SlowKeptCalland itskept,connection_age,idle,redialsandconnection_closed;slow_call;SLOW_KEPT_CALL,NODE_RPC_TIMEOUT,NODE_RPC_TIMEOUT_SECS,BLOCKING_WAIT_MARGIN_SECS,ALB_IDLE_TIMEOUT_SECS,BUILDER_BEARER_TOKEN;node_api_endpoint,retrying_worker_node_api,node_api_connect_endpoint,require_activation_policy_support,connect_worker_watchedandconnect_worker_watched_with.
recovery_charge.rs:ActivationRejectionKind::controller_error,ActivationAdmissionRejection::new,KeyResolution::pod_label;RecoveryCharge'senforce,paid,exempt,uncapped,after_charge,with_live,take_live,with_cap,reserve_live_cap,live_cap_configured,precheck_live_cap,charge_restore_claim,charge_cold_activation,exempt_for_testsandenforce_for_tests.
environment_placement.rs:record_refusals,BindingScope,work_environment,resolved_work_environment,bound_pod_environment.local_artifact.rs:PublishedLocalArtifact::from_publishedand::from_committed_suspend_response,reject_deleting_current_local_artifact.node_group_placement.rs:RestoreSourceNode,check_local_restore_source.pool_claims.rs:default_pool_eligible_for_request,pool_eligible_with_env.sandbox_state_probe.rs:observed_sandbox_states.runtime_rpc.rs:RuntimeRpcError,RuntimeClient::call.client_id.rs:ClientIdTag::has_own_bucket.models.rs:default_cluster_pool_enabled.
ControllerError::node_api_transport goes from private to pub(crate).
Of these, 24 serve only api tests of moved code, not api's production code:
RESTORE_RETRY_AFTER_FLOOR,artifact_backup_refusal,parse_reported_pin,node_reported_artifact_from_info,observed_sandbox_states,BLOCKING_WAIT_MARGIN_SECSandALB_IDLE_TIMEOUT_SECS;RuntimeClient.report,KeptCallReportand its six fields,slow_call,SlowKeptCalland its five fields, andSLOW_KEPT_CALL;NODE_DRAIN_RETRY_AFTER, which api re-exports only under#[cfg(test)].
These narrow when the tests that use them move into core.
The wrapper re-exports the crate with pub use pplx_space_substrate::*
(controllers/substrate.rs). That makes every pub core item public on
pplx_space_api::controllers::substrate::… too, including the helpers widened
for api's own use. This is transitional, until dependents import from
pplx_space_substrate directly.
Other forced edits
test-supportfeature: it gates the test constructors api's tests use (RecoveryCharge::exempt_for_testsandenforce_for_tests,ControllerError::mark_lock_contention_for_test) as#[cfg(any(test, feature = "test-support"))]. api enables it from[dev-dependencies]only.uncapped, whichexempt_for_testscalls, addstest-supportto its gate,#[cfg(any(test, feature = "kubernetes", feature = "test-support"))], so it stays in productionkubernetesbuilds, as before.kubernetesfeature: it now enables the optionalk8s-openapi,pplx-space-node-group-storeandpplx-space-sandbox-pod.runtime_rpctests: they stay in api because they build a DirectSubstrate. The wrapper declares them through an inlinemod runtime_rpc { use super::*; mod tests; }, so their identity is unchanged.- Tests that relied on their old parent module:
controllers/tests.rsandcontrollers/substrate/tests.rsgain the importsuse super::*no longer provides;- the two template tests read the message through
to_string(); - a
runtime_upgradetest readsstatus()instead of the private field.
- Path edits in moved code:
super::andcrate::controllers::to the crate's own modules, andcrate::models::Sandboxto the store's path. Intra-doc links to items that stay in api become code spans. ARCHITECTURE.toml:pplx-space-substratejoinsstore_usersfor the ten stores it uses: cluster-pool, node-group-store, node-status-store, node-template-inventory-store, postgres-pool, runtime-environment-catalog-store, runtime-environment-policy-store, sandbox-store, snapshot-store and template-release-store.pattern_ratchet.kubernetes_accessalso allows the wrapper's new path, whereas_kubernetesis defined.ci/kind-placement-paths.txt: namescontrollers/substrate.rs. The moved files fall undercrates/l40_api/substrate/core/src/**, which it already lists.Kind Direct CI'spaths:filter (.github/workflows/kind-direct-ci.yml) addscrates/l40_api/api/src/controllers/substrate.rsandcrates/l40_api/substrate/core/src/**. It listed onlycontrollers/substrate/**, which no longer matches the moved core, so later pull requests that edit only the core would not have run the Direct lane before merge. The Kind README says the filter covers the substrate core too.- Moved paths in
docs/execution-environments.md, three Kind chart comments andcontrollers/substrate/AGENTS.md.
No caller outside the moved blocks needed an edit, apart from the test files
above and materialize_owner_error's three call sites:
controllers/sandbox/queries.rs;public_sandbox_operations.rs;routes/e2b/fork.rs.
Each site's one statement is edited, and the behaviour is identical. The new
crate also drops two unused dependencies, tokio-util and
pplx-space-api-route. SubstrateAdapter's doc points at the contract in
controllers/substrate/AGENTS.md. controllers/sandbox/mod.rs and api's lib.rs changed only their
re-exports.
Observable names
-
Log targets:
tracingevents without atarget:move from pplx-space-api's module paths to pplx-space-substrate's:Old target New target Events pplx_space_api::controllers::substratepplx_space_substrate2 pplx_space_api::controllers(ControllerError's 500 log)pplx_space_substrate::controller_error1 pplx_space_api::controllers::substrate::environment_placementpplx_space_substrate::environment_placement4 pplx_space_api::controllers::substrate::node_api_clientpplx_space_substrate::node_api_client1 pplx_space_api::controllers::substrate::local_artifactpplx_space_substrate::local_artifact1 pplx_space_api::controllers::substrate::sandbox_state_probepplx_space_substrate::sandbox_state_probe1 pplx_space_api::controllers::substrate::runtime_rpcpplx_space_substrate::runtime_rpc1 pplx_space_api::node_group_placementpplx_space_substrate::node_group_placement3 -
type_name: no moved code uses it. -
Test identities: 37 tests move from
pplx-space-apitopplx-space-substrate:controllers::substrate::environment_placement::tests::*(7),controllers::substrate::recovery_charge::tests::*(3) andcontrollers::substrate::runtime_upgrade::tests::*(15) becomeenvironment_placement::tests::*,recovery_charge::tests::*andruntime_upgrade::tests::*;controllers::substrate::pool_eligibility_tests::*(1) becomespool_eligibility_tests::*;node_group_placement::tests::*(11) keeps its path.
No
ci/test-duration-budget.tomlentry names them.
Validation
At this head (rebased on 3888fde9):
cargo fmt --all -- --check: clean.cargo check --locked --workspace --all-targets --all-features: clean, no warnings.cargo check --locked, all clean with no warnings:pplx-space-api(default,--no-default-features,--features kubernetes);pplx-space-substrate(default,--no-default-features).
cargo clippy --locked -p pplx-space-substrate --no-default-features --all-targets -- -D warnings: clean.ci/scripts/run-rust-checks.sh clippy: passed.ci/scripts/run-archcheck.sh <merge-base>: 0 required findings. The ten advisorylayers.policy_changedfindings are thestore_usersadditions.cargo nextest run, each with the repository's Postgres setup script (and Redis for api), and no dependency skips:pplx-space-substrate: 28 passed with default features, 40 with--all-features;pplx-space-api --features kubernetes: 3,012 passed, 1 skipped (the profile's default skip);pplx-space-cluster-controller-server: 1,462 passed.
- #2452's tests of the ported code pass in that api run:
controllers::tests::a_sealed_nodes_refusal_is_the_drains_retryable_503;public_sandbox_operations::tests::{a_node_drain_refusal_defers_without_spending_an_attempt, a_refusal_until_the_undrain_spends_an_attempt_with_the_drains_error, with_retry_deferral_off_a_drain_refusal_spends_an_attempt, a_non_drain_503_with_retry_after_still_spends_an_attempt};controllers::sandbox::lifecycle::drain_guard_tests::{a_v2_refusal_is_a_retryable_503, every_action_is_listed_for_a_sealed_node};controllers::sandbox::lifecycle::drain_guard_postgres_tests::{a_draining_v2_drain_refuses_only_activations_with_a_503, a_stop_on_a_v2_drained_node_is_refused_with_a_503};controllers::substrate::kubernetes::store::k8s_store_postgres_tests::drain_recovery_gate_tests::a_sealed_refusal_with_no_v2_drain_recorded_is_an_orphaned_seal.
- The new crate drops
tokio-utilandpplx-space-api-route, which its one dependent, api, keeps, so no package loses them.Cargo.lockloses only the new crate's two edges.
Not run locally: a Kind smoke. The Kind path lists select this change for Pull CI.
Stack
- #2452 (drain v2 deferral) landed after this PR's base and edited blocks this
PR moves. This PR is rebased over it, and #2452's five hunks in
controllers/mod.rsandcontrollers/substrate/mod.rsare ported verbatim intocontroller_error.rsandlib.rs, theNodeSealedarms kept separate. - With #2603, which moves
MaterializeOwnerErrorout of api, this PR replaced theFrom<MaterializeOwnerError> for ControllerErrorimpl withmaterialize_owner_error, so the two land in either order. - #2613 rewrote
controllers/substrate/AGENTS.mdafter this PR's base. This PR is rebased over it and keeps only its own edit there (theInnerpath). The movedSubstrateCapabilitiesdoc names that contract file by path, since the core crate's directory has noAGENTS.md. - Open PRs that edit the deleted
controllers/substrate/mod.rshit a modify/delete conflict and must port their hunks into core. Edits to files this PR moved whole follow the rename into core.
Severity and risk
Severity: does not apply (refactor).
Risk: moderate review surface, low runtime risk. The moved code is unchanged
apart from the edits listed above. A missed re-export would fail to compile,
not misbehave. Open pull requests that edit controllers/substrate/mod.rs, a
moved file or a moved block need a rebase onto the new paths. Rollback is a
revert.
Rollout
No runtime change. Old and new binaries are equivalent:
- no schema, migration, protocol, wire or metric-name change;
- no persisted-state change and no new switch;
- the same code runs, linked from a different crate.
Log targets are the one observable difference, listed above. A dashboard or
monitor that filters on an exact @target from the table needs the new value,
or a wildcard, before this deploys. So does a log-filter directive
(RUST_LOG, SPACE_TRACE_FILTER) that names pplx_space_api or a moved module
path: it no longer covers the moved events. No chart in this repository sets
one. During a rolling deploy, old and new
replicas log the same events under the two targets. Rollback is a revert.
Not covered
- The two substrate adapters (
directandkubernetes) and theSubstratedispatch wrapper stay inpplx-space-api, for later steps. Substrate::from_envstill takes a driver pool. It goes with the store-API work that removes the last driver handles.driver_db::DriverDbContextstays in api until no call site holds asqlx::Error.- Many core helpers are
pubbecause api uses them: the adapters' and the wrapper's helpers narrow as those move into core or their own crates, and the 24 test-only items above narrow when the tests that use them move into core.
Local review: round 2 (Codex + Claude), READY after fixes.
AI assistance: an AI agent (Claude Code) drafted the code changes and this description.
Activity
6Thanks for opening this pull request! A SPACE maintainer will take a look.
CONTRIBUTING.md explains how we review outside contributions.
Automatic approval withheld
Automatic approval is disabled by the configured approval policy for this pull request. Review comments and requests for changes continue normally.
Commit:
49f2d4fa4ab8.No actionable comments were generated in the recent review.
Walkthrough
The pull request extracts shared substrate contracts, error handling, metrics, and implementations into
pplx-space-substrate. It adds a controller wrapper that dispatches operations to Direct or feature-gated Kubernetes implementations. The API adopts substrate-owned types and helpers, updates federated-owner error mapping, and removes superseded local implementations. CI filters, architecture entries, and source references are updated for the new crate layout.Possibly related PRs
Merge Risk: Low · up to
49f2d· assessed changes onlyPath filters excluded changed files. This rating applies only to the assessed changes.
Security architecture risk: Minimal · up to
49f2dThe change broadens what other Rust packages can import, but the paths examined still use the same runtime adapters, authorization checks, and retry behavior. The review did not identify a new way for a request to reach privileged operations or a new deployment or rollback requirement.
Security review details
Security Blast Radius
Trust Boundaries and Controls
Resilience and Maintainability Implications
Hardening Proposals
Pre-merge checks: 7
pplx-space-substrate. Evidence: - The changed-file…Full details: Title check
Explanation
The title "api: move the substrate core into pplx-space-substrate" matches the main change. The PR moves the substrate core into the pplx-space-substrate crate, and the title uses the lowercase area prefix with a colon, followed by a lowercase summary word. Code identifiers keep their case, and there is no trailing period or ticket ID.
Full details: Description Follows The Pr Template
Explanation
The pull request description (run 987c179e) contains all four required items, each with real content: 1. "## Summary": present. It states that merging moves the substrate core into
pplx-space-substrate,ControllerError, and theSubstrateAdaptertrait, and that the change is a refactor with no runtime, wire, schema, or metric-name change. 2. "## Validation": present. It names the commands run (cargo fmt,cargo check,cargo clippy,ci/scripts/run-archcheck.sh,cargo nextest run) and reports results, such as 28/40 substrate tests, 3,012 API tests with one profile-default skip, and 1,462 cluster-controller-server tests. It also states that a Kind smoke was not run locally. 3. "## Severity and risk": present. It gives "Severity: does not apply (refactor)." and a risk statement: "moderate review surface, low runtime risk," with the rollback path. 4. "AI assistance:" line: present. It reads "an AI agent (Claude Code) drafted the code changes and this description," which names the tool and the parts it drafted. The check tests presence and non-empty content only, so no code verification was needed. No tool calls were required because the description text was supplied in full.Full details: Bug Fixes Name A Regression Test
Explanation
The check applies only when the pull request fixes a defect in application behavior under crates/, shim/, or ui/. This pull request is a refactor. Its title is "api: move the substrate core into pplx-space-substrate". The description states "It is a refactor: no runtime, wire, schema or metric-name change" and "Severity: does not apply (refactor)". The commit messages match that framing. "settle review findings" covers naming, docs, and dependency cleanup, and says "No runtime change: every response, status, retry hint and log line is as before." The
#2452drain-v2 changes are ported verbatim from another PR, not fixed here. No application bug fix is present, so the check does not apply and passes. The description names regression tests, but that is not required for this result.Full details: Weakened Safeguards Are Justified
Explanation
No test, assertion, lint, CI check, or repository guard is removed, disabled, or weakened without a stated reason. Findings by check category: - Allowlist additions (ARCHITECTURE.toml). Two kinds of entries were added: -
store_usersentries forpplx-space-substrateacross ten stores. The description gives the reason: the crate uses these stores. -pattern_ratchet.kubernetes_accessallowscrates/l40_api/api/src/controllers/substrate.rs. The description gives the reason:as_kubernetesis defined there. - The existingcontrollers/substrate/**entry is kept. No entry is removed. - Attributes in non-test code. -controllers/substrate.rsadds#[cfg_attr(not(feature = "kubernetes"), expect(unused_variables, reason = "..."))]. It has areason, so it is justified. -#[allow(async_fn_in_trait)]and#[deny(clippy::missing_trait_methods)]moved from apisubstrate/mod.rsto corelib.rsand the wrapper. They were not added. -#[serde(deny_unknown_fields)]and theserde(default)attributes moved withClusterPoolConfigRequestinto coremodels.rs. - Lints. No[lints]or[workspace.lints]table changed. - CI and path filters. -.github/workflows/kind-direct-ci.ymlandci/kind-placement-paths.txtonly add paths. -controllers/substrate/**stays in the Kind Direct filter. - No change toci/scripts,ci/check-scopes,.config, or anycontinue-on-error,|| true, or skip setting. - Tests. - Total test attribute count is 10,866 in both base and head. - Allmod testswiring from the base is present in head, moved or re-declared. Theruntime_rpctests are wired through an inline#[cfg(test)] mod runtime_rpc. - No#[ignore]or#[should_panic]was added. - Test assertions. Two template assertions changed fromerror.messagetoerror.to_string().ControllerErroris declared with#[error("{message}")], so the strings compare the same value. The assertions are equivalent. - Guidance files.controllers/substrate/AGENTS.mdchanges only a path reference. The rules are unchanged.docs/changes only paths. No review or approval guidance text changed. Scope note: the review used the base and head refs in the local checkout. Linked-repository inspection was unavailable, and no check depended on it.Full details: Agent Tooling Runs No New Commands
Explanation
The check covers agent plugin manifests, skills, command files, and guideline files. This PR is a Rust refactor that moves substrate core code into
pplx-space-substrate. Evidence: - The changed-file list (git diff --name-statusagainst the review base) contains no plugin manifests (plugin.json/plugin.yaml), noSKILL.md, no skill or command directories, and no MCP or LSP configuration. - The only guideline file changed iscrates/l40_api/api/src/controllers/substrate/AGENTS.md. Its diff changes prose only: theInnerlocation moves frommod.rstocontrollers/substrate.rs. It adds no frontmatter, no hook, and no inline shell substitution (!followed by a backtick command). - A pattern search of the added lines for!\``,hooks,allowed-tools,mcpServers,lspServers,"command", andstartServerfound two hits. Both are Rust doc comments that cite macro names in code spans (tracing::error!). Neither is an agent-run instruction. - Other changes are Rust source, Cargo manifests,ARCHITECTURE.toml, CI path filters, Kind chart comments, anddocs/execution-environments.md`. None of these is an agent-executed file under this check. No item needs to be listed for failure.Full details: External Code Sources Need A Person
Explanation
The check fails only if the diff adds or changes where external code comes from. I found no such change in the reviewed range (refs/coderabbit/pre-merge-check/base..head). - Cargo manifests:
crates/l40_api/api/Cargo.tomladdspplx-space-substrate = { workspace = true, features = ["test-support"] }.crates/l40_api/substrate/core/Cargo.tomladds only{ workspace = true }entries, plusoptional = trueand feature flags. Every new dependency inherits from the workspace. The grep forgit =,rev =,branch =,tag =,registry =, andpath =found no matches. The rootCargo.tomlis not in the changed-file list, so no workspace dependency source changed. The[patch]and[replace]sections are untouched. - Cargo.lock: Nosourcelines changed. The only additions are workspace-crate edges, such aspplx-space-content-digest. - Container images and Dockerfiles: No Dockerfile or image reference changed. The grep forFROMandimage:found nothing. - Downloads: No URL, version, or checksum of a fetched binary or archive was added. The grep forcurl,wget,sha256, andchecksumfound nothing. - Helm charts:Chart.yamlandChart.lockare not in the diff. The chart files that changed (_helpers.tpl, twovalues.yamlfiles) change comments only. - Other config:ARCHITECTURE.toml,ci/kind-placement-paths.txt, andkind-direct-ci.ymlchange path and store-user lists only. None of them names an external source. No item matches a failure condition, so the check passes.Full details: Public-Safe Content
Explanation
The Public-safe content check passes. I scanned the 4,847 added diff lines and the commit messages for every risky pattern in the check. Results: - Credentials, tokens, private keys: none. The three token-like hits are an identifier (
BUILDER_BEARER_TOKEN: SpaceBearerToken::NodeApi), a workspace dependency name (pplx-space-bearer-token), and a doc comment that mentions a kubeconfig. None holds a secret value. - URLs and links: nohttp(s)://links in added lines, commit messages, or the PR description. The description cites only PR numbers (#2510,#2452,#2603,#2613), which are not links to private trackers. - Absolute personal paths: none in added lines, commit messages, or changed file paths (/Users/,/home/). - Cloud account IDs and ARNs: none (no 12-digit IDs, noarn:aws). - Internal hostnames:space.pplx.net/...appears inlib.rs(added lines 158 and 453) as a Kubernetes label-key prefix (space.pplx.net/client-id). The base tree already uses this prefix in 206 places, including workflows and the Tiltfile. It is a label namespace, not a resolvable host or URL, and the moved code carries it unchanged.node_group_placement.local_restore_preflightis a metric name. - Cluster or environment names, production logs, incident details, unfixed vulnerabilities: none found. The description states "Severity: does not apply (refactor)." It has no "Created with ..." line. No file or line fails the check.Automatic approval policy
Commit:
49f2d4fa4ab8.Matching overrides (numbered as in the resolved configuration):
.coderabbit.yaml,.coderabbit.yml,coderabbit.yaml,coderabbit.yml,.coderabbit.config.ts,.github/**,ci/scripts/ci-image.sh,ci/scripts/mirror-images.sh,ci/scripts/lib/test-deps.sh,ci/scripts/run-space-bundle-builds.py,ci/scripts/ensure-uv.sh,ci/scripts/tfswitch-lite.sh,ci/scripts/notify-main-ci-failure.sh,templates/firecracker/kernel/ci.sh,ci/Dockerfile.ci,ci/mirrored-images.txt,ci/scripts/pull-ci-reuse.py,.claude/settings*.json,**/.mcp.json,**/hooks.json,.agents/plugins/**/hooks/**,.agents/plugins/**/scripts/**,.agents/plugins/**/commands/**,.agents/plugins/**/agents/**,**/skills/**/hooks/**,**/skills/**/scripts/**,**/skills/**/commands/**,**/skills/**/agents/**,.claude/commands/**,.claude/agents/**,**/marketplace.json,.pre-commit-config.yaml,lefthook.yaml,.cargo/**,rust-toolchain.toml,supply-chain/**,**/pyproject.toml,**/uv.lock,**/package.json,**/package-lock.json,**/go.mod,**/go.sum,**/requirements*.txt,**/requirements*.in,db/**,!db/README.md,proto/**,docs/versioning.md,ci/guest-update-required-since,crates/l40_api/api/src/auth.rs,crates/l40_api/api/src/auth/**,crates/l40_api/api/src/middleware/auth*,crates/l40_api/api/src/middleware/auth/**,crates/l40_api/api/src/routes/authz.rs,crates/l10_foundation/bearer/**,crates/l10_foundation/rustls/**,crates/l10_foundation/guest/**,crates/l10_foundation/pii/**,infra/space/aws/**,infra/space/cluster/**,infra/space/identity/**,infra/space/observability/**,infra/space/packer/**,LICENSE,SECURITY.md; automatic approvals: disabled.Any matching disabled override withholds approval, regardless of risk. Otherwise, the strictest explicitly set limit wins for each score. Limits omitted by all matching overrides inherit the global configuration.
Not set means no limit was configured after inheritance. Use
@coderabbitai configurationto inspect the resolved settings and their sources.e08be77e-eccf-4703-b179-270cdeb9837bReviewing files that changed from the base of the PR and between 1f24179281731e3ec4d7ff9fe2cc78b93a324184 and 49f2d4fa4ab8e0b8b04742602c2e0f7361bd2ec7.
Cargo.lockis excluded by!**/*.lock,!**/Cargo.lock.github/workflows/kind-direct-ci.ymlARCHITECTURE.tomlci/kind-placement-paths.txtcrates/l40_api/api/Cargo.tomlcrates/l40_api/api/src/controllers/mod.rscrates/l40_api/api/src/controllers/sandbox/mod.rscrates/l40_api/api/src/controllers/sandbox/queries.rscrates/l40_api/api/src/controllers/sandbox/responses.rscrates/l40_api/api/src/controllers/substrate.rscrates/l40_api/api/src/controllers/substrate/AGENTS.mdcrates/l40_api/api/src/controllers/substrate/kubernetes/pool.rscrates/l40_api/api/src/controllers/substrate/kubernetes/store/restore_source.rscrates/l40_api/api/src/controllers/substrate/mod.rscrates/l40_api/api/src/controllers/substrate/tests.rscrates/l40_api/api/src/controllers/template/tests.rscrates/l40_api/api/src/controllers/tests.rscrates/l40_api/api/src/lib.rscrates/l40_api/api/src/metrics/environment_placement.rscrates/l40_api/api/src/metrics/node_group_placement.rscrates/l40_api/api/src/metrics/sandbox/api.rscrates/l40_api/api/src/models.rscrates/l40_api/api/src/public_sandbox_operations.rscrates/l40_api/api/src/routes/e2b/fork.rscrates/l40_api/api/src/routes/public/files.rscrates/l40_api/substrate/core/Cargo.tomlcrates/l40_api/substrate/core/src/controller_error.rscrates/l40_api/substrate/core/src/environment_placement.rscrates/l40_api/substrate/core/src/environment_placement/tests.rscrates/l40_api/substrate/core/src/execution_fence.rscrates/l40_api/substrate/core/src/lib.rscrates/l40_api/substrate/core/src/live_count.rscrates/l40_api/substrate/core/src/local_artifact.rscrates/l40_api/substrate/core/src/metrics.rscrates/l40_api/substrate/core/src/metrics/environment_placement.rscrates/l40_api/substrate/core/src/metrics/node_group_placement.rscrates/l40_api/substrate/core/src/metrics/sandbox.rscrates/l40_api/substrate/core/src/metrics/sandbox/api.rscrates/l40_api/substrate/core/src/metrics/sandbox/api/client_id.rscrates/l40_api/substrate/core/src/models.rscrates/l40_api/substrate/core/src/node_api_client.rscrates/l40_api/substrate/core/src/node_group_placement.rscrates/l40_api/substrate/core/src/node_group_placement/store.rscrates/l40_api/substrate/core/src/node_group_placement/tests.rscrates/l40_api/substrate/core/src/pool_claims.rscrates/l40_api/substrate/core/src/pool_eligibility_tests.rscrates/l40_api/substrate/core/src/recovery_charge.rscrates/l40_api/substrate/core/src/recovery_charge/tests.rscrates/l40_api/substrate/core/src/runtime_rpc.rscrates/l40_api/substrate/core/src/runtime_upgrade.rscrates/l40_api/substrate/core/src/runtime_upgrade/tests.rscrates/l40_api/substrate/core/src/sandbox_state_probe.rscrates/l40_api/substrate/core/src/slot_headroom.rscrates/l40_api/substrate/core/src/unscheduled_backlog.rsdocs/execution-environments.mdinfra/space/kind/README.mdinfra/space/kind/charts/space-api-local/templates/_helpers.tplinfra/space/kind/charts/space-data-plane-local/values.yamlinfra/space/kind/charts/space-node-api-local/values.yamlLimit details: You’ve used all 10 included reviews currently available. Your 20 included PR review attempts over the past 7 days set your current allowance at 10 reviews per hour.