Run the pipeline¶
Select inputs¶
Use exactly one selector family for a run.
| Selector | Use case |
|---|---|
-Files |
Explicit source files |
-Paths |
Directories or glob patterns |
-Manifest |
JSON or CSV inventory containing a path field |
Select phases¶
| Option | Example | Behavior |
|---|---|---|
-Phases |
-Phases A,B,C |
Run an explicit set |
-From, -To |
-From A -To C |
Run an inclusive range |
-Skip |
-Skip I,J,K,M,N |
Remove phases from the selected set |
When -Phases is supplied, it takes precedence and -From, -To, and -Skip are ignored. The
runner restores dependency order even when an explicit phase list is written in another order.
Common selections:
| Intent | Selection |
|---|---|
| Deterministic validation | -From A -To C |
| Restage section authoring only | -Phases D -CopilotDocsDryRun |
| Per-file docs without groups or portals | -Skip I,J,K,M,N |
| Rebuild overview diagrams | -Phases H -DiagramsForce |
| Build only the generated portal | -Phases N |
Deterministic extraction¶
Full per-file documentation¶
After authenticating the Copilot CLI:
Use -SkipDocx when Pandoc output is not needed. Use phase-specific DryRun and Force switches
to inspect dispatches or regenerate stale content.
Resume and retries¶
-MaxPhaseRetries 3allows one initial attempt plus up to three retries after failures.-MaxPhaseRetries 0disables retries and is useful while diagnosing deterministic failures.- Dispatchers persist plans, state, logs, and XML results under
temp/andlogs/. - Re-running unchanged deterministic phases is safe.
- Force switches should be used only when an up-to-date check must be bypassed.
| Switch | Scope | Typical use |
|---|---|---|
-SectionFinalizerForce |
E | Rebuild index.md after changing the finalizer prompt |
-RequirementsForce |
F | Restage requirement bundles after profile changes |
-FunctionalAnalysisForce |
G | Restage functional-analysis bundles |
-DiagramsForce |
H | Re-author file-level Mermaid sources |
-TechnicalAnalysisForce |
L | Re-author per-file technical analysis |
-GroupForce |
I, J, K, M | Rebuild group-scoped deliverables |
Prefer a dry-run switch before force when one exists. A force switch can consume new model requests even when current output is usable.
Results, logs, and exit behavior¶
-ResultsDir isolates machine-readable XML from concurrent or comparative runs:
pwsh -File scripts/run-pipeline.ps1 `
-From A -To C `
-Files repos/sample/COBOL/ORDR100.CBL `
-SourceRoot repos/sample `
-ResultsDir temp/run-2026-07-14
The orchestrator returns non-zero when a phase remains unsuccessful after its retry budget. A
phase missing required upstream artifacts fails fast with exit code 4 and lists each missing path.
Retain temp/, logs/, and Copilot OTEL files when investigating authored-phase failures.
Build execution results¶
Phase N builds a portal for generated program documentation:
This is distinct from the GitHub Pages user portal you are reading. Phase N writes
docs/_portal/site; GitHub Pages builds tracked guidance from site-docs/.