FeedAkış

Open, portable, evidence-driven resources for AI agents. Inspect the source, check the verification level, and adopt only what earns its place.

Yapay zekâ ajanları için açık, taşınabilir ve kanıt odaklı kaynaklar. Kaynağı incele, doğrulama seviyesini gör ve yalnızca işine yarayanı kullan.

Published catalogYayın kataloğu68 catalog releaseskatalog yayını142 MIT source filesMIT kaynak
GitHub ↗JSON ↗LLMs.txt ↗

Bounded local command execution

A narrow local process boundary using explicit argv, scoped working directories, resource bounds, fail-closed validation, and observable process evidence.

VersionSürüm
0.1.1-draft
MaturityOlgunluk
drafttaslak
LicenseLisans
MIT
AuthorsYazarlar
Mete Avcı, Me the Tech
VerificationDoğrulama
passing (L1/L2)başarılı (L1/L2)
Disclosure classYayın sınıfı
PUBLIC-PRACTICE

bounded-local-command-execution.md

markdown105 linessatır4.2 KB

SHA-256 · f67c7f30e866…GitHub ↗

Bounded local command execution

Family: Policy Disclosure class: PUBLIC-PRACTICE Maturity: Draft Enforcement: Reference policy; adopters must implement enforcement in their own runtime.

This policy describes a narrow local process boundary for agent or tool runtimes. It is intentionally about safety properties, not a reusable command allowlist or a production execution architecture.

Principle

A capability should expose the smallest operation it needs, not “run arbitrary shell.” The runtime owns validation and execution; model text or UI presentation does not create authority.

Required properties

Explicit argument vectors

Represent a process as an executable plus an ordered argument vector. Avoid opaque shell strings when direct process invocation is sufficient.

Do not implicitly enable shell expansion, command substitution, pipelines, redirection, profile loading, or environment-dependent aliases.

Narrow capability allowlist

An implementation should define which executable and argument shapes belong to a capability. Unknown commands or unsupported forms fail closed.

The public contract should describe the capability semantics without publishing private operational command inventories.

Exact working directory

Bind execution to an explicit working directory or target root. Reject ambiguous roots, traversal, and escapes outside the allowed scope.

A caller should not gain broader filesystem authority merely by changing cwd.

Bounded resources

Set reasonable bounds for:

  • execution time;
  • input size;
  • captured standard output;
  • captured standard error;
  • number or size of returned records when structured parsing is used.

Bind all process steps and helpers of one bounded operation to one total deadline. A later step receives only the remaining budget; retries or helper fanout must not silently reset that deadline. On limit breach, return a bounded error state rather than streaming unbounded data. If output is truncated, mark it explicitly rather than presenting partial evidence as complete.

Minimal environment

Pass only the environment needed by the capability. Do not assume inherited credentials or machine-global configuration are appropriate for an agent-visible operation.

Sensitive values should be removed or masked before output crosses the tool boundary.

Preserve process evidence

A result should make the observable process outcome explicit, for example:

  • exit code;
  • whether a timeout occurred;
  • bounded stdout/stderr or a structured projection;
  • target/cwd identity;
  • whether output was truncated or masked.

Do not turn a transport error into an invented process result.

Read-only means read-only

A read capability must not smuggle mutation through helpers, hooks, aliases, generated files, or “convenient” fallback commands.

If a task actually needs mutation, expose a separate effect boundary with its own authority and verification.

Fail closed on ambiguity

Reject unsupported executable forms, unresolved targets, invalid encoding, unsafe paths, and ambiguous parsing. A safe failure is preferable to guessing what the caller meant.

Cross-platform behavior

Define semantics first and platform adapters second. Windows, Linux, and macOS implementations may use different process APIs, but should preserve the same observable contract:

  • the same capability intent;
  • equivalent target containment;
  • equivalent bounds;
  • equivalent success/failure meaning;
  • equivalent privacy treatment.

Platform parity tests should include negative cases, not only happy-path output.

Suggested negative tests

At minimum, test that the boundary rejects or safely handles:

  1. path traversal outside the allowed root;
  2. unsupported executable or argument shape;
  3. shell metacharacters when no shell is expected;
  4. timeout or hung process;
  5. oversized output;
  6. undecodable or malformed output;
  7. a read-only capability that attempts a write;
  8. sensitive output that must be masked;
  9. a missing or changed target root.

