Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions .codex/agents/architect.toml

This file was deleted.

15 changes: 0 additions & 15 deletions .codex/agents/documenter.toml

This file was deleted.

14 changes: 0 additions & 14 deletions .codex/agents/explorer.toml

This file was deleted.

20 changes: 0 additions & 20 deletions .codex/agents/implementer.toml

This file was deleted.

13 changes: 0 additions & 13 deletions .codex/agents/reviewer.toml

This file was deleted.

3 changes: 0 additions & 3 deletions .codex/config.toml

This file was deleted.

10 changes: 5 additions & 5 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ In short, this is how that works.
uv run --no-sync invoke check typecheck test docs
```

5. Branch from `main` for ordinary changes. For an existing coordinated
initiative, follow the base branch recorded in its handoff.
5. Branch from `main` for ordinary changes. For COMPAS 3 upgrade work, use
`c3-upgrade` or the base agreed for the initiative in the COMPAS Hub.
6. Repeat the ordinary checks and run any relevant integration checks:

```bash
Expand All @@ -37,13 +37,13 @@ command line to ease recurring operations:

* `uv run --no-sync invoke check`: Run Ruff lint and format checks.
* `uv run --no-sync invoke test`: Run the pure package tests.
* `uv run --no-sync invoke typecheck`: Run Pyright over the coordination package and pure tests.
* `uv run --no-sync invoke typecheck`: Run Pyright over the framework package and pure tests.
* `uv run --no-sync invoke docs`: Build the MkDocs documentation strictly into temporary storage.
* `uv run --no-sync invoke build`: Build wheel and source distributions into temporary storage.
* `uv run --no-sync invoke --list`: Show available aliases.

Use the canonical checkout for each repository and record progress in the
initiative handoff or draft PR. Create an additional worktree only when
Use the canonical checkout for each repository and record progress and
verification in the pull request. Create an additional worktree only when
explicitly requested and record its visible path, branch, and owner.

## Bug reports
Expand Down
107 changes: 10 additions & 97 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,8 @@
# COMPAS Framework — Agent Instructions

You are the coordinator for cross-package COMPAS
modernization initiatives.

## Responsibilities

- Read the active initiative objective.
- Decompose objectives into verifiable tasks.
- Identify task dependencies.
- Delegate independent work to specialized agents.
- Coordinate implementation across repositories.
- Verify tests and documentation.
- Maintain the initiative's plan and status.
COMPAS Framework owns the COMPAS metapackage, release metadata, and
cross-package integration checks. Cross-repository initiative coordination
takes place in the COMPAS Hub.

## Engineering Principles

Expand Down Expand Up @@ -54,23 +45,11 @@ modernization initiatives.
Check the branch and working tree before editing, and preserve existing changes.
- Create an additional worktree only when explicitly requested. Use an agreed,
visible path outside system temporary directories and record its path, branch,
owner, and cleanup status in the handoff.
- Assign one writer per repository at a time. Read-only work and writes in
distinct package repositories can run in parallel.
owner, and cleanup status in the pull request.
- At meaningful checkpoints, report the checkout, branch, changed files, and
verification status. When commits and pushes are authorized, keep the draft PR
current so progress is visible.

## Delegation

Use the explorer for repository investigations.
Use the architect for cross-package design.
Use implementers for approved code changes.
Use the reviewer for independent validation.
Use the documenter for examples and documentation.

Parallelize independent tasks whenever practical.

## Documentation and Public API

- Follow the documentation instructions of the repository that owns the code.
Expand All @@ -83,7 +62,6 @@ Parallelize independent tasks whenever practical.
- Documentation-only changes must not alter runtime behavior.
- Run the validation required by the skill, including focused doctests, Ruff,
`git diff --check`, and affected strict MkDocs builds.
- Include these requirements in delegated implementation and review tasks.

## Repository Skills

Expand All @@ -97,53 +75,7 @@ Parallelize independent tasks whenever practical.
guidance; `AGENTS.md`, accepted ADRs, and implemented behavior remain
authoritative.

## Workflow

### Phase 1: Reconnaissance

Launch independent investigations of:
- Existing APIs, implementations, and data contracts
- Cross-package dependencies and integration boundaries
- Existing tests, workflows, examples, and documentation
- Current branches, approved decisions, and compatibility constraints

Consolidate findings into inventory.md.

### Phase 2: Architecture

Delegate cross-package architecture design to the architect.

Produce proposal.md with:
- Recommended interfaces
- Alternatives and tradeoffs
- Affected packages
- Compatibility implications
- Proposed tests and examples

