diff --git a/.mcp.json b/.mcp.json new file mode 100644 index 0000000..972fe04 --- /dev/null +++ b/.mcp.json @@ -0,0 +1,8 @@ +{ + "mcpServers": { + "planning": { + "command": "means", + "args": ["mcp", "--path", "./planning"] + } + } +} diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..3f37000 --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,13 @@ +# Orbit + +A package manager in MoonBit that uses OCI registries as its repository. See +`README.md` for an overview, the source layout, and build commands. + +## Before you start + +- **Backlog:** list and read relevant items in `planning/` (a + [means](https://github.com/hmans/means) collection) and track progress there. + Use the `planning` MCP server when available (call `info` for schema and + workflow); otherwise `means info --path ./planning`. + +Before finishing a task: `just test && means doctor --path ./planning`. diff --git a/CLAUDE.md b/CLAUDE.md new file mode 120000 index 0000000..47dc3e3 --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1 @@ +AGENTS.md \ No newline at end of file diff --git a/README.md b/README.md index 6dd3d72..7c22199 100644 --- a/README.md +++ b/README.md @@ -256,6 +256,12 @@ src/main/ registry_wbtest.mbt mock-OCI registry, SAT global, and project workflow tests ``` +## Planning + +The backlog lives in [`planning/`](planning/), managed with +[means](https://github.com/hmans/means). Browse it with +`means tui --path ./planning`. + ## Toolchain notes Fixes needed for current MoonBit, kept here in case you build with an older compiler: diff --git a/planning/.gitignore b/planning/.gitignore new file mode 100644 index 0000000..7c26c33 --- /dev/null +++ b/planning/.gitignore @@ -0,0 +1 @@ +.means/ diff --git a/planning/MEANS.md b/planning/MEANS.md new file mode 100644 index 0000000..289520b --- /dev/null +++ b/planning/MEANS.md @@ -0,0 +1,74 @@ +--- +title: Orbit planning +description: 'The Orbit backlog: features, bugs, and tasks for Orbit itself.' +schema: + $schema: https://json-schema.org/draft/2020-12/schema + type: object + properties: + type: + type: string + enum: [task, bug, feature] + description: Task for general work, bug for incorrect behavior, or feature for new functionality. + status: + type: string + enum: [todo, in_progress, done, canceled] + description: Todo before work starts, in_progress while working, done once acceptance criteria are met, canceled when intentionally abandoned. + priority: + type: string + enum: [low, normal, high, urgent] + description: Relative importance, ordered urgent, high, normal, then low. + tags: + type: array + items: + type: string + minLength: 1 + uniqueItems: true + description: Optional labels for grouping related items. + required: [type, status, priority] + additionalProperties: false +app: + views: + - title: Open work + filter: data.status in ["todo", "in_progress"] + columns: [title, data.type, data.status, data.priority] +--- + +# Working with Orbit planning + +This collection is Orbit's backlog of actionable work. Run commands from the +repository root: + +```sh +means list --path ./planning --limit 0 --json +means search --path ./planning --filter status=todo --json +means show --path ./planning --json +means create --path ./planning --input - --json +means update --path ./planning --input - --json +``` + +Create with: + +```json +{ + "frontmatter": { + "title": "Add a feature", + "data": { "type": "feature", "status": "todo", "priority": "normal" } + }, + "body": "Context and acceptance criteria..." +} +``` + +Never supply `id`; means generates it. Reference other items by ID. + +## Workflow + +1. List existing items and read relevant ones before creating new ones. Avoid duplicates. +2. Follow the user's scope and priorities. The tag `deferred` marks ideas that stay + out of scope until the user picks them up. +3. Set `in_progress` when starting agreed work. Set `done` only when acceptance + criteria are met, and record the outcome in the body. Use `canceled` for + abandoned work instead of deleting. +4. Read before each update and supply the returned `hash`. On conflict, read again + and reconcile. Omitting `body` preserves it; supplying it replaces it entirely. +5. Run `means doctor --path ./planning` after writes and fix what it reports. +6. Mention relevant item IDs in commits and when reporting work.