Commit 3a1397a
Nestor Martinez
fix(seeds): YAML escape decoding + domain mapping + PYTHON_CMD
Addresses 3 bugs flagged by Codex CLI during PR Luispitik#9 review. All 3 are
pre-existing in the feat(seeds) commit of PR Luispitik#8.
P1: install.sh hardcoded `python` instead of `$PYTHON_CMD` detected in
Step 1. On systems with only python3 in PATH, seed import failed and was
silently swallowed by `|| true`. Uses `$PYTHON_CMD` now with a warning
fallback when Python is unavailable.
P2: parse_yaml_simple stripped quotes but did not decode backslash
escapes. Seeds with `"spec\.ts"` were stored with literal backslashes,
producing invalid regex. Added _decode_yaml_double_quoted (handles
\ \" \n \t \r) and _decode_yaml_single_quoted (`''` → `'`). Fixes 3
broken seeds: e2e-playwright-selectors, security-headers-vercel,
supabase-rls-auth-uid.
P2: _instinct-activator.sh pre-filters by ALWAYS_DOMAINS + stack-detected
domains when context.md exists. Seed domains workflow-general, testing,
web-development, saas-development are outside both sets so those seeds
never reached regex evaluation. Added DOMAIN_MAP in importer:
workflow-general → operations, testing → quality, web-development →
frontend, saas-development → stripe. original_domain preserved for
traceability.
Tests: 3 new in test-seeds.sh (9-11). Suite 8/8 → 11/11 GREEN.
Credit: bugs identified by Codex CLI (cross-model review).1 parent 0befe82 commit 3a1397a
4 files changed
Lines changed: 145 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
3 | 18 | | |
4 | 19 | | |
5 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
35 | 42 | | |
36 | 43 | | |
37 | 44 | | |
| |||
56 | 63 | | |
57 | 64 | | |
58 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
59 | 108 | | |
60 | 109 | | |
61 | 110 | | |
62 | | - | |
| 111 | + | |
| 112 | + | |
63 | 113 | | |
64 | 114 | | |
65 | 115 | | |
| |||
83 | 133 | | |
84 | 134 | | |
85 | 135 | | |
86 | | - | |
| 136 | + | |
87 | 137 | | |
88 | | - | |
| 138 | + | |
89 | 139 | | |
90 | 140 | | |
91 | 141 | | |
92 | 142 | | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
93 | 160 | | |
94 | 161 | | |
95 | 162 | | |
| |||
115 | 182 | | |
116 | 183 | | |
117 | 184 | | |
118 | | - | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
119 | 188 | | |
120 | | - | |
| 189 | + | |
121 | 190 | | |
122 | 191 | | |
123 | 192 | | |
| |||
128 | 197 | | |
129 | 198 | | |
130 | 199 | | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
131 | 203 | | |
132 | 204 | | |
133 | 205 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
187 | | - | |
188 | | - | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
189 | 193 | | |
190 | 194 | | |
191 | 195 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
105 | 151 | | |
106 | 152 | | |
107 | 153 | | |
| |||
0 commit comments