Ver Fonte

docs(sandbox): cross-link Landlock snapshot rule

Hypatia May há 1 mês atrás
pai
commit
b0f33f13f4

+ 4 - 1
examples/acp-agent/tests/fixtures/partial-landlock-sandbox.ts

@@ -3,7 +3,10 @@ import { SandboxProvider } from '@deepseek-ai/dsh-sandbox'
 
 const NOTICE = 'landlock-run: partial enforcement (older Landlock ABI)'
 
-/** Snapshot-only provider that reproduces an older-ABI Landlock launch. */
+/**
+ * Snapshot-only provider that reproduces an older-ABI Landlock launch. Keep
+ * its failure tuple aligned with `sandbox-local`'s Landlock runner rule.
+ */
 export default class PartialLandlockSandboxProvider extends SandboxProvider {
   confine(argv: readonly string[], _policy: SandboxPolicy): ConfinedArgv {
     return {

+ 2 - 0
packages/sandbox/sandbox-local/src/index.ts

@@ -151,6 +151,8 @@ const DENIAL_SIGNATURES = {
  * fatal-line launcher-failure contract. Bubblewrap's current fatal paths exit
  * 1 but its public contract does not reserve that status, while sandbox-exec
  * publishes no launcher-failure status; those backends remain signature-only.
+ * Keep the Landlock tuple aligned with the assembled snapshot fixture at
+ * `examples/acp-agent/tests/fixtures/partial-landlock-sandbox.ts`.
  */
 const RUNNER_FAILURE_RULES = {
   bwrap: [{ fatalSignatures: ['bwrap: '] }],