OpenAPI Construction Packages¶
Date: 2026-03-11 Status: Execution baseline Scope: Package-based implementation plan for OpenAPI construction before broad capability population
Objective¶
Define implementation work in bounded packages by scope, each ending with a commit. This plan assumes capabilities remain abstract and canonical in the registry.
Execution Rules¶
- Package boundaries are scope-driven, not capability-count driven.
- Each package ends with one commit that is green for its acceptance checks.
- Do not change capability definitions in registry during construction packages.
- Keep pythoncall defaults as fallback until OpenAPI behavior is verified.
- Verify from local agent-skills instances, never relying on centralized runtime execution.
Package 1: OpenAPI Runtime Hardening¶
Scope¶
- Strengthen OpenAPI invocation behavior for real services.
- Freeze minimum runtime-level policies for HTTP invocation.
In Scope¶
- Improve HTTP request handling in runtime/openapi_invoker.py.
- Standardize timeout/error classification behavior at invoker boundary.
- Add explicit metadata capture needed for tracing and diagnostics.
Out of Scope¶
- Capability-specific mappings.
- Consumer-facing public API endpoints.
Deliverables¶
- Runtime code updates in OpenAPI invoker path.
- Tests focused on OpenAPI runtime behaviors.
- Documentation updates for invocation policy.
Commit Gate¶
- Unit/integration checks for openapi invoker pass.
- Existing smoke and contracts remain green.
Suggested Commit¶
openapi: harden runtime invoker behavior
Package 2: OpenAPI Verification Infrastructure¶
Scope¶
- Consolidate reusable local-instance OpenAPI verification harness.
In Scope¶
- Generic scenario runner in tooling/verify_openapi_bindings.py.
- Reusable local mocks in tooling/openapi_harness/.
- Declarative scenario files in tooling/openapi_scenarios/.
- JSON reporting for CI integration.
Out of Scope¶
- Real external service onboarding beyond selected pilot services.
Deliverables¶
- Harness supports single scenario and all scenarios.
- Compatibility wrapper retained for existing command usage.
- At least one validated scenario (already achieved with data.schema.validate).
Commit Gate¶
python tooling/verify_openapi_bindings.py --allpasses locally.- Existing verification commands still work.
Suggested Commit¶
openapi: add reusable local verification harness
Package 3: Security and Error Contract Foundation¶
Scope¶
- Finalize adapter-facing error model and security baseline for OpenAPI paths.
In Scope¶
- Freeze deterministic runtime-to-HTTP error mapping.
- Define auth and sensitive-field redaction policy for OpenAPI paths.
- Align observability fields with error handling contract.
Out of Scope¶
- Full consumer-facing API implementation.
Deliverables¶
- Error contract document and implementation notes.
- Security policy document for OpenAPI usage.
- Runtime hooks or adapter stubs prepared for enforcement.
Commit Gate¶
- Error contract approved and referenced by implementation docs.
- No regressions in runtime logs/redaction behavior.
Suggested Commit¶
openapi: freeze error contract and security baseline
Package 4: CI Quality Gates for OpenAPI¶
Scope¶
- Promote OpenAPI verification to CI as a first-class gate.
In Scope¶
- Add CI job for OpenAPI scenario verification.
- Persist scenario report artifacts.
- Fail pipeline on OpenAPI scenario regressions.
Out of Scope¶
- Full matrix against all future capabilities.
Deliverables¶
- Workflow updates.
- OpenAPI verification report artifact in CI.
Commit Gate¶
- CI workflow runs OpenAPI verification successfully on baseline scenarios.
- Existing jobs remain stable.
Suggested Commit¶
ci: add openapi verification gate
Package 5: Real-Service Pilot Integration¶
Scope¶
- Replace mock path for pilot capability with a real OpenAPI service path.
In Scope¶
- Introduce real service descriptor for pilot capability.
- Update binding mapping as needed without changing capability schema.
- Add scenario profile for real service validation (or environment-gated run).
Out of Scope¶
- Mass migration of all capabilities.
Deliverables¶
- Real-service service descriptor and binding validated.
- Documented local setup requirements for instance-level execution.
Current Pilot Status¶
- Local real-service pilot implemented for
data.schema.validate. - Verification command:
python tooling/verify_openapi_data_schema_validate_local_real.py.
Commit Gate¶
- Pilot real-service scenario passes in configured local environment.
- Fallback path remains available.
Suggested Commit¶
openapi: integrate first real service pilot
Package 6: Documentation Closure for Construction Phase¶
Scope¶
- Close construction stage with operational docs for team execution.
In Scope¶
- How-to: add new OpenAPI binding and service safely.
- How-to: add new scenario and mock for harness.
- Construction completion checklist and promotion criteria to population stage.
Out of Scope¶
- Full population runbook for all capabilities.
Deliverables¶
- Updated OpenAPI docs set with clear handoff to population phase.
Commit Gate¶
- Documentation linked from README and OpenAPI phase docs.
- Team can execute next capability onboarding from docs only.
Suggested Commit¶
docs: close openapi construction phase guidance
Completion Criteria for Construction Stage¶
Construction stage is complete when:
- Runtime OpenAPI behavior is hardened for real-service use.
- Reusable verification harness is in place and CI-gated.
- Error and security contracts are frozen and documented.
- At least one pilot capability runs through a real OpenAPI service.
- Documentation is sufficient to start capability population in batches.
Start Order¶
- Package 1
- Package 2
- Package 3
- Package 4
- Package 5
- Package 6
This order minimizes rework by stabilizing runtime and verification before scaling service onboarding.