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.
Model-context secret boundary
Treat everything supplied to a model as disclosure-capable and keep true secrets behind deterministic capability boundaries.
- 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
model-context-secret-boundary.md
Model-context secret boundary
Family: Policy
Disclosure class: PUBLIC-PRACTICE
Maturity: Draft
Enforcement: Reference policy; adopters must enforce secrecy and authority outside the model.
This policy defines a simple security boundary for agent systems: anything supplied to a model must be treated as disclosure-capable. A private repository, hidden prompt, tool description, memory layer, retrieval result, handoff, or encrypted transport does not make content secret after the content is intentionally placed in model context.
The goal is not to distrust every model interaction. The goal is to avoid giving a probabilistic instruction-following system information that must remain confidential for the system to be safe or commercially defensible.
Three information classes
Public
Material that is intentionally safe to publish or disclose to any model, operator, user, log, or downstream system.
Examples include public documentation, public interfaces, open standards, intentionally published Skills, and public conformance fixtures.
Agent-visible private
Material that is not intended for public publication but may legitimately be placed in an agent's context to perform a task.
Treat this class as potentially recoverable. It may appear in provider logs, traces, exports, tool output, summaries, screenshots, debugging artifacts, or adversarial prompt interactions. Do not rely on model instructions such as “never reveal this” as the confidentiality control.
This class can contain ordinary internal working context only when disclosure would be tolerable under the system's risk model.
Agent-inaccessible secret
Material whose disclosure would materially harm security, privacy, contractual obligations, or a product's protected implementation advantage.
This class must stay outside model context. Examples can include credentials, signing material, private authorization rules, secret algorithms, non-public security exceptions, protected routing/scoring logic, and confidential infrastructure state.
If a model needs to use the effect produced by a secret, expose a bounded capability rather than the secret itself.
Capability instead of disclosure
When confidential logic is required to make a decision, place that logic behind a deterministic trust boundary.
The agent may receive:
- a documented capability name;
- the minimum structured inputs it is allowed to provide;
- a bounded result or reason code;
- public-safe failure information;
- a durable operation identity when the effect requires reconciliation.
The agent should not receive the protected implementation, internal decision table, secret-bearing trace, or hidden state merely because it initiated the capability.
The trust boundary may be a local process, service, policy engine, hardware boundary, or another deterministic component appropriate to the deployment. The architectural rule matters more than the transport: the model asks for an outcome; the protected system computes it without disclosing the protected machinery.
Least-context principle
Do not load an entire private repository, policy corpus, incident archive, or secret-bearing configuration when the task only requires a narrow fact or operation.
Prefer:
- the minimum public or agent-visible context required to understand the task;
- narrow retrieval scoped to the current need;
- capability calls for protected decisions or effects;
- bounded outputs that omit unrelated internal state.
Context minimization reduces both accidental disclosure and prompt-injection blast radius.
Do not leak secrets through explanations
A secure capability can still fail if its error messages, reason strings, traces, timing details, or debug payloads reveal protected state.
Return enough information for the caller to act safely, but keep secret-bearing internals on the protected side of the boundary. Audit logs available to models should follow the same rule.
Handoffs, memory, and logs are context surfaces
Treat continuation packets, summaries, memory stores, observability traces, exported conversations, tool journals, and support bundles as disclosure surfaces when they can contain model-visible content.
Do not copy a secret from a protected system into a handoff merely to make continuation convenient. Preserve a stable opaque reference or re-query the protected capability when the next agent needs the result.
Agent compromise test
Before approving a design, assume the agent's complete readable context is exposed to an unintended party.
Ask:
- Are credentials or signing material revealed?
- Can protected algorithms or policy tables be reconstructed?
- Does the context disclose private infrastructure or security exceptions?
- Does it materially shorten reproduction of a protected product differentiator?
- Could the exposed context authorize an effect by itself?
If the answer to any of these is yes, move that information or authority behind a deterministic boundary.
Negative conformance cases
An implementation following this policy should reject or redesign at least these patterns:
- embedding an API secret in a system prompt and instructing the model not to reveal it;
- storing protected authorization logic in a private Skill that is loaded into an external model;
- giving a model full source access to a protected component only so it can call one operation;
- returning a secret decision table inside a tool error or debug trace;
- copying credentials or confidential state into a handoff or memory record;
- treating encrypted transport as proof that model-visible plaintext remains confidential;
- allowing possession of model-visible instructions to become authority for a protected effect.
Non-goals
This policy does not prescribe a specific model provider, encryption scheme, sandbox, RPC protocol, token format, operating-system isolation mechanism, or commercial deployment topology.
It also does not claim that all model-visible private information will be disclosed. The security claim is narrower: information that must remain secret must not depend on the model keeping it secret.
Use this policy together with capability/authority separation, least privilege, explicit effect receipts, and fresh postcondition verification.
# Model-context secret boundary
**Family:** Policy
**Disclosure class:** `PUBLIC-PRACTICE`
**Maturity:** Draft
**Enforcement:** Reference policy; adopters must enforce secrecy and authority outside the model.
This policy defines a simple security boundary for agent systems: **anything supplied to a model must be treated as disclosure-capable.** A private repository, hidden prompt, tool description, memory layer, retrieval result, handoff, or encrypted transport does not make content secret after the content is intentionally placed in model context.
The goal is not to distrust every model interaction. The goal is to avoid giving a probabilistic instruction-following system information that must remain confidential for the system to be safe or commercially defensible.
## Three information classes
### Public
Material that is intentionally safe to publish or disclose to any model, operator, user, log, or downstream system.
Examples include public documentation, public interfaces, open standards, intentionally published Skills, and public conformance fixtures.
### Agent-visible private
Material that is not intended for public publication but may legitimately be placed in an agent's context to perform a task.
Treat this class as **potentially recoverable**. It may appear in provider logs, traces, exports, tool output, summaries, screenshots, debugging artifacts, or adversarial prompt interactions. Do not rely on model instructions such as “never reveal this” as the confidentiality control.
This class can contain ordinary internal working context only when disclosure would be tolerable under the system's risk model.
### Agent-inaccessible secret
Material whose disclosure would materially harm security, privacy, contractual obligations, or a product's protected implementation advantage.
This class must stay outside model context. Examples can include credentials, signing material, private authorization rules, secret algorithms, non-public security exceptions, protected routing/scoring logic, and confidential infrastructure state.
If a model needs to use the effect produced by a secret, expose a bounded capability rather than the secret itself.
## Capability instead of disclosure
When confidential logic is required to make a decision, place that logic behind a deterministic trust boundary.
The agent may receive:
- a documented capability name;
- the minimum structured inputs it is allowed to provide;
- a bounded result or reason code;
- public-safe failure information;
- a durable operation identity when the effect requires reconciliation.
The agent should not receive the protected implementation, internal decision table, secret-bearing trace, or hidden state merely because it initiated the capability.
The trust boundary may be a local process, service, policy engine, hardware boundary, or another deterministic component appropriate to the deployment. The architectural rule matters more than the transport: **the model asks for an outcome; the protected system computes it without disclosing the protected machinery.**
## Least-context principle
Do not load an entire private repository, policy corpus, incident archive, or secret-bearing configuration when the task only requires a narrow fact or operation.
Prefer:
1. the minimum public or agent-visible context required to understand the task;
2. narrow retrieval scoped to the current need;
3. capability calls for protected decisions or effects;
4. bounded outputs that omit unrelated internal state.
Context minimization reduces both accidental disclosure and prompt-injection blast radius.
## Do not leak secrets through explanations
A secure capability can still fail if its error messages, reason strings, traces, timing details, or debug payloads reveal protected state.
Return enough information for the caller to act safely, but keep secret-bearing internals on the protected side of the boundary. Audit logs available to models should follow the same rule.
## Handoffs, memory, and logs are context surfaces
Treat continuation packets, summaries, memory stores, observability traces, exported conversations, tool journals, and support bundles as disclosure surfaces when they can contain model-visible content.
Do not copy a secret from a protected system into a handoff merely to make continuation convenient. Preserve a stable opaque reference or re-query the protected capability when the next agent needs the result.
## Agent compromise test
Before approving a design, assume the agent's complete readable context is exposed to an unintended party.
Ask:
- Are credentials or signing material revealed?
- Can protected algorithms or policy tables be reconstructed?
- Does the context disclose private infrastructure or security exceptions?
- Does it materially shorten reproduction of a protected product differentiator?
- Could the exposed context authorize an effect by itself?
If the answer to any of these is yes, move that information or authority behind a deterministic boundary.
## Negative conformance cases
An implementation following this policy should reject or redesign at least these patterns:
1. embedding an API secret in a system prompt and instructing the model not to reveal it;
2. storing protected authorization logic in a private Skill that is loaded into an external model;
3. giving a model full source access to a protected component only so it can call one operation;
4. returning a secret decision table inside a tool error or debug trace;
5. copying credentials or confidential state into a handoff or memory record;
6. treating encrypted transport as proof that model-visible plaintext remains confidential;
7. allowing possession of model-visible instructions to become authority for a protected effect.
## Non-goals
This policy does not prescribe a specific model provider, encryption scheme, sandbox, RPC protocol, token format, operating-system isolation mechanism, or commercial deployment topology.
It also does not claim that all model-visible private information will be disclosed. The security claim is narrower: **information that must remain secret must not depend on the model keeping it secret.**
Use this policy together with capability/authority separation, least privilege, explicit effect receipts, and fresh postcondition verification.
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 model-context-secret-boundaryUsage guideKullanım rehberi
Treat everything supplied to a model as disclosure-capable and keep true secrets behind deterministic capability boundaries.
Best for: Designing what an agent can receive, store or export. When not to use: Public, non-sensitive documentation workflows where no credentials, private tokens, or confidential payloads exist. 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
- Open model-context-secret-boundary.md. Adopt the native policy as requirements for deterministic enforcement in your own system.
- Classify information as public, agent-visible private or agent-inaccessible secret. Use a deterministic operation for secret-dependent actions; restrict context, logs, memory and handoffs to safe evidence.
- Review the companion conformance suite and record concrete evidence for your own environment.
Example
An agent can receive a connection status and operation receipt without receiving the credential used to make the connection.
Known limitations
Declarative policy only; secret injection, redaction, and output filtering must be enforced outside the language model in deterministic host code.
Frequently asked questionsSık sorulan sorular
Is masking text after generation sufficient?
No. Keep true secrets out of model context in the first place and minimize evidence before export.
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_model_context_secret_boundary_verification.py passed 14/14 against the current Policy/Eval pair, covering exact registry binding, version parity, explicit Eval relation, non-executable declarations, the three information classes, disclosure-capable model context, true secrets outside model context, bounded capability results, least-context retrieval, secret-safe explanations/logs/handoffs, encrypted-transport non-reclassification, independent effect authority, and the exact reviewed conformance case set.
- Feed registry determinism, native-path integrity, Eval integrity, and release-candidate validation checks passed for this verifier. This L1/L2 evidence proves declarative contract alignment only and does not claim host runtime enforcement or private runtime compatibility.
ProvenanceKaynak geçmişi
Clean-room public re-authoring of general agent security and information-boundary practices; no private implementation source is embedded.