Skip to content

Add repository compute sandbox policy guard - #392

Closed
karollooool wants to merge 2 commits into
SCIBASE-AI:mainfrom
karollooool:codex/repository-compute-sandbox-guard
Closed

Add repository compute sandbox policy guard#392
karollooool wants to merge 2 commits into
SCIBASE-AI:mainfrom
karollooool:codex/repository-compute-sandbox-guard

Conversation

@karollooool

@karolloooolkarollooool commented May 22, 2026

Copy link
Copy Markdown

No description provided.

CopilotAI review requested due to automatic review settings May 22, 2026 23:52

CopilotAI 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.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds a new self-contained repository-compute-sandbox-policy-guard module that evaluates synthetic SCIBASE repository release candidates against a compute/sandbox policy, producing JSON/Markdown/SVG reviewer artifacts (and an optional ffmpeg-rendered MP4).

Changes:

  • New evaluator (index.js) with policy checks for pinned images, network egress, compute budgets, writable mounts, and hash checkpoints, plus Markdown/SVG renderers.
  • Synthetic fixtures, demo script, test script, and pre-generated reviewer artifacts under reports/.
  • Top-level README link added to surface the new module.

Reviewed changes

Copilot reviewed 10 out of 12 changed files in this pull request and generated 3 comments.

Show a summary per file
FileDescription
repository-compute-sandbox-policy-guard/index.jsCore policy evaluator and renderers.
repository-compute-sandbox-policy-guard/sample-data.jsSynthetic candidate fixtures (ready/blocked/needs_review).
repository-compute-sandbox-policy-guard/demo.jsGenerates JSON/Markdown/SVG reports from fixtures.
repository-compute-sandbox-policy-guard/test.jsNode assert coverage for evaluator and renderers.
repository-compute-sandbox-policy-guard/scripts/render-demo-video.jsOptional ffmpeg MP4 renderer.
repository-compute-sandbox-policy-guard/package.jsonnpm scripts for check/test/demo/demo:video.
repository-compute-sandbox-policy-guard/README.mdModule documentation and scope.
repository-compute-sandbox-policy-guard/reports/demo.{json,md,svg}Pre-generated deterministic reviewer artifacts.
README.mdAdds a pointer to the new module.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

];
const font = candidates.find((candidate) => fs.existsSync(candidate));
if (!font) {
return "font=Sans";
Comment on lines +255 to +257
const doiOnly =
mode !== "doi-resolution-only" ||
allowlist.every((host) => policy.doiResolverAllowlist.includes(host));
const sizeOk = numberAtMost(mount.maxGb, policy.maxWritableGb);
addCheck(
pipeline.id,
`WRITABLE_MOUNT_${mount.path || "missing"}`,
@karolloooolkarollooool closed this by deleting the head repository Jul 26, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@karollooool