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 ↗

A public SDK is a contract consumer, not a service mirror

Keep public SDKs bound to versioned public contracts, narrow dependencies, explicit credential modes, authority-neutral clients, honest failure semantics, compatibility evidence, and audited final packages.

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

public-sdk-is-a-contract-consumer.md

markdown72 linessatır3.7 KB

SHA-256 · 1828c2546e57…GitHub ↗

A public SDK is a contract consumer, not a service mirror

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

A client SDK should make an intentionally public interface easier to use. It should not reproduce the private service, control plane, orchestration logic, credential store, or internal data model behind that interface.

Start from a versioned public contract

Before adding client code, identify the exact public contract/version the SDK consumes.

The SDK may provide ergonomic types, validation, transport adapters, retries that are safe under the public idempotency contract, examples, and compatibility helpers. It should not invent behavior that the public contract does not promise.

If the public contract is not stable enough to implement independently, fix the contract before growing the SDK.

Keep dependency direction outward

The SDK may depend on reviewed public/shared contract packages. Protected service implementation must not become a direct or transitive client dependency.

Do not vendor a private monorepo, import a server package for convenience, or generate client code from private schemas that reveal more than the intended public interface.

Review the final distributed package, not only source imports.

Authority stays outside the SDK

An SDK can authenticate a caller, construct a request, validate local input, and present an operation result. Those conveniences do not grant server-side or resource-owner authority.

The receiving system still evaluates the policy/consent required for the exact effect.

Do not encode hidden policy tables, privileged fallback rules, managed credentials, or private routing/selection logic in the SDK merely to make calls feel seamless.

Credentials follow the integration contract

Document whether the SDK uses user-supplied credentials, a managed-service flow, an already-authenticated local session, or another deliberate mode.

The SDK should not silently move credentials or sessions across trust boundaries, and one failed access mode must not automatically authorize another mode.

Preserve failure and uncertainty semantics

Expose enough of the public contract for callers to distinguish deterministic rejection from accepted/running/completed/failed/unknown outcomes where the API supports long-lived effects.

Do not convert a timeout into a false definitive failure if the operation may still have happened. Provide the public reconciliation mechanism instead.

Compatibility requires evidence

Before claiming support for a runtime/API version, test the SDK against that exact contract and record limitations.

Useful public-safe tests include:

  • request/result schema compatibility;
  • unsupported-version rejection;
  • denial/error mapping;
  • idempotency/retry behavior promised by the contract;
  • unknown-outcome reconciliation;
  • serialization round trips;
  • synthetic credential and target examples;
  • forbidden/private dependency checks;
  • final-package audit.

A type checker passing against one local implementation is not cross-version compatibility proof.

Keep examples synthetic

Examples and fixtures should use invented identities, resources, revisions, credentials, and payloads. Do not turn real customer state, captured sessions, private endpoints, or production logs into SDK documentation.

Completion test

Before releasing an SDK package, a reviewer should be able to identify its public contract/version, dependency allowlist, credential mode, authority boundary, failure/reconciliation semantics, compatibility evidence, and final distribution contents.

If using the SDK requires understanding or shipping private service internals, the boundary is not ready for public client packaging.

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 public-sdk-is-a-contract-consumer

Usage guideKullanım rehberi

Keep public SDKs bound to versioned public contracts, narrow dependencies, explicit credential modes, authority-neutral clients, honest failure semantics, compatibility evidence, and audited final packages.

Best for: Creating a public SDK without recreating its protected service. When not to use: Internal private service modules that are never published as an external client library or SDK. 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 public-sdk-is-a-contract-consumer.md. Add the native rule to the relevant agent guidance or engineering review checklist.
  2. Choose the versioned public contract, expose narrow client ergonomics, define the credential mode and uncertainty handling, and audit the final package. Test compatibility against the exact contract.
  3. Review the companion conformance suite and record concrete evidence for your own environment.

Example

A client can validate request shapes and surface an operation receipt; it does not need the service's orchestration or policy implementation.

Known limitations

Advisory rule only; enforcing contract pinning, minimal dependencies, and clean final package inspection requires build and publication gates.

Frequently asked questionsSık sorulan sorular

Can client convenience override server-side checks?

No. Authority remains with the target-owning system and applicable policy.

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_sdk_contract_consumer_verification.py passed 14/14 for the reviewed Rule and Eval pair, including exact identity/version, non-executable effects, versioned public interfaces, transitive dependency and distribution boundaries, authority-neutral clients, explicit credential modes, unknown outcome/replay semantics, exact compatibility obligations and synthetic cases.
  • This L1/L2 evidence proves public contract and fixture verification only; no runtime-specific SDK implementation or host enforcement is claimed.

ProvenanceKaynak geçmişi

originalOrijinal Clean-room public re-authoring of general SDK/public-contract, dependency, credential, compatibility, and distribution-boundary practices; no private endpoint, schema, service implementation, or orchestration logic is embedded.

Related catalog releasesİlgili katalog yayınları