Recent Recipe Runner & Skills Fixes - March 2026¶
This document tracks recent bug fixes and improvements to the Recipe Runner and Skills systems following the Diátaxis framework.
Historical record. The commands below are as they shipped in March 2026, and some no longer apply. The default agent binary is now
copilot, chosen after session markers and the launcher context; see Active Agent Binary. A detached tmux launch must hand over the agent binary with$(amplihack agent-binary --shell)inside the double-quoted command; for the current template, see the dev-orchestrator skill'sreference.md(#1525).
Late March 2026 — Worktree Execution, Hook Isolation & Workflow Resilience¶
Agent Steps Now Run from Dedicated Worktree (PRs #3778, #3771, #3779, #3781)¶
Problem: All type: agent steps in default-workflow and consensus-workflow
ran from the repo root instead of the worktree created for the task, causing
hollow-context execution — agents read the repo root state, not their assigned
branch — and CWD conflicts when two parallel workflows ran simultaneously.
Fix:
default-workflow.yamlandconsensus-workflow.yaml: Addedworking_dir: {{worktree_path}}to all 75 agent steps.MIN_RUNNER_VERSIONbumped through three releases:
| Version | Fix |
|---|---|
| 0.3.1 (PR #3771) | Resolve orchestrator from AMPLIHACK_HOME, not CWD |
| 0.3.2 (PR #3779) | Relative worktree path resolution |
| 0.3.3 (PR #3781) | Template rendering for working_dir field |
Impact: Nested agent sessions now inherit the correct working directory. Parallel workflows no longer overwrite each other's lock files or context.
Rule: Every type: agent step in a worktree-using workflow must set
working_dir: {{worktree_path}} — the runner does not propagate it.
Nested Recipe Hook Reinjection Suppressed (PR #3792)¶
Problem: The workflow-classification reminder and AMPLIHACK.md framework
injection hooks fired unconditionally for every agent session — including
child sessions started by the recipe runner. Child agents re-classified their
subtask and re-invoked dev-orchestrator, producing recursive orchestration.
Fix:
workflow_classification_reminder.py: Skip injection inside recipe-managed child sessions.user_prompt_submit.py: SkipAMPLIHACK.mdframework reinjection for nested sessions; preserve normal preference injection.USER_PREFERENCESparser updated to read the current markdown-table format (the old key-value parser silently dropped all preferences).
Impact: Child sessions stay on their assigned task instead of re-routing. Preference loading is reliable again.
Step-15 Retries Commit After Pre-commit Hook Modification (PR #3791)¶
Problem: Pre-commit hooks reformatted files and exited 1. Step-15 treated any non-zero exit as a permanent commit failure and aborted, losing the work.
Fix: Step-15 now detects the modify-then-exit-1 pattern (exit code 1 + newly modified files), re-stages the modified files, and retries the commit.
Impact: Workflows no longer abort at the final commit step when pre-commit hooks do their normal job of reformatting code.
Checkpoint Commits Skip Pre-commit Hooks and Are Non-fatal (PR #3786)¶
Problem: Checkpoint steps (internal workflow bookmarks) ran pre-commit hooks. Hook failure killed the step, aborting 2-hour workflows.
Fix: Checkpoint commits use --no-verify and fatal: false.
Rule: Distinguish user commits (run hooks) from workflow bookkeeping commits (skip hooks, non-fatal).
Built-in context_validation in Core Recipe YAMLs (PR #3753)¶
Problem: Core recipes failed deep into execution with cryptic errors when required context variables were missing.
Fix: All 4 core recipes (default-workflow, consensus-workflow,
investigation-workflow, smart-orchestrator) now use the context_validation
built-in field. The runner validates all required variables at step-00 and
emits clear errors with restart commands.
Impact: Missing-context failures are caught at the start, not mid-workflow.
Non-Critical Steps Marked fatal: false (PR #3750)¶
Problem: Pre-commit, cleanup, and status-check steps had fatal: true
(default). A hook or status-check failure aborted entire multi-hour workflows.
Fix: All non-critical steps now carry fatal: false. Failures are logged
but do not abort the workflow. Requires recipe-runner-rs ≥ 0.2.10.
Taxonomy:
| Step category | fatal setting |
|---|---|
| Core implementation steps | true (default) |
| Pre-commit / lint steps | false |
| Checkpoint / status-check steps | false |
| Cleanup steps | false |
File-Based Context Passing — Runner 0.2.9 (PR #3747)¶
Problem: Large context payloads passed via environment variables exceeded
OS argument list limits, causing Argument list too long errors at runtime.
Fix: MIN_RUNNER_VERSION bumped to 0.2.9. Context is now passed through
a temporary file (AMPLIHACK_CONTEXT_FILE) instead of env vars.
Auto-update installs the new binary on next amplihack startup.
find_recipe() Precedence Aligned with discover_recipes() (PR #3785)¶
Problem: find_recipe() did not use the same last-path-wins precedence
as discover_recipes(). When a recipe name existed in both a bundled path and
a local override path, find_recipe() could return the wrong one.
Fix: find_recipe() now iterates all search directories and returns the
last match, identical to discover_recipes(). A regression test for duplicate
recipe names across search directories was added.
Impact: Local recipe overrides now reliably win over bundled recipes. Closes #3784.
Rust Runner Env Propagation & Investigation Routing (PR #3512, Issue #3496)¶
Problem: Nested workflow sessions started in temp cwds with wrong environment, causing three distinct failures:
PYTHONPATHwas dropped at the Python→Rust runner boundary, so nested steps imported installedamplihackfrom the UV cache instead of the repo source tree.CLAUDE_PROJECT_DIRwas neither forwarded nor seeded, so workflow lock files were keyed off temp cwds instead of the actual repo root.- Single-workstream Investigation tasks were routed through
default-workflow(which requires a git repo) instead ofinvestigation-workflow.
Fix:
rust_runner_execution.py: AddedPYTHONPATHandCLAUDE_PROJECT_DIRto the env allowlist forwarded to the Rust binary.rust_runner.py: Added_project_dir_context()context manager that seedsCLAUDE_PROJECT_DIRfrom the resolvedworking_dirwhen absent.smart-orchestrator.yaml: Split single-workstream and blocked-fallback routing by task type — Development →default-workflow, Investigation →investigation-workflow.
Impact: Transparent improvement — nested workflow sessions now inherit the correct repo identity and import paths. No user action required.
Dev-Orchestrator Execution Modes (PRs #3214, #3216)¶
Direct subprocess is now the default (PR #3214)¶
What changed: The dev-orchestrator previously required tmux for all recipe launches. This was a documentation-driven constraint — the underlying recipe runner was already entirely subprocess-based with no tmux dependency in its code. The SKILL.md has been restructured so:
- Default — Direct Execution: plain
subprocess.Popen, works everywhere, no tmux required. - Optional — Durable Execution via tmux: for long-running recipes or environments that kill background processes on disconnection (e.g. SSH sessions without session managers).
Why it matters: Users on environments without tmux (containers, CI, Windows native, restricted shells) can now use the dev-orchestrator without workarounds.
How to choose:
| Mode | When to use |
|---|---|
| Direct (default) | Interactive local development, short-to-medium recipes |
| Durable (tmux) | Long recipes (>15 min), SSH sessions, environments that prune orphan processes |
Using the durable (tmux) mode:
To use tmux for durability, follow the Optional Durable Execution section in the dev-orchestrator SKILL.md or explicitly set the execution mode in your launch script.
Temp-script launch for tmux (PR #3216)¶
Problem: tmux launches embedded Python payloads inline, causing nested quoting failures when task descriptions contained single quotes, double quotes, or triple-quoted strings.
Fix: The Python payload is written to a temporary script file via heredoc first, then tmux launches the script with a simple command:
cat > "$SCRIPT_FILE" << RECIPE_SCRIPT
# python code — no quoting issues
RECIPE_SCRIPT
tmux new-session -d -s recipe-runner "python3 $SCRIPT_FILE 2>&1 | tee $LOG_FILE"
This eliminates nested quoting failures regardless of task description content.
Impact: If you previously encountered silent tmux launch failures where the session appeared to start but produced no output, this fix resolves that.
Agent-Agnostic Binary Selection (PR #3174)¶
What changed: amplihack now fully supports any agent binary, not just
claude. When launched via amplihack <agent>, all subprocess orchestration
(nested agents, fleet, multi-task, auto_mode) uses the same agent binary
consistently.
Central mechanism: get_agent_binary() in crates/amplihack-utils/
reads the AMPLIHACK_AGENT_BINARY environment variable and emits a warning on
fallback.
Configuration:
# Set your agent binary
export AMPLIHACK_AGENT_BINARY=claude # default
export AMPLIHACK_AGENT_BINARY=copilot # use GitHub Copilot CLI
Design decision: The implementation uses a pragmatic fallback (warn + default
to claude) rather than a hard failure when AMPLIHACK_AGENT_BINARY is unset.
This ensures backward compatibility for direct Python imports and tests that do
not set the variable.
Knowledge builder parameter renamed: claude_cmd parameter has been renamed
to agent_cmd in orchestrator.py, question_generator.py, and
knowledge_acquirer.py. Update any direct Python API calls that used the old
parameter name.
Workflow Parser Reliability (PR #3211)¶
What changed: The recipe runner's parser and dev-orchestrator launch guidance were improved for reliability:
AMPLIHACK_AGENT_BINARYpropagation: The dev-orchestrator recipe-runner launch guidance now preservesAMPLIHACK_AGENT_BINARYso nested agents stay on the caller's active binary.- Typed-field validation tightened:
parse_json,auto_stage, andtimeoutfields are now validated strictly; malformed values produce clear errors instead of silent misbehaviour. - Bash step
agentfield warning: Recipe steps of typebashthat mistakenly set theagentfield now produce a warning. Theagentfield is only meaningful onagentsteps.
Recipe Variable Quoting Auto-Normalisation (PR #3140)¶
What changed: Recipe authors no longer need to memorise Rust runner quoting
rules for {{var}} placeholders. The Python wrapper (rust_runner.py) now
applies three automatic fixes before invoking the Rust binary:
| Pattern | Problem | Auto-fix |
|---|---|---|
"{{var}}" |
Runner adds double quotes; explicit wrapping doubles them | Strip outer " |
'{{var}}' |
Single quotes block $RECIPE_VAR_* expansion |
Strip outer ' |
<<'DELIM' |
Quoted heredoc delimiter blocks variable expansion | Remove quotes from delimiter |
Impact: Recipes that previously silently broke due to quoting (doubled quotes, unexpanded variables, literal heredoc output) now work correctly without changes to the recipe YAML.
No action required for existing recipes — normalisation is transparent.
GhAwCompiler Workflow Frontend (PR #3144)¶
What changed: A new Python compiler frontend, GhAwCompiler, has been added
for validating .github/workflows/*.md files used by the GitHub Actions Workflow
system.
Import:
Key improvements over the previous parser:
| Issue | Fix |
|---|---|
on: key → Python True false positives (YAML 1.1 Norway problem) |
yaml.compose() preserves the raw "on" string key |
| No line/column in error messages | Diagnostic(line=N, col=N) from compose node tree |
| Typos silently stay as warnings | Levenshtein distance ≤ 2 → severity escalated to "error" |
| Full field list in suggestions | difflib.get_close_matches(n=3) → top-3 ranked matches |
| Missing-field errors give no guidance | FIELD_VALID_VALUES dict embeds format examples |
Example:
// use amplihack_workflows:: compile_workflow
diags = compile_workflow(content, filename="issue-classifier.md")
# [ERROR] issue-classifier.md:5:1: Unrecognised frontmatter field 'stirct' (possible typo). Did you mean: 'strict'?
# [ERROR] issue-classifier.md:2:1: Missing required field 'on'. Valid format: a trigger map, e.g.: ...
Windows Native Compatibility (PR #3127)¶
What changed: amplihack now has partial Windows native (PowerShell) support. All changes are additive platform guards that preserve existing macOS/Linux behaviour.
See Windows Support below and PREREQUISITES.md for the feature compatibility matrix.
Recipe Runner Fixes (Earlier March 2026)¶
Recipe Discovery from Installed Packages (PR #2813)¶
Problem: Recipe discovery failed when amplihack was pip-installed and users ran commands from directories outside the amplihack repository.
Root Cause: discover_recipes() used only CWD-relative paths:
Path("amplifier-bundle") / "recipes"— relative to current directoryPath("src") / "amplihack" / "amplifier-bundle" / "recipes"— also CWD-relative
Neither path resolved to the installed package location (site-packages/amplihack/amplifier-bundle/recipes/).
Solution: Added two absolute paths resolved via Path(__file__):
_PACKAGE_BUNDLE_DIR— installed package's bundled recipes (wheel installs)_REPO_ROOT_BUNDLE_DIR— repo root's bundle dir (editable installs)
Impact:
- All 16 bundled recipes now discoverable from any working directory
- Works correctly after
cargo install amplihack-rs - Verified:
amplihack recipe list | wc -l→ 16 recipes (was 0)
Tests Added:
test_discovers_from_installed_package_path: Verifies discovery works from temp directorytest_package_bundle_dir_is_absolute: Ensures package path is absolute, not CWD-relative
Documentation Updated:
Bash Step Timeout Removal (PR #2807)¶
Problem: Bash steps had hardcoded 120-second timeout that killed long-running operations silently.
Root Cause: All bash steps defaulted to timeout=120 in 6 files:
models.py(step model)parser.py(YAML parser)adapters/base.py,adapters/cli_subprocess.py,adapters/nested_session.py,adapters/claude_sdk.py
Solution: Changed all timeout: int = 120 → timeout: int | None = None
Impact:
- Bash steps now have no timeout by default (same as agent steps)
- Recipe authors can still set per-step timeouts in YAML if needed
- Complex operations (Python helpers, git operations) no longer killed prematurely
Example Usage:
steps:
- id: run-tests
type: bash
command: "pytest tests/"
timeout: 300 # Optional: 5-minute timeout
- id: git-rebase
type: bash
command: "git rebase origin/main"
# No timeout = runs until completion
Documentation Updated:
Recipe Runner Adapter Auto-Detection (PR #2804)¶
Problem: Smart-orchestrator recipe hardcoded ClaudeSDKAdapter() which used wrong async API.
Root Cause: Dev-orchestrator skill doc called ClaudeSDKAdapter() directly instead of using adapter auto-detection.
Solution: Changed to get_adapter() which auto-selects the best available adapter.
Impact:
- Recipe runner works correctly inside Claude Code sessions
- Adapter selection now context-aware
- All 20 smart-orchestrator steps complete successfully
- CLAUDECODE env var is stripped from all child processes via centralized
build_child_env()utility
Additional Fixes in Same PR:
-
Bash heredoc quoting (#2764): Template variables like
{{decomposition_json}}broke bash when Claude's output contained single quotes. Fixed using<<'EOFDECOMP'(quoted delimiter prevents special char interpretation). -
Condition expression eval: Conditions used
int(str(workstream_count).strip() or '1')which safe evaluator rejects. Fixed to simple string comparison:workstream_count == '1'. -
Stdout pollution: Removed box-drawing warning message that corrupted downstream template variables.
Verification:
classify-and-decompose: COMPLETED
parse-decomposition: COMPLETED
activate-workflow: COMPLETED
setup-session: COMPLETED
execute-single-round-1: COMPLETED
reflect-round-1: COMPLETED
reflect-final: COMPLETED
summarize: COMPLETED
complete-session: COMPLETED
Documentation Updated:
Skills System Fixes¶
Skill Frontmatter Validation (PR #2811)¶
Problem: 12 skills failed to load with "missing or malformed YAML frontmatter" errors. Each skill appeared 3× (from .claude/skills/, .github/skills/, ~/.copilot/skills/).
Affected Skills:
azure-admin,azure-devops-cli,github,silent-degradation-audit
Root Causes:
| Skill | Issue | Fix |
|---|---|---|
azure-admin |
Metadata in ```yaml code block, no frontmatter | Replaced with proper --- frontmatter |
|
azure-devops-cli |
Title before frontmatter, HTML comments in YAML | Moved frontmatter to file start, cleaned YAML |
github |
Same as azure-devops-cli | Same fix |
silent-degradation-audit |
No frontmatter at all | Added --- frontmatter with name + description |
Solution:
- Fixed YAML frontmatter in all 4 skills
- Removed duplicate
.github/skillssymlink (was symlink to../.claude/skills)
Impact:
- All skills now load correctly without duplicates
- Skill loading reduced from 3× to 2× per skill
- Verified via
yaml.safe_load()parsing
YAML Frontmatter Requirements (documented):
- Start at first line of SKILL.md (no title or content before
---) - Use proper
---delimiters (not code blocks) - No HTML comments within YAML section
- Minimum fields:
nameanddescription
Documentation Updated:
Runtime & Orchestrator Fixes (March 16, 2026)¶
Auto-Normalise {{var}} Quoting in Recipe Commands (PR #3140)¶
Problem: Recipe authors had to memorise Rust runner quoting rules for {{var}} placeholders — mistakes caused silent breakage (doubled quotes, unexpanded variables, literal heredoc output).
Solution: The Python runner wrapper (rust_runner.py) now applies a normalisation pipeline automatically before invoking the Rust binary:
"{{var}}"→{{var}}(explicit wrapping doubled the quotes →""$RECIPE_VAR_x"")'{{var}}'→{{var}}(single-quote wrapping produced literal'$RECIPE_VAR_x')
Impact: Recipe authors can write {{var}} directly without worrying about quoting — the runner handles it correctly in all contexts.
Example (previously broken, now works):
steps:
- id: use-var
type: bash
command: echo "{{task_description}}"
# Previously: echo ""$RECIPE_VAR_task_description""
# Now: echo "$RECIPE_VAR_task_description"
Documentation Updated:
Drop CWD-Traversal Auto-Discovery from resolve_bundle_asset (PR #3141)¶
Problem: _discover_cwd_search_bases() silently walked the process's CWD ancestry looking for any directory containing amplifier-bundle/, producing non-deterministic results depending on where amplihack was invoked from.
Solution: Removed CWD-traversal discovery entirely. Bundle assets are now resolved only from well-known locations (installed package path, ~/.amplihack/, explicit overrides).
Impact:
- Asset resolution is now deterministic regardless of working directory
- Eliminates subtle bugs where a parent directory's bundle silently overrode the correct one
- Use
AMPLIHACK_BUNDLE_PATHto specify a custom bundle location if needed
External-Runtime Orchestrator Resolution (PR #3179)¶
Problem: Regression in how smart-orchestrator resolved helper assets, session-tree, and hooks when launched outside the amplihack repository (e.g. from user projects).
Solution:
- Full runtime assets (including
amplifier-bundle/) are now staged into~/.amplihackon install smart-orchestratorresolves all assets from real runtime roots, not from CWD or install-time paths- Current
dev-orchestratorworkflow instructions are injected into Copilot context
Impact: Amplihack now works correctly from any directory when launched via amplihack <command> without needing the source repository in the CWD.
Agent-Agnostic Binary Selection (PR #3174)¶
Problem: Subprocess orchestration hardcoded "claude" as the fallback agent binary in 20+ files, making amplihack incompatible with other agent CLIs (e.g. copilot, custom agents).
Solution: Introduced get_agent_binary() in crates/amplihack-utils/ — reads AMPLIHACK_AGENT_BINARY env var with warning on fallback. All subprocess calls now use this central helper.
Impact:
- Amplihack is now fully agent-agnostic:
amplihack <agent>uses that agent for all subprocess orchestration - No more hardcoded
"claude"fallbacks in orchestration paths
Usage:
# Use GitHub Copilot CLI as the agent
export AMPLIHACK_AGENT_BINARY=copilot
amplihack recipe run default-workflow --context task_description="Add auth"
# Use a custom agent binary
export AMPLIHACK_AGENT_BINARY=/usr/local/bin/my-agent
amplihack recipe run investigation --context task_description="How does auth work?"
Documentation Updated:
- Recipe Quick Reference — added
AMPLIHACK_AGENT_BINARY
Windows Native Compatibility — Phases 1–3 (PR #3127)¶
Platform: Windows (native PowerShell — not WSL)
Changes: All modifications are additive platform guards that preserve existing macOS/Linux behavior.
Phase 1 — Critical Import/Crash Fixes:
- Guard
termios/tty/selectimports behindtry/except ImportErrorwithmsvcrtfallback for keyboard input - Guard
os.getuid()/os.getgid()withhasattrchecks - Guard
pwdmodule imports - Replace hardcoded
/tmpwithtempfile.gettempdir()
Phase 2 — Path Handling:
- Replace hardcoded
/-joined paths withpathlib.Pathoperations throughout
Phase 3 — Shell Commands:
- Add platform-conditional shell invocation (
powershellvsbash) for scripts that require a shell
Impact: Amplihack can now be installed and run natively on Windows. Some advanced features (fleet, Docker workflows) still require WSL.
Feature Compatibility Matrix¶
| Feature | macOS | Linux | WSL | Windows Native |
|---|---|---|---|---|
| Core recipe runner | Full | Full | Full | Full |
| Agent orchestration | Full | Full | Full | Full |
| Auto mode | Full | Full | Full | Partial (no TUI) |
| Fleet CLI | Full | Full | Full | Not supported |
| File locking | Full | Full | Full | Full (msvcrt fallback) |
| Keyboard input | Full | Full | Full | Full (msvcrt fallback) |
| Temp directory | Full | Full | Full | Full (tempfile.gettempdir()) |
Documentation Updated:
- Prerequisites — updated to reflect improved native support
Version History¶
Fixes released in amplihack v0.6.99+ (Late March 2026):
- Agent Step CWD (PRs #3778, #3771, #3779, #3781) -
working_diron all 75 agent steps + runner 0.3.x - Nested Hook Suppression (PR #3792) - Skip routing injection in child sessions
- Step-15 Pre-commit Retry (PR #3791) - Retry commit after hook reformats files
- Checkpoint Non-fatal (PR #3786) - Checkpoint commits use
--no-verify+fatal: false - Context Validation (PR #3753) - Built-in
context_validationin 4 core recipes - Non-critical Fatal: false (PR #3750) - Pre-commit/cleanup/status steps non-fatal
- File-based Context (PR #3747) - Runner 0.2.9 passes context via file, not env
- find_recipe Precedence (PR #3785) - Last-path-wins aligned with discover_recipes
All fixes released in amplihack v0.9.1 (March 2026):
- Dev-orchestrator direct mode (PR #3214) - Subprocess as default, tmux optional
- Tmux temp-script launch (PR #3216) - Eliminates nested quoting failures
- Agent-agnostic binary (PR #3174) -
AMPLIHACK_AGENT_BINARYenv var centralized - Workflow parser reliability (PR #3211) - Typed fields,
AMPLIHACK_AGENT_BINARYpropagation - Recipe variable quoting (PR #3140) - Auto-normalise
{{var}}quoting - GhAwCompiler frontend (PR #3144) - YAML
onfix, line:col, typo→error, fuzzy suggestions - Windows native compatibility (PR #3127) - Phases 1-3 platform guards
All fixes released in amplihack v0.9.0 (March 2026):
- Recipe Discovery (PR #2813) - Installed package path support
- Bash Timeouts (PR #2807) - Removed hardcoded 120s limit
- Adapter Selection (PR #2804) - Auto-detection for Claude Code
- Skill Frontmatter (PR #2811) - Fixed YAML validation issues
Fixes released in amplihack v0.6.69 (March 16, 2026):
- {{var}} Quoting (PR #3140) - Auto-normalise recipe variable quoting
- Bundle Asset Resolution (PR #3141) - Deterministic, no CWD traversal
- Orchestrator Resolution (PR #3179) - External-runtime staging fixed
- Agent-Agnostic Binary (PR #3174) -
AMPLIHACK_AGENT_BINARYenv var - Windows Compatibility (PR #3127) - Phases 1–3 native PowerShell support
May 2026 — Preflight Asset Resolution Fix¶
Unregistered Named Asset Resolution (Issue #588)¶
Problem: The smart-orchestrator recipe preflight failed with exit 2 when
resolving legacy named assets (helper-path, hooks-dir) that were removed in
PR #285. The resolve-bundle-asset CLI fell through to relative-path validation,
which rejected them because they lack the amplifier-bundle/ prefix. Exit 2
(invalid input) caused confusing diagnostics even though recipes guarded the
calls with || true.
Root Cause: run_cli() only checked whether an argument was a registered
named asset. Unregistered single-token arguments (no /) fell through to
validate_relative_path(), which requires the amplifier-bundle/ prefix —
producing a misleading "invalid input" error instead of "not found".
Fix:
resolve_bundle_asset/mod.rs— Added an early-return guard inrun_cli(): if the argument contains no/and is not inNAMED_ASSETS, return exit 1 (not found) with a message listing valid named assets.smart-classify-route.yaml— Removed deadHOOKS_DIR=...line (variable was assigned but never read;hooks-dirwas removed in #285).smart-validate-summarize.yaml— Same dead-code removal.
Exit code semantics preserved:
| Code | Before fix | After fix |
|---|---|---|
0 |
Asset resolved | Asset resolved |
1 |
Named asset or path not on disk | Named asset or path not on disk, or unregistered named asset |
2 |
Path validation failed (traversal, bad chars, missing prefix) | Path validation failed (unchanged) |
Impact: Recipes using amplihack resolve-bundle-asset <name> || true now
get clean exit 1 (expected) instead of exit 2 (unexpected) for removed assets.
No functional change — the || true guard means the recipe never failed — but
diagnostics are now accurate and the dead code is removed.
Rule: When removing a named asset from NAMED_ASSETS, also grep recipes
for shell steps that still reference it and remove the dead assignments.