Skip to content

bazel: add unified Rust foundation - #394

Draft
vicondoa wants to merge 228 commits into
v3from
spec003-w0-unified
Draft

bazel: add unified Rust foundation#394
vicondoa wants to merge 228 commits into
v3from
spec003-w0-unified

Conversation

@vicondoa

@vicondoa vicondoa commented Aug 8, 2026

Copy link
Copy Markdown
Owner

Summary

  • unify product crates under one resolver-v2 Cargo workspace and lock while retaining selected broker, guest, and Nix isolation
  • add the pinned Bazel 8.6.0 Linux sandbox, immutable static execution supervisor, product/walker hubs, deterministic target inventories, and selected package-policy graphs
  • add native x86 and ARM broker/guest artifact contracts, enforcing ARM CI realization, root-workspace release wiring, and fail-closed policy/drift coverage

Validation

  • make check-tier0
  • make test-lint
  • make test-rust-main
  • make test-rust-broker
  • make test-rust-guest-shell-runner
  • make test-rust-schema
  • make test-rust-inventory
  • make test-rust-supply-chain
  • make test-rust
  • make test-policy
  • make test-drift
  • make test-flake
  • make test-nix-unit
  • D2B_ENABLE_FIXTURE_BUILD=1 make test-fixture-contracts
  • native x86 realization of all six broker/guest dependency, package, and artifact checks

The native ARM job must realize the same six checks and run the supply-chain gate on this unchanged head before review closes.

vicondoa and others added 30 commits August 6, 2026 08:18
Merge broker and guest into the resolver-v2 product workspace, add the safe provider and protocol foundation, and keep the runner, locator, and workspace policy roots green before later generator scopes.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Pin Bazel 8.6.0, the patched Linux sandbox policy, and the immutable static C supervisor with native identity evidence and fixture-independent policy coverage.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Read patched package inputs from the package expression so the Nix-unit case verifies the actual policy and patch authorities.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Make namespace PID 1 kill and nonblocking-reap descendants, keep the outer userspace ceiling monotonic, and bind the refreshed Bazel identity.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Fail closed on unsupported native systems and record the exact Nix, startup, and sandbox policy owners, inputs, and remedies.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Pass the fixed installed policy from the immutable Bazel wrapper and reject missing policy identity before action execution.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Use the unified product workspace and keep the dedicated static guest build explicitly package-, binary-, feature-, and target-scoped.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Bind derivationSha256 to the raw .drv file bytes, record the native ARM measurement, and reject zero digest placeholders in both policy and Nix contracts.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Keep product and walker Cargo authorities separate, constrain contributor mutations to scratch previews, and validate selected policy contexts against the pinned patched Bazel action boundary.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Keep Bazel startup state separate from command options, use the rules_rust target spelling, and make the root package own Cargo metadata so repin bootstrap does not depend on an unplanned nested package.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Bazel 8.6.0 exposes cargo_bazel as a library and cargo_bazel_bin as the runnable generator. Keep the generator-owned module unchanged while routing the xtask CLI to the executable target.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Use the supported rules_rust bzlmod extension evaluation with explicit selected-hub controls, and keep walker Cargo inputs in the root Bazel package without generating an aggregate BUILD file.

Pinned Bazel 8.6 exposes sync as a WORKSPACE-only command; mod deps is the corresponding Bzlmod extension evaluation path.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
vicondoa and others added 30 commits August 8, 2026 14:52
Record the closure identities produced by the synchronized supervisor protocol test source on both native systems.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Match the unified product-workspace runner label while preserving the doctest and harness-free coverage assertions.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Refresh the native closure identities after aligning the unified workspace companion policy.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Treat every Cargo target-* directory as transient during fresh-workspace copying and mutation snapshots, with a planted exclusion test.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Refresh the native closure identities after excluding transient Cargo targets from fresh bootstrap inputs.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Bind the compiler-derived census to the final fresh-bootstrap source filter.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
… H20 H21 )

Retain process ownership, bound protocol waits, close ambient descriptors, privatize test capabilities, wire startup admission, and make pre-READY signal and typed failure handling enforcing.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…H22 H23 H26 )

Isolate rc and environment inputs, wire real graph surfaces and native observations, type inherited capability failures, and select pinned cargo-bazel tools per host architecture.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…H19 H24 H25 )

Share production policy validation and native inventories, preserve CLI contracts, redact diagnostics, anchor writes, align six-check docs, remove dead scaffolding, and generate exact target topology.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Use the kernel-floor descriptor scan fallback without procfs and make the host contract map the dedicated helper error channel collision-safely.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Bind the proc-free supervisor and current x86 broker and guest artifact closures before native ARM reconciliation.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Bind the final ARM supervisor and native broker and guest artifact closures measured on the disposable runner.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Record the self-resolving cleanup plant used by native patched-sandbox validation.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Admit the indexed Bazel policy guide into the governed prompt corpus and refresh compiler-derived workspace metadata after removing dead crates.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Pass the manifest system string directly to the production-validator source assertion.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Keep concurrent native Bazel validation from appearing as candidate-state drift to Rust inventory checks.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Record the final native broker and guest closure identities after the policy and API test changes.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Yield between write groups and timeout the collector so concurrent Layer-1 load cannot turn a delivery regression into an unbounded hang.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Keep the compact AGENTS router explicit about the product manifest, root lock, and separate walker while linking the detailed workflow.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Run the full-scale proof after parallel Layer-1 work locally while retaining its independent CI runner and 15-minute budget.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Create a fresh immutable delivery address after correcting the verification selection range; content is unchanged.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Bind real rules_rust and native sandbox evidence into the generated Layer-1 graph, harden supervisor ownership and diagnostics, and make target and companion discovery fail closed.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Install the combined generator preview so checked-in policy, configured targets, inventory, and source census reflect the real rules_rust evidence graph.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Refresh compiler-derived workspace metadata after the supervisor ownership and protocol changes.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Carry shared native execution paths and the planted secret in one harness so the enforcing evidence test remains Clippy-clean without lint suppression.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Align Rust and Nix policy contracts with genuine rules_rust mnemonics and the single pending-quarantine plus consuming-reap diagnostic protocol.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Check the byte-level pending and consuming-reap fields in the patch while leaving operator prohibition wording to the dedicated runbook contract.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Assert each exact release field independently because the patched C diagnostic is assembled from adjacent string literals.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Refresh closure identities after verification changes altered the selected Nix output paths without changing the measured binaries.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Bind the aarch64 broker and guest closure identities measured on the unchanged native ARM candidate.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant