Skip to content

About

Guided confusion free promotions with narrated receipts for Agentia CLI

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

Agentia Promote Path

License: MIT Node 18+ Agentia 0.122

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.


Table of Contents


The Problem

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.

Features

  • 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-merge runs the branch only merge, --execute-deploy runs 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 agentia commands.

Installation

Prerequisites

  • Node 18 or newer.
  • Agentia CLI beta: npm install -g @copado/agentia-cli@beta
  • Authenticated machine: agentia setup (CICD at minimum).

Install from source

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.

Quick Start

1. Narrate a story's path

agentia promote-path walk --story US-0000024 --env UAT-SFP

2. Machine receipt

agentia promote-path walk --story US-0000024 --env UAT-SFP --json

3. Execute the merge stage only

agentia promote-path walk --story US-0000024 --env UAT-SFP --execute-merge --json

Live Demo Workflow

Verified 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

Command Reference

agentia promote-path walk

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.

Configuration

Flags only. No files, no environment variables, no stored state.

Troubleshooting

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

How It Works

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

Security

Narrate mode writes nothing anywhere. Execution needs explicit flags per stage, deploy double gated behind merge success, and no tokens are printed or stored.

Tech Stack

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

Architecture

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

Hackathon Fit

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.

License

MIT License — see LICENSE for details.

About

Guided confusion free promotions with narrated receipts for Agentia CLI

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages