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 ↗

Read-only is not unbounded

Treat read-only capability as a bounded security contract with exact targets, finite budgets, containment, minimized environment, and fail-closed parsing.

VersionSürüm
0.1.0-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

read-only-is-not-unbounded.md

markdown61 linessatır3.5 KB

SHA-256 · 96300c0b6400…GitHub ↗

Read-only is not unbounded

Family: Rule Disclosure class: PUBLIC-PRACTICE Maturity: Draft

A capability can be read-only and still be unsafe.

Read operations can consume unbounded time or memory, traverse outside the intended target, inherit dangerous environment state, follow mutable references, expose confidential output, or trigger hidden network behavior. Treat "does not write" as one property, not as the complete security model.

Required bounds

For a read-only local capability, define the smallest useful contract for each of these:

  1. Target identity — require the exact root, resource, or object intended by the caller. Do not silently widen to a parent, sibling, or similarly named target.
  2. Operation shape — allow known operations and explicit arguments rather than an open-ended command surface.
  3. Input size — bound caller-controlled input before execution.
  4. Output size — cap retained output and fail closed on overflow rather than growing memory or temporary files without limit.
  5. Deadline — use one bounded deadline for the whole logical read, including any internal sub-reads.
  6. Environment — pass only environment values needed for the operation; do not inherit unrelated configuration that can change meaning or trigger credentials, network access, hooks, or helpers.
  7. Path containment — reject traversal, unexpected absolute paths, path-pattern expansion, and other syntax that widens the authorized scope.
  8. Reference identity — when a read depends on a file or descriptor that may change while being opened, verify that the object read is the object that was inspected.
  9. Error behavior — malformed, ambiguous, truncated, or unsupported input should fail closed instead of returning a plausible partial result.
  10. Privacy boundary — apply output masking or minimization before returning information across a trust boundary.

Total budgets, not per-step resets

If one logical read needs several internal operations, a fresh full timeout or output allowance for every step can multiply the caller's effective authority.

Prefer one overall budget. Each sub-operation receives only the remaining allowance.

Avoid hidden side effects

When the purpose is observation, disable optional behaviors that can mutate state, prompt for credentials, fetch remote objects, acquire avoidable locks, run hooks, or consult unrelated global configuration.

If such behavior cannot be disabled or proven absent, the capability is not safely read-only merely because its documented verb sounds observational.

Parse defensively

Structured command output is still untrusted input.

Reject:

  • truncated records;
  • unknown status/type codes;
  • unsafe or ambiguous path forms;
  • malformed encodings;
  • records that require a companion field but do not contain it.

Do not guess what malformed output "probably" meant.

Concurrency invariant

Repeated or parallel reads should not change the observed resource merely because they were performed. Where practical, verify that read-only operations leave relevant mutation-sensitive state unchanged.

Completion test

Before calling a read capability bounded, verify that it has an exact target, a narrow operation set, containment, finite input/output/time budgets, minimized environment, deterministic failure behavior, and no required mutation or hidden remote work.

If any of those properties is unknown, describe the capability as unverified rather than "safe because read-only."

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 read-only-is-not-unbounded

Usage guideKullanım rehberi

Treat read-only capability as a bounded security contract with exact targets, finite budgets, containment, minimized environment, and fail-closed parsing.

Best for: Reviewing search, inventory or inspection operations. When not to use: Tiny bounded static lookups over fixed constant tables with no user-supplied paths, globs, or large I/O. 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 read-only-is-not-unbounded.md. Add the native rule to the relevant agent guidance or engineering review checklist.
  2. Specify target, operation shape, input/output budgets, a total deadline, environment, containment, identity, privacy and failure semantics. Exercise denial and malformed-output fixtures.
  3. Review the companion conformance suite and record concrete evidence for your own environment.

Example

A log-reading operation returns a capped, minimized result and refuses out-of-scope file paths even though it never writes.

Known limitations

Advisory rule only; actual byte/count caps, timeout budgets, symlink containment, and fail-closed parsers must be implemented by host tools.

Frequently asked questionsSık sorulan sorular

Does marking a tool read-only make it safe?

No. Time, memory, path, network and disclosure risks still require explicit bounds.

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ı

  • Artifact-specific verifier tests/test_read_only_is_not_unbounded_verification.py passed 8/8 against the current rule/eval pair, covering exact registry binding, version parity, required safety sections, reviewed case IDs, and material case semantics.
  • Feed registry native-path, Eval integrity, publication-readiness, release-readiness, and diff checks passed for this promotion.

ProvenanceKaynak geçmişi

originalOrijinal Clean-room public re-authoring of general bounded read-capability and fail-closed engineering practices; no private implementation source is embedded.