Repository navigation
[plugin-standard] Implement opt-in, consented install-time spec.build for source-built plugins - #3166
Merged
Merged
Conversation
….b… [ORB-13887] [plugin-standard] Implement opt-in, consented install-time spec.build for source-built plugins Planned-By: claude Orchestrated-By: opus
danieljhkim
added a commit
that referenced
this pull request
Oct 4, 2026
…n macOS 26 [ORB-13998] (#3173) On macOS 26, process startup reads the root directory itself. The deny-default `macos-sandbox-build-v1` profile refused it (`deny(1) file-read-data /`), so every exec under it, even /usr/bin/true, aborted with SIGABRT before main. That broke build_sandbox::tests::macos::an_offline_phase_reaches_only_its_build_directory on the macOS Sandbox CI leg (Signaled(6) != Exited(0)). Allow file-read-data on `(literal "/")` only: the root's entry names, never a path below it. The test's secret-read, outside-write and loopback-network denials still hold. Golden regenerated. Regression from ORB-13887 (#3166), which introduced the profile. Task: ORB-13886 Co-authored-by: Claude Opus 5.5 <[email protected]>
danieljhkim
added a commit
that referenced
this pull request
Nov 14, 2026
…4554] (#9366) Fixes: 1a4a7a4 ("feat: [plugin-standard] Implement opt-in, consented install-time spec.b… [ORB-13887] (#3166)") Regression-From: ORB-13887 Orchestrated-By: fable Co-authored-by: orbit[muse-spark-1.3-contributor] <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Task
ORB-13887 — [plugin-standard] Implement opt-in, consented install-time spec.build for source-built plugins
Description
Outcome
Implement
spec.build: {command}for Orbit plugins exactly as decided by the threat model delivered in ORB-12878 (read it first underdocs/design/plugins/; it is the contract — where this description and the model disagree, the model wins). Requested by Daniel for the 2026-10-04 on-call (ORB-13886).RESUME FROM THE PRESERVED CANDIDATE — do not re-implement
A complete implementation already exists: candidate
b63c9d701on branchorbit/ORB-13887-ddb04571(closed PR #3140). All six earlier attempts stopped on infrastructure problems, not on this code: reviewer clock, no rework loop, exhausted review lineage (now reset), a Claude 401 on the Mac, and the box validation PATH bug.orbit/ORB-13887-ddb04571and bring its changes onto the current base (rebase or merge onto agent-main HEAD). Resolve conflicts minimally.build_sandbox::tests::macos::an_offline_phase_reaches_only_its_build_directoryfails on this candidate. Make it pass without weakening the offline-phase guarantee. If the test's expectation is wrong for macOS sandbox-exec semantics, explain why in the execution summary.make ci-fast,make ci-lintandmake goldens, and the build_sandbox tests on this platform. Keep the existing scope; add nothing new.GitHub CI on the old candidate failed only on two tests that were red on agent-main at the time (fixed at 8861d0c).
Scope
plugin.yamlschema: optionalspec.build.command(argv array, not a shell string) plus any timeout/output caps the model requires; validation rejects unknown fields.orbit plugin add/upgradefrom agit+(or local path) source withspec.build: refuses unless the operator passes the explicit consent flag the model names; runs the build once under the decided sandbox profile, environment allowlist and write scope; enforces timeout and kills the process group; digests the produced artifact and records source, command, consent and digest in the install record.plugin sync: a pin alone never triggers a build; a digest mismatch fails closed with a clear error.orbit doctorreports each source-built plugin's build command, consent record, artifact digest and profile.Validation
Boundary tests: build refused without consent; build succeeds with consent in a fixture plugin (Linux; macOS where the test harness supports it); timeout kills the process group; pin-only sync does not build; digest mismatch fails closed; doctor output golden.
make ci-fast,make ci-lint,make goldens.Acceptance Criteria
Execution Summary
Click to expand
Outcome: success, but the macOS fix is unverified on macOS. This run landed on a Linux host (jrun-20261004-2105-c38), not the Mac pull drain. The macOS kernel test could not run here. The macOS Platform workflow on this task's PR is the check that decides it.
Resume: applied the preserved candidate b63c9d7 (orbit/ORB-13887-ddb04571; base 3cf41ef) onto the current agent-main HEAD 5f4f171 as an unstaged working-tree diff. None of the 75 candidate paths had changed between the two bases, so the diff applied cleanly with no conflicts. The candidate was not re-implemented, and no scope was added.
macOS defect (build_sandbox::tests::macos::an_offline_phase_reaches_only_its_build_directory):
Acceptance criteria (implementation from the candidate; previously evidenced in the prior run's attached validation-report):
Validation (logs attached under jrun-20261004-2105-c38/):
Reconciliation: 75 status entries (the candidate's 59 modified plus 16 new files; my three edits fall within them). Every untracked path has an exact file: selector and every tracked path is covered by a file: or dir: selector, so no selector changes were needed. Nothing staged, deleted or renamed. HEAD is unchanged at 5f4f171. Scratch and logs are under .orbit/tmp only. One stray scratch listing was written to /tmp/x by mistake; that path is inside this run's private bwrap tmpfs, so it never reached the host. Changes are left uncommitted for the pipeline.
Validation
Branch Freshness
origin/agent-mainorbit/ORB-13887-96835179Orchestrated-By: opus