diff --git a/.agents/skills/opendirector-agent-development/SKILL.md b/.agents/skills/opendirector-agent-development/SKILL.md new file mode 100644 index 000000000..b604768f7 --- /dev/null +++ b/.agents/skills/opendirector-agent-development/SKILL.md @@ -0,0 +1,31 @@ +--- +name: opendirector-agent-development +description: Route OpenDirector Agent development and review to bundled skills. Use for runtime architecture, tool and model contracts, trace diagnosis, trust boundaries, workflow orchestration, and behavior evals. +--- + +# OpenDirector Agent development and review + +## Load the matching skills + +Read [AGENTS.md](../../../AGENTS.md) and the relevant [development lessons](../../../docs/development/lessons.md). Before changing or reviewing the Agent, read the named sections in each matching reference. Apply them within OpenDirector's architecture and contracts. Follow supplementary links only when the task needs more detail, and treat upstream setup and self-update instructions as background. See the [source revisions and licenses](references/upstream-sources.md). + +Read the upstream files at the revisions pinned by OpenDirector. If a matching checkout is missing, initialize its submodule from the repository root with `git submodule update --init --` followed by its path under `.agents/upstream/`. + +- **Layer ownership or workflow architecture** → [langchain-build-agent](../../upstream/langchain-skills/skills/langchain-build-agent/SKILL.md#implement-at-the-right-layer). Read **Implement at the right layer** and **Verify the requested behavior**. +- **Tool inputs, receipts, or failure recovery** → [agent-harness-construction](../../upstream/ecc/skills/agent-harness-construction/SKILL.md#action-space-design). Read **Action Space Design**, **Observation Design**, and **Error Recovery Contract**. +- **Provider and tool capability differences** → [agents-best-practices](../../upstream/agents-best-practices/SKILL.md#core-stance). Read **Core stance** and **Non-negotiable principles**, plus **Environment-Adaptive Tool Mode** when capabilities vary at runtime. +- **Cross-layer regressions or bypassed checks** → [agent-architecture-audit](../../upstream/ecc/skills/agent-architecture-audit/SKILL.md#audit-workflow). Use the failure mapping and fix strategy to trace the earliest failing layer and the code that owns the rule. +- **One run stalls, loops, or loses state** → [agent-introspection-debugging](../../upstream/ecc/skills/agent-introspection-debugging/SKILL.md#four-phase-loop). Identify the last successful operation, isolate the failure, and probe before retrying. Read the [OpenDirector runtime and job lineage](../../../docs/architecture/agent-runtime.md) to locate authoritative receipts. +- **Shared tool schema, event, or receipt changes** → [contract-first](../../upstream/ecc/skills/contract-first/SKILL.md#the-boundary-artifact). Use **The Boundary Artifact** and **Verify the Provider** with OpenDirector's existing contracts and generated types. Check actual serialized success and error responses. +- **Changes to Agent behavior or reliability** → [eval-harness](../../upstream/ecc/skills/eval-harness/SKILL.md#eval-types). Use **Eval Types** and the grader and repeat-run guidance in **Product Evals**. Grade observable effects through OpenDirector's test entry points and apply the project’s acceptance criteria. +- **Tool scope, workspace isolation, or sensitive trace output** → [agent-security-hardening](../../upstream/ecc/skills/agent-security-hardening/SKILL.md#hardening-workflow). Use **Map Trust Boundaries** and **Bound and Sanitize Tool Output** when reviewing the affected boundary. +- **Formal pull request review** → [opendirector-review](../opendirector-review/SKILL.md) for the review procedure. Apply the matching development references and the constraints below to the Agent change. + +## OpenDirector constraints + +1. **Adapt by capability.** Resolve inputs from the current project state and declared model and tool capabilities. Case-specific patches are prohibited. Keep fixture IDs, asset names, and fixed workflow topologies in examples and tests. Fix recurring failures at the layer that owns the rule. Changing a copied builder or disabling validation to pass one run is a review blocker. +2. **Use the shared business contract.** Route equivalent Agent, CLI, and UI operations through the same application service and rules. Apply mandatory checks at admission through every supported entry point, including batch and direct submission. Skill text, examples, adapters, and prompts cannot waive them. +3. **Return actionable failures.** A rejection identifies the operation, affected object or step, and the unmet condition. Indicate the input to correct when recovery is possible. If submission status is uncertain, reconcile the operation ID with the receipt and job state. Replay only with the original ID and input where the contract allows it. Stop if a required input or capability is unavailable. +4. **Verify different scenarios.** Replay the reported failure when available. Run two materially different valid scenarios and an invalid or unsupported scenario through the real Agent and affected entry points. Check tool inputs, receipts, persisted state, and the absence of a new job when admission rejects a request. Follow the [validation guide](../../../docs/development/validation.md) and state where dependencies were mocked. + +In review, trace each finding from the entry point to the rule owner, receipt, and affected project state. Block case-specific production paths, validation bypasses, and changes without the required cross-scenario evidence. diff --git a/.agents/skills/opendirector-agent-development/references/upstream-sources.md b/.agents/skills/opendirector-agent-development/references/upstream-sources.md new file mode 100644 index 000000000..e86dbbd3d --- /dev/null +++ b/.agents/skills/opendirector-agent-development/references/upstream-sources.md @@ -0,0 +1,14 @@ +# Upstream skill references + +Skills and licenses are read directly from the pinned Git submodules under `.agents/upstream/`. + +| Local reference | Pinned upstream source | License | +| --- | --- | --- | +| [langchain-build-agent](../../../upstream/langchain-skills/skills/langchain-build-agent/SKILL.md) | [langchain-ai/langchain-skills at `7a385cd`](https://github.com/langchain-ai/langchain-skills/blob/7a385cd544c7d024f0e410b2281f6d56a621d442/skills/langchain-build-agent/SKILL.md) | [MIT](../../../upstream/langchain-skills/LICENSE) | +| [agent-harness-construction](../../../upstream/ecc/skills/agent-harness-construction/SKILL.md) | [affaan-m/ECC at `4adeee6`](https://github.com/affaan-m/ECC/blob/4adeee6732a12d1540f49a4d50a38ce8c97f9a53/skills/agent-harness-construction/SKILL.md) | [MIT](../../../upstream/ecc/LICENSE) | +| [agent-architecture-audit](../../../upstream/ecc/skills/agent-architecture-audit/SKILL.md) | [affaan-m/ECC at `4adeee6`](https://github.com/affaan-m/ECC/blob/4adeee6732a12d1540f49a4d50a38ce8c97f9a53/skills/agent-architecture-audit/SKILL.md) | [MIT](../../../upstream/ecc/LICENSE) | +| [agent-introspection-debugging](../../../upstream/ecc/skills/agent-introspection-debugging/SKILL.md) | [affaan-m/ECC at `4adeee6`](https://github.com/affaan-m/ECC/blob/4adeee6732a12d1540f49a4d50a38ce8c97f9a53/skills/agent-introspection-debugging/SKILL.md) | [MIT](../../../upstream/ecc/LICENSE) | +| [contract-first](../../../upstream/ecc/skills/contract-first/SKILL.md) | [affaan-m/ECC at `4adeee6`](https://github.com/affaan-m/ECC/blob/4adeee6732a12d1540f49a4d50a38ce8c97f9a53/skills/contract-first/SKILL.md) | [MIT](../../../upstream/ecc/LICENSE) | +| [eval-harness](../../../upstream/ecc/skills/eval-harness/SKILL.md) | [affaan-m/ECC at `4adeee6`](https://github.com/affaan-m/ECC/blob/4adeee6732a12d1540f49a4d50a38ce8c97f9a53/skills/eval-harness/SKILL.md) | [MIT](../../../upstream/ecc/LICENSE) | +| [agent-security-hardening](../../../upstream/ecc/skills/agent-security-hardening/SKILL.md) | [affaan-m/ECC at `4adeee6`](https://github.com/affaan-m/ECC/blob/4adeee6732a12d1540f49a4d50a38ce8c97f9a53/skills/agent-security-hardening/SKILL.md) | [MIT](../../../upstream/ecc/LICENSE) | +| [agents-best-practices](../../../upstream/agents-best-practices/SKILL.md) | [DenisSergeevitch/agents-best-practices at `da245f8`](https://github.com/DenisSergeevitch/agents-best-practices/blob/da245f8cbfc4c358e8c3cde61dbb703bd40292bc/SKILL.md) | [MIT](../../../upstream/agents-best-practices/LICENSE) | diff --git a/.agents/upstream/agents-best-practices b/.agents/upstream/agents-best-practices new file mode 160000 index 000000000..da245f8cb --- /dev/null +++ b/.agents/upstream/agents-best-practices @@ -0,0 +1 @@ +Subproject commit da245f8cbfc4c358e8c3cde61dbb703bd40292bc diff --git a/.agents/upstream/ecc b/.agents/upstream/ecc new file mode 160000 index 000000000..4adeee673 --- /dev/null +++ b/.agents/upstream/ecc @@ -0,0 +1 @@ +Subproject commit 4adeee6732a12d1540f49a4d50a38ce8c97f9a53 diff --git a/.agents/upstream/langchain-skills b/.agents/upstream/langchain-skills new file mode 160000 index 000000000..7a385cd54 --- /dev/null +++ b/.agents/upstream/langchain-skills @@ -0,0 +1 @@ +Subproject commit 7a385cd544c7d024f0e410b2281f6d56a621d442 diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 000000000..88ef9e6ba --- /dev/null +++ b/.gitmodules @@ -0,0 +1,12 @@ +[submodule "ecc"] + path = .agents/upstream/ecc + url = https://github.com/affaan-m/ECC.git + shallow = true +[submodule "langchain-skills"] + path = .agents/upstream/langchain-skills + url = https://github.com/langchain-ai/langchain-skills.git + shallow = true +[submodule "agents-best-practices"] + path = .agents/upstream/agents-best-practices + url = https://github.com/DenisSergeevitch/agents-best-practices.git + shallow = true