Non-goals

This policy does not define a production scheduler, remote execution protocol, recovery algorithm, provider selection strategy, privileged command catalog, or machine topology.

It is a reusable public safety contract for small local process capabilities.

MIT · Exact native bytes from methetech/feed · Copy or download does not install a multi-file package.

MIT · methetech/feed deposundaki birebir dosya · Kopyalama veya indirme çok dosyalı bir paketi kurmaz.

Try it yourself (Feed Labs)Kendi ajanında dene (Feed Labs)

Export blinded scenarios without descriptive IDs or expected answers, then compare your assistant without vs. with this artifact loaded:

Açıklayıcı kimlikler ve beklenen cevaplar gizlenmiş kör senaryoları dışa aktarıp kendi asistanında bu kaynak olmadan ve bu kaynakla karşılaştırma yap:

python -B scripts/eval_review.py --blind bounded-local-command-execution

Usage guideKullanım rehberi

A narrow local process boundary using explicit argv, scoped working directories, resource bounds, fail-closed validation, and observable process evidence.

Best for: Exposing a narrowly scoped local process operation. When not to use: In-process library calls or sandboxed pure computations that do not spawn OS child processes. Status: Catalog release (releaseEligible: true; declarative L1/L2 contract verified; host runtime enforcement remains separate).

Trust summary

  • License: MIT
  • Executable scripts: None
  • Network / credential access required: No
  • External dependencies: None
  • Use side effects: Advisory / declarative contract only
  • Verification: passing (Level 1–2 structural and executable contract verification; host runtime enforcement and live model compliance remain separate)

How to use

  1. Open bounded-local-command-execution.md. Adopt the native policy as requirements for deterministic enforcement in your own system.
  2. Specify an executable and literal argv shape, an exact working directory, an operation allowlist, one total deadline and bounded stdout/stderr. Define denial and receipt behavior; implement the checks in the target runtime.
  3. Review the companion conformance suite and record concrete evidence for your own environment.

Example

For a file inventory, reject an out-of-root working directory and treat unexpected shell metacharacters as literal input or reject them.

Known limitations

Declarative policy only; argv allowlisting, working-directory containment, deadlines, and output caps must be enforced deterministically by the host runtime.

Frequently asked questionsSık sorulan sorular

Does this provide a ready-made command allowlist?

No. The policy describes guarantees; each adopter must define and enforce its own narrow operations.

Is this a verified release?

This declarative artifact is included in the release catalog based on passing L1/L2 structural and contract verification. Passing contract checks do not replace host runtime enforcement; inspect the registry record for exact scope and limitations.

Can I adapt it for my team or commercial project?

Yes. Feed's MIT license permits use, modification and redistribution, including commercial use, with the required notices. It does not grant access to external services or trademarks.

CompatibilityUyumluluk

No runtime-specific compatibility evidence is declared. Treat this artifact as a declarative specification whose enforcement depends on the consuming runtime.

Çalışma ortamına özgü uyumluluk kanıtı beyan edilmemiş. Bu kaynağı, uygulaması kullanan çalışma ortamına bağlı bir deklaratif sözleşme olarak değerlendirin.

Declared effectsBeyan edilen etkiler

ExecutableÇalıştırılabilir
NoHayır
Network accessAğ erişimi
NoHayır
Filesystem writesDosya yazma
NoHayır

Verification evidenceDoğrulama kanıtı

  • tests/test_public_contract_debt_verification.py passed all four focused public Rule/Policy pair checks, including exact native path and version binding, non-executable effect declarations, this pair's contract assertions and exact reviewed positive/negative scenario set. Coverage: explicit literal argv, contained working directory, one total execution deadline and remaining helper budget, bounded outputs, minimal environment, privacy, no mutation disguised as read, unknown/malformed outcomes and platform contract equivalence.
  • The full Feed release-candidate validation gate passed. This L1/L2 verification proves declarative contract structure and synthetic fixture coverage only; host runtime enforcement and live model compliance remain separate.

ProvenanceKaynak geçmişi

originalOrijinal Clean-room public re-authoring of general engineering practices; no private implementation source is embedded.