STOP and request user approval.

### Phase 3: Implementation

After approval:
- Break the proposal into small tasks.
- Assign file and repository ownership.
- Execute independent tasks in parallel according to the checkout rules above.
- Run tests after each task.
- Keep implementation changes no broader than the accepted decisions.
- Remove obsolete paths instead of leaving unused abstractions behind when
backward compatibility is not an approved requirement.

### Phase 4: Integration

- Run cross-package tests.
- Run Ruff and Pyright for every affected package using that package's
configured commands.
- Request independent code review.
- Resolve findings.
- Verify documentation.
- Report completion and remaining issues.

### Verification Responsibilities
## Verification Responsibilities

- Local checks provide fast, focused feedback before work is pushed. Run the
narrowest relevant tests, Ruff, Pyright, documentation checks, and native
Expand All @@ -158,18 +90,17 @@ After approval:
- Candidate-artifact CI verifies the exact wheels and distributions intended
for admission or release. A source build or editable install does not count
as evidence that independently built or published artifacts work together.
- Initiative handoffs record the evidence for every applicable layer. Mark a
layer as passed, failed, not run, or unavailable; never infer a pass from a
different layer.
- Record the evidence for every applicable verification layer in the pull
request. Report each result as passed, failed, not run, or unavailable.
- Completion requires all applicable local, package, framework-integration,
and candidate-artifact checks. If a layer does not apply, state why. If a
required layer cannot run, leave the initiative explicitly unverified.
required layer cannot run, leave that layer explicitly unverified.

## Rules

- Do not modify package source code before approval.
- Never assume an API exists without inspecting code.
- Keep changes focused and reversible.
- Keep changes focused, reversible, and within the accepted decisions.
- Preserve existing behavior unless approved.
- Do not claim tests passed without running them.
- Do not claim implementation completion unless relevant tests, Ruff, and
Expand All @@ -191,7 +122,7 @@ After approval:

## Architecture Decision Records

For every initiative:
For significant architectural changes affecting COMPAS Framework:

1. Identify significant architectural decisions during the proposal phase.
2. Create one ADR per independent decision.
Expand All @@ -202,21 +133,3 @@ For every initiative:
7. Identify dependencies between ADRs.
8. Do not implement tasks blocked by unresolved ADRs.
9. Revisit accepted ADRs only when new evidence warrants reconsideration.

## Session Handoffs

- Treat `initiatives/<name>/handoff.md` as the entry point for an active
initiative. Read it first, then read only the authoritative files it links
for the next task.
- Keep the handoff short. It is an index and checkpoint, not a copy of the
objective, inventory, proposal, ADRs, or implementation plan.
- Update the handoff at a meaningful checkpoint and before ending or moving an
initiative to a new conversation. Record exact branches, commit SHAs, pull
requests, workflow runs, verification results, and remaining approval gates.
- List at most three ordered next tasks. Move longer task lists and design
details to the implementation plan.
- Start a new conversation for each initiative, or for a new architecture,
implementation, integration, or audit phase of a large initiative. Resume
with: `Continue <initiative> from initiatives/<name>/handoff.md`.
- A handoff never overrides an accepted ADR or the implementation plan. Resolve
inconsistencies in the authoritative source, then refresh the handoff.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Removed

* Moved the Codex agent roles, standalone initiative plans, and handoffs to the
COMPAS Hub. The framework repository retains the technical decision records.
* Removed the `rhino`, `blender`, and `hosts` extras from the COMPAS 3
metapackage until their owning packages declare compatible dependencies and
pass host-runtime verification. Existing COMPAS 2 releases are unchanged.
Expand Down
9 changes: 4 additions & 5 deletions docs/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@ The Invoke tasks are thin aliases for Ruff, Pyright, pytest, MkDocs, and
`uv build`. The direct commands used by CI remain visible in the
workflow files.

Use each repository's canonical checkout and make progress visible through the
initiative handoff and draft pull request. Keep one writer per repository at a
time. Read-only work and writes in different repositories can run in parallel.
Create an additional worktree only when explicitly requested and record its
visible path, branch, and owner in the handoff.
Use each repository's canonical checkout and record progress and verification
in the pull request. The COMPAS Hub tracks plans and handoffs for work that
spans repositories. Create an additional worktree only when explicitly
requested and record its visible path, branch, and owner in the pull request.

Changes to coordinated candidate infrastructure use the isolated locked group:

Expand Down
80 changes: 0 additions & 80 deletions initiatives/_template/handoff.md

This file was deleted.

Loading
Loading