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.
Protected source stays out of client artifacts
Protect private implementation at the distribution boundary by allowlisting client dependencies and inspecting final artifacts, not by relying on repository privacy or import conventions.
- 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
protected-source-stays-out-of-client-artifacts.md
Protected source stays out of client artifacts
Family: Rule
Disclosure class: PUBLIC-PRACTICE
Maturity: Draft
Private source control does not protect implementation knowledge after that implementation is bundled into a distributed client artifact.
If code, bytecode, generated data, embedded strings, or transitive package contents are shipped to a user's machine, assume a determined recipient can inspect them. Repository visibility, path names, import guards, obfuscation, or environment labels are not substitutes for a real distribution boundary.
Separate source ownership from distribution
A private repository can be the correct source owner while still being the wrong dependency for a desktop, browser, mobile, or other distributable client.
Before release, classify components as one of:
- intentionally distributable client code;
- public/shared contract material;
- server-side or otherwise protected implementation that must not ship.
The classification must survive the build graph.
Audit the final artifact
Source-tree review is necessary but insufficient. Inspect the actual release artifact that users receive.
Check for:
- private source modules or package trees;
- compiled/bytecode copies of protected modules;
- generated resources that reproduce protected logic or data;
- broad include/collect rules that pull unrelated private packages transitively;
- embedded identifiers or strings that indicate a supposedly excluded implementation was bundled;
- archive path traversal or unexpected package roots;
- dependencies that were absent from the intended client allowlist.
An audit that cannot inspect the intended release artifact should report unverified, not pass.
Prefer allowlists over broad collection
Client builds should include the smallest reviewed dependency set required for their public/local responsibility.
Avoid build rules equivalent to "include the whole application package" when only a narrow protocol or UI surface is intended. Broad collection silently collapses architecture boundaries at release time.
Keep protected decisions server-side when appropriate
When commercial or security-sensitive logic does not need to execute on the client, expose a narrow authenticated contract and keep the implementation on the trusted side of the boundary.
The client may know the public operation, inputs, outputs, errors, and evidence semantics without receiving the private algorithm, credential, routing strategy, or decision table behind it.
Verify transitive dependencies
Review both direct imports and the built dependency graph. A clean top-level package can still leak protected implementation through an indirect dependency, plugin discovery rule, bundled data directory, or generated binding.
Use SBOM/build-manifest evidence when available, but also inspect the final artifact because declared dependency metadata can differ from what packaging tools actually collect.
Scanners provide evidence, not proof
Known-signature scanning is useful for blocking obvious regressions, but absence of a known marker does not certify confidentiality. Compiled, compressed, transformed, or newly renamed content may evade a static signature list.
Treat scanning as one release gate among dependency review, build configuration review, and final-artifact inspection.
Completion test
Before claiming a protected implementation is absent from clients, verify the build uses an explicit dependency boundary and inspect the actual distributable artifact.
If the only evidence is "the source repository is private" or "the module is not normally imported," the confidentiality boundary is not proven.
# Protected source stays out of client artifacts
**Family:** Rule
**Disclosure class:** `PUBLIC-PRACTICE`
**Maturity:** Draft
Private source control does not protect implementation knowledge after that implementation is bundled into a distributed client artifact.
If code, bytecode, generated data, embedded strings, or transitive package contents are shipped to a user's machine, assume a determined recipient can inspect them. Repository visibility, path names, import guards, obfuscation, or environment labels are not substitutes for a real distribution boundary.
## Separate source ownership from distribution
A private repository can be the correct source owner while still being the wrong dependency for a desktop, browser, mobile, or other distributable client.
Before release, classify components as one of:
- intentionally distributable client code;
- public/shared contract material;
- server-side or otherwise protected implementation that must not ship.
The classification must survive the build graph.
## Audit the final artifact
Source-tree review is necessary but insufficient. Inspect the actual release artifact that users receive.
Check for:
- private source modules or package trees;
- compiled/bytecode copies of protected modules;
- generated resources that reproduce protected logic or data;
- broad include/collect rules that pull unrelated private packages transitively;
- embedded identifiers or strings that indicate a supposedly excluded implementation was bundled;
- archive path traversal or unexpected package roots;
- dependencies that were absent from the intended client allowlist.
An audit that cannot inspect the intended release artifact should report **unverified**, not pass.
## Prefer allowlists over broad collection
Client builds should include the smallest reviewed dependency set required for their public/local responsibility.
Avoid build rules equivalent to "include the whole application package" when only a narrow protocol or UI surface is intended. Broad collection silently collapses architecture boundaries at release time.
## Keep protected decisions server-side when appropriate
When commercial or security-sensitive logic does not need to execute on the client, expose a narrow authenticated contract and keep the implementation on the trusted side of the boundary.
The client may know the public operation, inputs, outputs, errors, and evidence semantics without receiving the private algorithm, credential, routing strategy, or decision table behind it.
## Verify transitive dependencies
Review both direct imports and the built dependency graph. A clean top-level package can still leak protected implementation through an indirect dependency, plugin discovery rule, bundled data directory, or generated binding.
Use SBOM/build-manifest evidence when available, but also inspect the final artifact because declared dependency metadata can differ from what packaging tools actually collect.
## Scanners provide evidence, not proof
Known-signature scanning is useful for blocking obvious regressions, but absence of a known marker does not certify confidentiality. Compiled, compressed, transformed, or newly renamed content may evade a static signature list.
Treat scanning as one release gate among dependency review, build configuration review, and final-artifact inspection.
## Completion test
Before claiming a protected implementation is absent from clients, verify the build uses an explicit dependency boundary and inspect the actual distributable artifact.
If the only evidence is "the source repository is private" or "the module is not normally imported," the confidentiality boundary is not proven.
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 protected-source-stays-out-of-client-artifactsUsage guideKullanım rehberi
Protect private implementation at the distribution boundary by allowlisting client dependencies and inspecting final artifacts, not by relying on repository privacy or import conventions.
Best for: Preparing a distributable SDK, desktop app, web bundle or release archive. When not to use: 100% public open-source libraries with no private companion service, internal modules, or restricted source boundary. 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 protected-source-stays-out-of-client-artifacts.md. Add the native rule to the relevant agent guidance or engineering review checklist.
- Classify intended client code, public contracts and protected implementation. Allowlist dependencies, review generated and transitive files, and inspect the final distributed artifact.
- Review the companion conformance suite and record concrete evidence for your own environment.
Example
Check a packaged client for server-only modules and generated private resources, even if source imports looked clean.
Known limitations
Advisory rule only; allowlisting client dependencies and inspecting built archives/bundles must be enforced in automated packaging and release checks.
Frequently asked questionsSık sorulan sorular
Does a private source repository protect shipped code?
No. Recipients can inspect distributed artifacts; source privacy is not a packaging boundary.
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_protected_source_distribution_verification.py passed 10/10 against the current Rule/Eval pair, covering exact registry binding, version parity, explicit Eval relation, non-executable effect declarations, distribution-boundary sections, shipped-content inspectability, final-artifact fail-closed behavior, scanner limits, reviewed case IDs, and material case behavior.
- Feed registry determinism, native-path integrity, Eval integrity, publication-readiness, release-readiness, and diff checks passed for this promotion.
ProvenanceKaynak geçmişi
Clean-room public re-authoring of general software distribution confidentiality, dependency allowlisting, and final-artifact audit practices; no private implementation source is embedded.