Skip to content

refactor: self-contained flow pipeline and pi workflow bridge - #23

Merged
bearmug merged 4 commits into
mainfrom
feature/flow-pipeline
May 14, 2026
Merged

refactor: self-contained flow pipeline and pi workflow bridge#23
bearmug merged 4 commits into
mainfrom
feature/flow-pipeline

Conversation

@bearmug

@bearmug bearmug commented May 14, 2026

Copy link
Copy Markdown
Contributor

Summary

Make repo-arch a cleaner self-contained CLI flow with explicit subcommands and no flag-based modes.

CLI shape

  • repo-arch init — write a starter config
  • repo-arch flow run — prepare history/cards/dataset/train plan
  • repo-arch flow run full — include embeddings + eval
  • repo-arch flow inspect — inspect the latest run
  • repo-arch train prepare — export training plan
  • repo-arch train cycle — continue the persistent training loop
  • repo-arch train resume — resume from the latest checkpoint
  • repo-arch train status — inspect training session state
  • repo-arch train list — list training sessions
  • repo-arch train run — execute one-shot LoRA training

What changed

  • removed --full, --run-train, and --run flags from the public flow/train surface
  • added src/config.ts and src/flow.ts for a versioned run contract
  • run bundles now write stable artifacts under .repo-arch/runs/<run-id>/
  • training cycles now persist session state and checkpoints under each flow run
  • embedding cache is model-aware
  • added a thin pi skill + extension bridge for guided workflow suggestions
  • added a Pi install section to the README (npm, git, and pi -e examples)
  • fixed the CLI entrypoint so the Homebrew symlinked repo-arch shim works correctly
  • added npm publish verification backoff to handle registry propagation delays

Validation

  • npm run typecheck
  • npm test
  • npm run build
  • ruby -e "require 'yaml'; YAML.load_file('.github/workflows/publish.yml'); puts 'yaml ok'"

Notes

The CLI stays the source of truth; the pi skill/extension are thin guides over the same contract.

@bearmug bearmug changed the title feat: add self-contained flow pipeline and pi workflow bridge refactor: self-contained flow pipeline and pi workflow bridge May 14, 2026
bearmug added 3 commits May 14, 2026 23:19
- add repo-arch init + flow run/inspect as the stable happy path
- write versioned run artifacts (manifest, history, cards, dataset, train plan, eval)
- add repo-arch.config.json bootstrap and config resolution
- make embedding cache model-aware
- ship pi skill + extension suggestions for repo-arch workflow
@bearmug
bearmug force-pushed the feature/flow-pipeline branch from 256592a to 57bf6f4 Compare May 14, 2026 21:19
@bearmug
bearmug marked this pull request as ready for review May 14, 2026 21:21
@bearmug
bearmug merged commit 02ca458 into main May 14, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant