Shell Support Compliance Plan¶
Status: ✅ Completed Created: 2026-02-15 Archived: 2026-02-16 Decision Source: ADR-013
Goal¶
Perform a full repository compliance sweep so shell behavior matches ADR-013 everywhere:
zsh: full interactive UX tier.bash: stable baseline tier.- Shared files: safe in both shells.
Why This Plan Exists¶
ADR-013 defines policy. This plan is the execution checklist for verification and closure of remaining gaps.
Implementation Summary (2026-02-15)¶
- Updated
mise-tasks/maintain/doctorto treat Bash baseline as supported without requiring Zsh. - Updated
mise-tasks/setup/installso server mode skips Antidote installation. - Updated shell-policy tests in
tests/doctor.bats,tests/provisioning.bats, andtests/server_deployment.bats. - Updated troubleshooting restart guidance to shell-agnostic restart commands.
Scope¶
In scope:
- Dotfiles and shell config (
dot_bashrc,dot_zshrc.tmpl,dot_aliases). - Installer/doctor/runtime scripts (
mise-tasks/*,scripts/*). - Tests and CI guardrails.
- User docs and agent guidance.
Out of scope:
- Large UX redesign for shell prompts/plugins.
- New tool additions unrelated to shell policy.
Execution Workflow¶
- Branch and Baseline
- Create a branch for compliance work.
- Capture baseline outputs for comparison.
-
Run:
-
Inventory Shell-Specific Patterns
- Find risky or shell-specific patterns:
- Classify each hit as:
zsh-only (expected)bash-safe (expected)-
shared-file risk (must fix) -
Apply Policy Boundaries
dot_bashrc:- no Enter remaps (
bind -x ... \C-mforbidden) - no Zsh-only primitives
dot_zshrc.tmpl:- advanced interactive behavior allowed
dot_aliases:- keep shared commands shell-safe
- gate/dispatch zsh-only behavior explicitly
- Installer and doctor:
- server mode keeps baseline shell
-
doctor treats
bashandzshas supported -
Test/Guardrail Coverage
- Ensure tests assert policy and catch regressions.
- Minimum checks:
-
If
miseis unavailable: -
Docs and Agent Consistency
- Confirm docs reflect shell tiers and restart guidance.
- Confirm
AGENTS.mdguidance matches ADR-013. - Ensure links/nav include ADR-013 and this plan as needed.
Acceptance Criteria¶
- No Bash Enter remap in repository-managed Bash config.
- Shared shell files do not directly execute Zsh-only constructs without guards.
- Server mode does not force shell changes.
- Doctor messaging accepts both supported shells.
- Tests include explicit shell-policy guardrails.
- Installation/troubleshooting docs state tiered shell policy.
Evidence to Include in PR¶
git diff --stat- Output of syntax checks
- Output of targeted test run
- Short list of policy gaps fixed
- Any intentionally deferred items with rationale
Handoff Template (for another AI)¶
Use this exact structure in the final report:
- Files audited
- Policy violations found
- Fixes applied
- Validation output summary
- Remaining risks or follow-ups
Rollback Strategy¶
If regressions appear:
- Revert only the offending commit(s).
- Re-run syntax and targeted shell-policy tests.
- Re-apply fixes incrementally with narrower scope.