SAP Agent Context publishes source-backed context bundles for local AI agents, McCoy-style generators, and other tools that need SAP implementation context.
Generated bundles identify this repository with:
producer:
name: sap-agent-context
contract: sap-agent-context-bundle
compatibility_bundle_kind: sap_fo_context_bundlebundle_kind: sap_fo_context_bundle remains at the top level for backward
compatibility with existing McCoy integration work. New consumers should key
public-facing behavior from producer.contract.
Each colleague can use the repository as a local agent context provider:
git clone <repo-url> sap-agent-context
cd sap-agent-context
uv sync
uv run sap-agent-context query \
--intent fo.workflow \
--topic "supplier-invoice workflow" \
--sap-product s4hana_cloud_public \
--limit 12 \
--output build/context-bundles/supplier-invoice-workflow.jsonConsumers can read generated JSON bundles directly or register the
build/context-bundles/ folder as a local source provider.
- Preserve citations and source access labels in downstream source maps.
- Surface
status,gaps,quality_signals, stale items, expired items, and gated-source markers before final output generation. - Treat
readyas usable context andneeds_curationas draft-only context that requires explicit curation acceptance or follow-up. - Treat expired items as blocked for final use until they are recertified or replaced.
- Use
relations.fields,relations.objects,relations.roles, claims, and summaries to populate field mapping, object scope, authorization, test, and decision-rule sections. - Keep generated bundles as rebuildable artifacts. The canonical source remains
records/*.jsonl;knowledge/**/*.yamlis a legacy authoring/import path. - Follow the Retrieval trust boundary: do not
promote
needs_curation,report_only, gated, expired orinternal_derivedrecords into customer-specific proof without the required verification.
Deterministic consultant answers are governed by schema/answer-profiles.json
and the shape in schema/answer-profiles.schema.json. Profiles describe the
current classification support records, fixture/probe coverage expectations,
required answer citation ids, and fail-closed boundaries. They are a planning and
runtime-safety contract, not SAP truth, tenant proof, release proof, customizing
proof, or content-coverage proof.
Future ready answer domains must add or update a profile, positive fixtures,
nearby adversarial probes, citation requirements, and boundary notes before they
are treated as consumer-ready. Generic or unsupported prompts should stay
needs_curation until the repo has a source-backed answer contract; do not use
profile count or broad keywords as maturity proof.
McCoy FO Generator v2 can register the bundle folder as a local-folder provider, but SAP Agent Context is not coupled to McCoy. Other tools can consume the same JSON bundle contract directly.
See Context bundle consumer contract for
the field-level JSON contract, and docs/mccoy-fo-generator-v2-hook.md for the
McCoy-specific command example.