Thomas Piacentini
← Atelier

Étape de projet

Parse the capability request

Texte original · anglais120 min

Stage 1 of 4. Rust. Plan about 2 hours.

Represent the threat model as four explicit booleans: untrusted code, secret-bearing host, denied network and required kernel separation. Reject unknown keys and ambiguous boolean values. A policy evaluator is only as useful as the request it actually understood.

pj sandbox ladder 1

Implementation boundary

rust
pub fn needs(text:&str)->Result<Needs,Error>

Primary reference: Official reference.

Worked Orchard case

Before coding, review Rust ownership and Result and Docker for AI.

Write the threat requirement as booleans before selecting a runtime. Here network=true means network denial is required, and host_kernel=true means a separate kernel is required. Neither name grants access.

text
untrusted=true,secrets=true,network=true,host_kernel=false
required: filesystem boundary + denied network

Build and inspect

Reject duplicate keys and values other than exact true/false. Do not guess what network=yes means.

Implement the stage in your learner workspace. The CLI helpers are provided adapters and import your functions; they do not substitute the reference solution.

bash
python3 scripts/project_test.py sandbox-ladder --init learning-artifacts/sandbox-ladder
python3 scripts/project_test.py sandbox-ladder --stage 1 --path learning-artifacts/sandbox-ladder

Predict the intermediate state above, then run the stage. A fresh stub fails; a passing reference run does not establish completion of your learner workspace.

Investigate next

Which additional requirement would make a shared-kernel container insufficient?

Code et livrables 7
Ce que vous en retenez

Enregistré dans votre carnet sur cet appareil.

Sources et limites

Les repères de lecture sont déclaratifs. Les résultats de tests sont enregistrés séparément ; ils valent pour les cas exécutés.

AI Engineering from Scratch · 3f9715c · MIT

Télécharger ce fichier ↓