Promote Path walks a story toward production with narration at every stage. Dry run by default, executing only behind explicit flags, and always printing a plain receipt of what merged where and what deployed where.
Confusion free promotions. Built for the Agentia Headless Virtual
Hackathon as an oclif plugin on top of the public agentia CLI.
- The Problem
- Features
- Installation
- Quick Start
- Live Demo Workflow
- Command Reference
- Configuration
- Troubleshooting
- How It Works
- Security
- Tech Stack
- Architecture
- Hackathon Fit
- License
Promoting through the CLI confuses even careful users. Submit creates a promotion record without deploying, merge touches only the branch, and only merge and deploy reaches the org, yet nothing explains this per stage. Developers run three commands to learn what one promotion did, while the UI checkbox stays unticked throughout.
- Narrated stages — story state, promotion link, merge, deploy, each announcing what it touches before and after.
- Dry run by default — narration plus pending guidance with zero org writes until explicit execute flags.
- Two tier execution —
--execute-mergeruns the branch only merge,--execute-deployruns the env writing deploy, each gated separately. - Promotion linkage — finds the record through work ID filtering, refusing to create one silently when absent.
- Deploy gating — deploy auto blocks when its merge did not complete in the same walk.
- Honest checkbox note — the UI checkbox state is not API readable, documented openly instead of faked.
- Zero private imports — only shells out to public
agentiacommands.
- Node 18 or newer.
- Agentia CLI beta:
npm install -g @copado/agentia-cli@beta - Authenticated machine:
agentia setup(CICD at minimum).
git clone https://github.com/devkdas/agentia-promote-path.git
cd agentia-promote-path
npm install
npm run build
agentia plugins link .Re-run npm run build after every change to the TypeScript files.
agentia promote-path walk --story US-0000024 --env UAT-SFPagentia promote-path walk --story US-0000024 --env UAT-SFP --jsonagentia promote-path walk --story US-0000024 --env UAT-SFP --execute-merge --jsonVerified live on a real story:
1. agentia promote-path walk --story US-0000024 --env UAT-SFP --json
-> complete, story Draft with pipeline flags read live
-> promotion-link pending with submit guidance (no record exists)
-> merge plus deploy narrated with exact would-run commands
2. Checkbox note documents the unreadable UI state openly
| Flag | Description |
|---|---|
-s, --story <id> |
User story name or ID (required) |
-e, --env <name> |
Target environment narrated (default UAT-SFP) |
--execute-merge |
Run merge on the linked promotion (branch only) |
--execute-deploy |
Run merge and deploy (writes to target env) |
-j, --json |
Machine readable JSON receipt |
Execution refuses without a linked promotion instead of creating one silently. Deploy auto blocks when its merge did not complete.
Flags only. No files, no environment variables, no stored state.
| Problem | Likely cause | Fix |
|---|---|---|
| Story lookup failed | Unknown story ID | Copy the ID from work list first |
| No linked promotion | Submit never ran | Run submit on the story, then walk again |
| Deploy blocked after merge | Merge stage failed | Fix the merge error first |
| ESM auto-transpile warning | Linked ESM plugin notice | Benign, compiled output is used |
agentia promote-path walk
-> work get (status plus pipeline flags)
-> promotion list --work-id (linkage, both ID forms tried)
-> narrate merge (branch) vs deploy (env) split
-> execute only behind explicit flags, deploy gated on merge
-> receipt plus checkbox honesty note
Narrate mode writes nothing anywhere. Execution needs explicit flags per stage, deploy double gated behind merge success, and no tokens are printed or stored.
| Layer | Technology |
|---|---|
| Language | TypeScript on Node 18+ |
| CLI Framework | oclif v4 (ESM, matching the host CLI) |
| Runtime calls | node:child_process to public agentia commands |
Developer / Agent
|
agentia promote-path walk --story
|
Promote Path (this plugin)
|- reader -> work get story state
|- linker -> promotion list by work ID
|- narrator -> merge vs deploy split explained
|- executor -> gated merge then deploy
|
Receipt plus JSON
Answers a real public thread verbatim with narrated stages plus honest receipts, turning the most confusing CLI path into a guided walk while disclosing the one unreadable state openly.
MIT License — see LICENSE for details.