Commit 6ab44fd
authored
feat(skills/update-stack): block on undeclared drift vs upstream (#3760)
* feat(skills/update-stack): block on undeclared drift vs upstream
Add gate 3ter to Phase 1: after /verify passes, diff each stack-module
non-test file against devkit-node/master. Any file that diverges AND is
not declared in DOWNSTREAM_PATCHES.md causes exit 1 with a clear fix
message. Missing ledger = no declared divergences allowed.
Prevents trawl-style silent drift (3 arch violations + 9 promote-up
candidates found 2026-05-30 after weeks of unchecked accumulation).
Closes #3759 — plan 2026-05-30-trawl-devkit-perfect-alignment.md (E.2)
* fix(skills/update-stack): use HEAD blob + quoted path match in drift gate
- Replace `git hash-object "$f"` with `git rev-parse HEAD:"$f"` — compares
committed blobs rather than working-tree bytes (CRLF-safe, no false drift
from uncommitted changes post-merge)
- Replace `grep -qF "$f"` with `grep -qF "'$f'"` — matches the single-quoted
token in DOWNSTREAM_PATCHES.md to prevent substring false-positives
- Reword rules: remove misleading note about config/defaults auto-skip
(those paths are simply not in the scanned directories), clarify that
downstream-only files are never scanned
Per Copilot review on #3760
* fix(skills/update-stack): add billing to stack module list + broaden test exclusion
- Add `billing` to stack module declaration (it exists in devkit/Node:
modules/billing/) — gate and header were inconsistent
- Update conflict resolution table accordingly
- Broaden test-file exclusion: add /__tests__/ directory pattern and
extend extensions to (js|jsx|ts|tsx) for consistency
Per CodeRabbit review on #37601 parent 0a9db27 commit 6ab44fd
1 file changed
Lines changed: 36 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
91 | 125 | | |
92 | 126 | | |
93 | 127 | | |
| |||
0 commit comments