Confirm first. On a branch, show in a Molecule run that a scenario's ansible-playbook resolves mortis.kamino to the checkout under $AC_ROOT, not to molecule's installed copy (for example, print the path of a mortis.kamino role from inside one scenario). Drop that debug change before review. If the installed copy is what loads, stop: comment on #352 with the evidence and do not build 2 and 3.
The guard. The Molecule run fails, with the rule as its message, when mortis.kamino would load from anywhere but $AC_ROOT. It must check the environment molecule hands to ansible-playbook, not only the one it inherits. Not certain where that can be observed cheaply: check, and prefer a step in scripts/run_molecule_in_ci_image.sh or scripts/run_molecule_scenarios.sh with its test in tests/scripts/; a task inside the role scenarios is the fallback.
The selector. Add galaxy.yml to IGNORED in scripts/select_molecule_scenarios.py. Move it out of test_anything_else_selects_everything into a test that it selects nothing on its own and does not mask a role change. Update the docstring if it says otherwise.
The rules. In .gitea/workflows/AGENTS.md (Molecule), state that scenarios load the checkout, not molecule's installed copy, held by the guard, which is why galaxy.yml is ignored.
The selector runs from origin/main's copy, so this pull request itself still runs every scenario; the change applies from the next one.
Acceptance
A CI run shows which copy a scenario loads, linked in the PR.
A pull request whose only change is galaxy.yml selects no scenario; one that also changes a role selects that role's.
The guard fails, with its message, when mortis.kamino resolves outside the checkout; a test shows it.
python3 -m unittest discover -s tests/scripts and pre-commit run --all-files pass.
The PR says what was verified and what was not.
Not in scope
#349 (the docker CLI mount). Other IGNORED entries. Changing molecule's prerun or isolated setting.
Assisted-by: Claude Code
Spec: [#352](https://git.rkdr.net/Mortis/Kamino/issues/352) (decision comment).
## What to build
1. **Confirm first.** On a branch, show in a Molecule run that a scenario's `ansible-playbook` resolves `mortis.kamino` to the checkout under `$AC_ROOT`, not to molecule's installed copy (for example, print the path of a `mortis.kamino` role from inside one scenario). Drop that debug change before review. If the installed copy is what loads, stop: comment on #352 with the evidence and do not build 2 and 3.
2. **The guard.** The Molecule run fails, with the rule as its message, when `mortis.kamino` would load from anywhere but `$AC_ROOT`. It must check the environment molecule hands to `ansible-playbook`, not only the one it inherits. Not certain where that can be observed cheaply: check, and prefer a step in `scripts/run_molecule_in_ci_image.sh` or `scripts/run_molecule_scenarios.sh` with its test in `tests/scripts/`; a task inside the role scenarios is the fallback.
3. **The selector.** Add `galaxy.yml` to `IGNORED` in `scripts/select_molecule_scenarios.py`. Move it out of `test_anything_else_selects_everything` into a test that it selects nothing on its own and does not mask a role change. Update the docstring if it says otherwise.
4. **The rules.** In `.gitea/workflows/AGENTS.md` (Molecule), state that scenarios load the checkout, not molecule's installed copy, held by the guard, which is why `galaxy.yml` is ignored.
The selector runs from `origin/main`'s copy, so this pull request itself still runs every scenario; the change applies from the next one.
## Acceptance
- [ ] A CI run shows which copy a scenario loads, linked in the PR.
- [ ] A pull request whose only change is `galaxy.yml` selects no scenario; one that also changes a role selects that role's.
- [ ] The guard fails, with its message, when `mortis.kamino` resolves outside the checkout; a test shows it.
- [ ] `python3 -m unittest discover -s tests/scripts` and `pre-commit run --all-files` pass.
- [ ] The PR says what was verified and what was not.
## Not in scope
#349 (the docker CLI mount). Other IGNORED entries. Changing molecule's prerun or `isolated` setting.
Assisted-by: Claude Code
Claude
added this to the CI velocity (emergency) milestone 2026-11-24 14:31:52 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Spec: #352 (decision comment).
What to build
ansible-playbookresolvesmortis.kaminoto the checkout under$AC_ROOT, not to molecule's installed copy (for example, print the path of amortis.kaminorole from inside one scenario). Drop that debug change before review. If the installed copy is what loads, stop: comment on #352 with the evidence and do not build 2 and 3.mortis.kaminowould load from anywhere but$AC_ROOT. It must check the environment molecule hands toansible-playbook, not only the one it inherits. Not certain where that can be observed cheaply: check, and prefer a step inscripts/run_molecule_in_ci_image.shorscripts/run_molecule_scenarios.shwith its test intests/scripts/; a task inside the role scenarios is the fallback.galaxy.ymltoIGNOREDinscripts/select_molecule_scenarios.py. Move it out oftest_anything_else_selects_everythinginto a test that it selects nothing on its own and does not mask a role change. Update the docstring if it says otherwise..gitea/workflows/AGENTS.md(Molecule), state that scenarios load the checkout, not molecule's installed copy, held by the guard, which is whygalaxy.ymlis ignored.The selector runs from
origin/main's copy, so this pull request itself still runs every scenario; the change applies from the next one.Acceptance
galaxy.ymlselects no scenario; one that also changes a role selects that role's.mortis.kaminoresolves outside the checkout; a test shows it.python3 -m unittest discover -s tests/scriptsandpre-commit run --all-filespass.Not in scope
#349 (the docker CLI mount). Other IGNORED entries. Changing molecule's prerun or
isolatedsetting.Assisted-by: Claude Code