Skip to content

Feature Specifications

Implementation-ready feature specifications for apcore subsystems.

One page per apcore subsystem: what it does, the contract the SDKs implement, and Python / TypeScript / Rust usage. These pages are the reference for SDK users and implementers; the normative text is the Protocol Specification.

Specification Categories

Foundational Protocols

Primary interfaces for defining and interacting with modules. - Module Interface — The fundamental contract of an apcore module. - Context Object — Per-invocation state and shared data. - APCore Client — The unified entry point for all SDK features. - Bindings (Decorator/YAML) — How code is mapped to the standard. - ID Normalization — Bare-name canonicalization and non-repairing module-ID conversion.

Execution & Workflow

The runtime behavior of the execution engine. - Core Executor — The 11-step pipeline mechanics. - Execution Pipeline — The Step protocol, strategy presets, and the pipeline engine. - Streaming Pipeline — Incremental output and chunk merging. - Async Task Management — Background execution and concurrency. - Cancellation Mechanism — Cooperative cancellation via cancel tokens (no forced termination).

Security & Governance

Guardrails, identity, and access control. - ACL System — Pattern-based permission rules. - ACL-aware Capability Discovery — Caller-scoped summaries and full-schema lookup. - Identity System — Caller representation and roles. - Approval System — Human-in-the-loop gates. - Call Chain Guard — Recursion and depth protection.

Reliability & Ops

Observability, errors, and system-level introspection. - Observability — Tracing, spans, and exporters. - Metrics & Usage — Call counters, latency histograms, and usage tracking. - Error History — Recent-error aggregation for introspection. - Redaction — Sensitive-key redaction in logs, traces, and events. - Error & AI Guidance — Self-healing error protocols. - Event System — Framework-wide async event bus. - System Modules (system.*) — Built-in control plane modules.

Framework Internals

Deep-level infrastructure, primarily for SDK implementers. - Registry System — Discovery and module management. - Schema System — JSON Schema processing and validation. - Artifact References — Opt-in opaque artifact metadata, schema assertions, and bounded host reads. - Extension Points — The pluggable architecture. - Middleware System — The onion execution model. - Multi-Module Discovery — Multi-class file scanning. - Config Bus — Unified multi-package configuration.

For a high-level overview of how these features fit together, see the Architecture Design or the Core Concepts.