Provider-neutral shared-core repository for governed agentic workflow artifacts.
This repository is a core, contract, export, and validation system, not an end-user product.
This repo bundles reusable, provider-neutral workflow building blocks and the governance around them:
- portable skills and skill metadata
- machine-readable contracts and registry snapshots
- provider adapter exports (canonical and compatibility)
- validators, build scripts, and certification evals
- templates and examples for adoption
- repo-local orchestration skills for routing and surface decisions
Primary audiences:
- maintainers of this shared core
- consumer repositories adopting the core
- provider and adapter authors maintaining exports and packaging boundaries
- not a single product app or end-user UI
- not a Codex-only repository
- not a provider-specific monolith
- not a replacement for consumer-local governance or overlay files
- not evidence of live runtime readiness unless validator-backed or artifact-backed
- Portable Core: semantics, skills, contracts, and the neutral registry in
core/. - Compatibility Mirrors: transition and compatibility surfaces for older consumers in
skills/,contracts/, legacyproviders/*, anddocs/tool-contracts/catalog.json. - Provider Exports: generated provider-specific bundles under
providers/<provider>/export.json. - Governance and Authority: documented class logic and claim logic in
docs/architecture.mdanddocs/authority-matrix.md. - Enforcement and Gates: validators and evals under
scripts/tools/andevals/. - Workflow Entry: root workflow guidance in
WORKFLOW.mdplus repo-local routing skills under.agents/skills/.
Important: the class model (canonical, operational, derived, archive) is logical only. It does not imply a physical directory split by class.
This is an orientation view of this repository root as the active shared-core node under C:\workspace\main_projects. It does not replace the authority model in AGENTS.md, WORKFLOW.md, docs/architecture.md, or docs/authority-matrix.md.
flowchart TD
Workspace["C:/workspace/main_projects"]
Portfolio["portfolio/\nworkspace-local governance and evidence"]
RepoRoot["model-agnostic-workflow-system/\nshared-core repo root"]
Governance["AGENTS.md + WORKFLOW.md\nrepo governance and workflow entry"]
Docs["docs/\narchitecture, authority, compatibility, usage"]
Core["core/\nportable semantics and skill surfaces"]
Contracts["core/contracts/\ncanonical machine-readable contracts"]
Skills["core/skills/ + skills/\nportable and compatibility skills"]
Validators["scripts/tools/ + evals/\nvalidators, builders, certification fixtures"]
Mirrors["contracts/ + legacy provider dirs + docs/tool-contracts/catalog.json\ncompatibility mirrors"]
Exports["providers/*/export.json\nprovider-specific export projections"]
Templates["templates/ + examples/\nadoption and reference artifacts"]
Consumers["consumer repos\nlocal overlays and .codex manifests"]
Workspace --> Portfolio
Workspace --> RepoRoot
Portfolio -. "external governance pointer only" .-> RepoRoot
RepoRoot --> Governance
Governance --> Docs
Governance --> Core
Core --> Contracts
Core --> Skills
Contracts --> Validators
Contracts --> Mirrors
Contracts --> Exports
Templates --> Consumers
Exports --> Consumers
Skills --> Consumers
Validators --> RepoRoot
Data flow:
- Work enters through
AGENTS.mdandWORKFLOW.md, which identify the governing sources, workflow class, validation posture, and stop conditions. - Canonical shared semantics are changed in
core/contracts/*,core/skills/*, and policy surfaces when the change is reusable and provider-neutral. - Registry and compatibility projections are regenerated through the builder scripts when canonical contract inputs change.
- Provider exports under
providers/*/export.jsonare derived packaging projections, not second canonical sources. - Consumer repositories adopt the shared core through local overlays,
.codexmanifests, and repo-local documentation while keeping their own product, runtime, and evidence authority. - Validators and evals check repository consistency and certification fixtures; they do not create runtime readiness unless a concrete runnable path or generated artifact proves it.
- The external portfolio layer may route workspace-local governance and evidence back to this repo, but portfolio rules remain outside this shared-core repository.
-
core/
Provider-neutral core surface for skills, contracts, core eval scaffolding, and overlay boundary notes. -
core/contracts/
Canonical machine-readable contracts:core-registry.jsonfor the neutral registry snapshotworkflow-routing-map.jsonfor workflow class to skill/tool/MCP/output/validation mappingprovider-capabilities.jsonoutput-contracts.jsontool-contracts/catalog.jsonportable-skill-manifest.json
-
contracts/
Compatibility mirrors, including registry and capability mirrors during migration. -
providers/
Adapter boundary and export bundles:- canonical adapters:
openai-codex,anthropic-claude,qwen-code,kimi-k2_5 - legacy compatibility mirrors:
openai,anthropic,qwen,kimi,codex
- canonical adapters:
-
docs/
Governance, authority, boundary, and operations documentation. -
evals/
Deterministic certification fixtures and the eval catalog inevals/catalog.json. -
scripts/tools/
Validators, registry builders, export builders, and helper scripts. -
.agents/skills/
Repo-local control-plane skills for routing and surface decisions, not portable shared skills. -
skills/
Legacy compatibility and contract-bound shared skills, including shared-with-local-inputs patterns. -
templates/
Reusable templates such astemplates/codex-workflow/,templates/discord-fetch-mcp/, andtemplates/qwen-bootstrap/. -
examples/
Example artifacts and small reference examples.
Normative entry points:
- Root operating contract:
AGENTS.md - Root workflow contract:
WORKFLOW.md - Documentation hierarchy and rules:
docs/architecture.md - Claim and status ledger:
docs/authority-matrix.md - Source hierarchy:
docs/governance/source-hierarchy.md - MCP boundary policy:
docs/mcp/policy.md
Documentation classes:
canonicaloperationalderivedarchive
Important: documentation class and enforcement status are separate.
A canonical statement is not automatically script-enforced. Enforced truth lives in validators and scripts.
Practical rule:
- when prose and validator behavior conflict, the enforcement surface wins, and the status should be made explicit in
docs/authority-matrix.md
Capability maturity labels:
prose-governedcontract-backedvalidator-backedruntime-implemented
These labels describe maturity, not the claim-status values used in the authority matrix.
-
Portable Core (
core/)
Home of shared semantics and neutral contracts. -
Compatibility Mirrors (
skills/,contracts/, legacy provider directories,docs/tool-contracts/catalog.json)
Stability and migration surfaces for existing consumers, not the primary home for new shared semantics. -
Provider Exports (
providers/<provider>/export.json)
Generated packaging and transport projections from the neutral registry and provider capability profiles.
Boundary rule:
- change shared semantics in the core
- keep provider-specific packaging projection in
providers/ - keep backward compatibility explicitly marked as mirror behavior
- treat
core/contracts/tool-contracts/catalog.jsonas the canonical machine-readable tool catalog - treat
docs/tool-contracts/catalog.jsonas an explicit compatibility and export surface, not a second canonical tool truth
Primary commands:
-
npm run validate
Repo-surface validation as the combined main check. -
npm run validate-neutral
Neutral-core validation for registry, provider capabilities, adapter scaffolds, and consistency. -
npm run build-registry
Regenerates the neutral registry snapshot and mirrors. -
npm run build-exports
Regenerates provider export bundles. -
npm run eval
Runs deterministic certification evals against fixtures.
Important slices:
npm run eval:skill-routingnpm run eval:semantic-layoutnpm run eval:render-layoutnpm run eval:wcag-a11y
Render and accessibility modes:
certification: local fixtures, deterministic, blockingoperator-evidence: external URLs allowed, advisory, non-blocking
README.mdas the front doorAGENTS.mdWORKFLOW.mddocs/architecture.mddocs/authority-matrix.mddocs/governance/source-hierarchy.mddocs/mcp/policy.mddocs/usage.mddocs/maintainer-commands.mddocs/validation-checklist.md
docs/repo-overlay-contract.mddocs/compatibility.mddocs/adoption-playbook.mdfor first-time adoptiondocs/consumer-rollout-playbook.mdfor an existing consumer- Consumer linkage and lock:
npm run refresh-lock -- --consumer <consumer-root>npm run validate-consumer -- --consumer <consumer-root>npm run validate-input-contract -- --contract <consumer-root>/.codex/repo-intake-inputs.jsonif adoptednpm run validate-runtime-policy-input-contract -- --contract <consumer-root>/.codex/runtime-policy-inputs.jsonif adopted
- For contract-bound skills:
docs/shared-with-local-inputs.mddocs/repo-intake-skill-contract.mddocs/runtime-policy-skill-contract.md
- Then run
npm run validate,npm run validate-neutral, andnpm run eval
providers/README.mddocs/portability.mddocs/provider-capability-matrix.mdcore/contracts/provider-capabilities.jsonnpm run build-registrynpm run build-exportsnpm run validate-neutralnpm run eval
Maintainers and consumers should follow the same safe extension path:
- Start canonical ownership changes in
core/contracts/*,core/skills/*, andpolicies/*. - Build derived projections next with
npm run build-registryandnpm run build-exportswhen affected. - Update operational prose, examples, and templates only after that in
docs/*,templates/*, andexamples/*. - Treat the slice as complete only after running
npm run validate,npm run validate-neutral, andnpm run eval.
Important:
- provider exports remain derived mirrors, not a second canonical truth source
- compatibility surfaces in
contracts/*,skills/*,docs/tool-contracts/catalog.json, and legacyproviders/*stay explicitly marked as compatibility layers repo-root memory/remains planned, and this repo still does not claim a runtime memory subsystem
Downstream consumers should use this bounded path:
- First-time adoption:
docs/adoption-playbook.md - Existing consumer rollout:
docs/consumer-rollout-playbook.md - Canonical-vs-compatibility boundary:
docs/compatibility.md - Then run
npm run validate,npm run validate-neutral, andnpm run eval
Rule:
- canonical changes start in
core/contracts/*,core/skills/*, andpolicies/* - mirrors and exports remain derived in
contracts/*, legacyproviders/*,skills/*, anddocs/tool-contracts/catalog.json
Release and adoption readiness in this repo is determined by artifacts and gates, not by narrative claims.
Release-critical canonical surfaces:
core/contracts/*policies/*core/skills/*with projection into registry and exports
Release-critical derived and compatibility surfaces:
contracts/*- legacy
providers/* docs/tool-contracts/catalog.json
Release gate before handoff:
- Regeneration:
npm run build-registry,npm run build-exports - Validation:
npm run validate,npm run validate-neutral - Certification:
npm run eval
Bounded handoff must explicitly include:
- which canonical surfaces changed
- which mirrors and exports were regenerated
- gate results
- which
plannedormissingsurfaces were intentionally not claimed as implemented
templates/andexamples/are support and onboarding surfaces, not canonical governance- consumer-local overlays remain outside the shared core as local responsibility
.agents/skills/are repo-local orchestration rules for this repo and are not automatically portable to consumer repos- optional bootstrap and overlay surfaces such as
.qwenare consumer-local and not global shared-core authority
Core navigation:
docs/README.mdWORKFLOW.mddocs/architecture.mddocs/authority-matrix.mddocs/governance/source-hierarchy.mddocs/mcp/policy.mddocs/usage.mdcore/README.mdcore/contracts/README.mdcontracts/README.mdproviders/README.mdevals/README.md
Boundary-specific reading:
- Portability:
docs/portability.md - Compatibility:
docs/compatibility.md - Source hierarchy:
docs/governance/source-hierarchy.md - MCP policy:
docs/mcp/policy.md - Overlay boundary:
docs/repo-overlay-contract.md - Maintainer commands:
docs/maintainer-commands.md
- do not define new rules or authority normatively in parallel locations
- when shared semantics change, update the core, validation surfaces, and relevant docs in the same slice
- only make readiness or coverage claims when they are backed by artifacts or validators
- treat the Phase 1 spec adoption as an overlay on the current canonical repo structure, not as a second illustrative directory tree