Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/workstation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,3 +145,4 @@ Notes:

- `docs/repository-layout.md`
- `docs/agentplane-integration.md`
- `docs/workstation/shortcut-map.md` — bounded shortcut contract (active + proposed bindings)
31 changes: 31 additions & 0 deletions tests/workstation-shortcut-map-contract.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.runCommand "workstation-shortcut-map-contract" {
nativeBuildInputs = [ pkgs.gnugrep ];
} ''
# Document must exist and be non-empty
test -s ${../docs/workstation/shortcut-map.md}

# Active screenshot bindings must be present
grep -q "Super+Shift+3" ${../docs/workstation/shortcut-map.md}
grep -q "Super+Shift+4" ${../docs/workstation/shortcut-map.md}
grep -q "Super+Shift+5" ${../docs/workstation/shortcut-map.md}
grep -q "Super+Shift+6" ${../docs/workstation/shortcut-map.md}

# Palette and app-launch bindings must be documented
grep -q "Super+Space" ${../docs/workstation/shortcut-map.md}
grep -q "Super+E" ${../docs/workstation/shortcut-map.md}
grep -q "Super+Return" ${../docs/workstation/shortcut-map.md}

# Document must distinguish active from proposed/future bindings
grep -q "Active bindings" ${../docs/workstation/shortcut-map.md}
grep -q "future" ${../docs/workstation/shortcut-map.md}
grep -q "non-active\|non.active\|NOT currently enforced" ${../docs/workstation/shortcut-map.md}

# Helper references must be present
grep -q "mac-defaults.sh" ${../docs/workstation/shortcut-map.md}
grep -q "palette-hotkey.sh" ${../docs/workstation/shortcut-map.md}
grep -q "doctor.sh" ${../docs/workstation/shortcut-map.md}

mkdir -p $out
echo validated > $out/result.txt
''
Loading