feat(cli,mcp): orun initiatives — the group replaces work; the work MCP grows to 21 tools - #615
Merged
Merged
Conversation
…CP grows to 21 tools The orun half of the orun-initiatives epic (authoritative spec: orun-cloud specs/epics/orun-initiatives/; this repo's leg in specs/orun-initiatives/). CLI: 'orun initiatives' lands with list (portfolio table), view (the tree as an indented ladder: intent chips with @revision + drift, milestone states, task rungs with evidence hints), create (--why repeatable, becomes the success checklist), edit/cancel/import (ported from work), task view/create, activity (the tagged tail), doc pull, and design list/propose. 'orun work' survives one release hidden and deprecated, forwarding to the same constructors — zero duplicated logic; spec pull and epic pull are byte-identical. Wire: remotestate gains ListInitiatives, GetInitiativeTree, GetTaskDetail, GetWorkActivity, CreateInitiative, ListWorkDesigns, UpsertMilestones plus the mirrored portfolio/tree/detail/activity types; WorkSummary finally parses the summary's initiatives array. MCP: the work roster grows 15 → 21 (initiatives_list, initiative_tree, task_get, activity_get; initiative_create, milestone_upsert) with the existing names untouched, and a pinned test proves a human_only refusal passes through typed and verbatim — agents can tell 'not allowed for you' from 'does not exist'. Docs: website cli/orun-initiatives.md replaces orun-work.md (redirect stub kept), sidebar + related links updated, orun-mcp.md counts redone. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014mwXwkdPScFHzdJY1Zn5d7
ruehowl
marked this pull request as ready for review
August 7, 2026 10:26
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this is
The orun half of the orun-initiatives epic (IN5 + IN6). The authoritative epic lives in
sourceplane/orun-cloudatspecs/epics/orun-initiatives/(sibling PR: sourceplane/orun-cloud#810); this repo's leg is specified inspecs/orun-initiatives/README.md, added here.CLI —
orun initiatives(IN6)list(portfolio table: key · title · status · progress · needs-you · target),view <key>(the tree as an indented ladder — intent chips with@revisionand drift, milestone complete/active/upcoming states, task rungs with evidence hints),create(--whyrepeatable → the success checklist),edit/cancel/import(ported fromwork),task view/task create,activity <key>(the tagged tail),doc pull,design list/design propose. All with--workspace,--backend-url,--json.orun worksurvives one release as a hidden, deprecated alias forwarding to the same constructors — zero duplicated logic.orun spec pullandorun epic pullare byte-identical.workClient(the shared auth/scope preamble) moved toinitiatives.go;spec.go/epic.gountouched.Wire client
internal/remotestategainsListInitiatives,GetInitiativeTree,GetTaskDetail,GetWorkActivity,CreateInitiative,ListWorkDesigns,UpsertMilestonesplus the mirrored portfolio/tree/detail/activity types (contract: orun-cloudspecs/epics/orun-initiatives/api-and-mcp.md§1).WorkSummarynow parses the summary'sinitiativesarray.MCP — the agent surface (IN5)
initiatives_list,initiative_tree,task_get,activity_get; writesinitiative_create,milestone_upsert. Existing tool names untouched.human_onlyrefusal (approve/adopt/pin are decisions, humans only) passes through typed and verbatim — an agent can tell "not allowed for you" from "does not exist".orun mcp servenow advertises 47 tools (21 work + 25 platform + connection_info).Docs
website/docs/cli/orun-initiatives.mdreplacesorun-work.md(redirect stub kept), sidebar and Related links updated,orun-mcp.mdcounts and tool table redone.Verification
go build ./...clean;go test ./cmd/... ./internal/workmcp/... ./internal/remotestate/...(plus platformmcp/mcpserve/agent/worklens sweeps) all green;make lintpasses;internal/worklens(the frozen conformance oracle) untouched.🤖 Generated with Claude Code
https://claude.ai/code/session_014mwXwkdPScFHzdJY1Zn5d7
Generated by Claude Code