Skip to content

Commit 5850c30

Browse files
authored
fix(igla): remove duplicate workflow directory, enforce FROZEN_HASH, and unify L1 traceability regexes
Closes #1438
1 parent f49f7f1 commit 5850c30

26 files changed

Lines changed: 1679 additions & 909 deletions

.claude/hooks/check-l1-traceability.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ done
2020

2121
# Fallback if the Rust binary is not yet built (e.g. fresh clone).
2222
COMMIT_MSG=$(git log -1 --pretty=%B HEAD)
23-
if ! echo "$COMMIT_MSG" | grep -qE "(Closes|Fixes|Resolves|Reference) #[0-9]+"; then
23+
if ! echo "$COMMIT_MSG" | grep -qiE "(Closes?|Fixes?|Resolves?|Refs?|Updates?)\s*#[0-9]+"; then
2424
echo "L1 VIOLATION: Commit missing issue reference"
2525
echo "Commit message: $COMMIT_MSG"
26-
echo "Required pattern: Closes #N | Fixes #N | Resolves #N | Reference #N"
26+
echo "Required pattern: Closes #N | Fixes #N | Resolves #N | Refs #N | Updates #N"
2727
exit 1
2828
fi
2929
ISSUE_NUM=$(echo "$COMMIT_MSG" | grep -oE "#[0-9]+" | head -1)

.claude/settings.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,18 @@
22
"hooks": {
33
"PreToolUse": [
44
{
5-
"pattern": "*",
6-
"command": ".claude/hooks/check-l1-traceability.sh"
5+
"matcher": "*",
6+
"hooks": [
7+
{ "type": "command", "command": ".claude/hooks/check-l1-traceability.sh" }
8+
]
79
}
810
],
911
"Stop": [
1012
{
11-
"pattern": "*",
12-
"command": ".claude/hooks/stop-hook-guard.sh"
13+
"matcher": "*",
14+
"hooks": [
15+
{ "type": "command", "command": ".claude/hooks/stop-hook-guard.sh" }
16+
]
1317
}
1418
]
1519
},

.github/workflows/issue-gate.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ jobs:
3333
run: |
3434
set -euo pipefail
3535
FOUND=$(echo "$PR_TITLE
36-
$PR_BODY" | grep -oiE '(closes|fixes|resolves) #[0-9]+' || true)
36+
$PR_BODY" | grep -oiE '(Closes?|Fixes?|Resolves?|Refs?|Updates?)\s*#[0-9]+' || true)
3737
3838
if [ -n "$FOUND" ]; then
3939
echo "✅ Issue gate passed: $FOUND"
4040
else
41-
echo "::error::L1 TRACEABILITY violation: No 'Closes #N' found in PR title/body."
41+
echo "::error::L1 TRACEABILITY violation: No issue reference found in PR title/body."
4242
echo "::error::Constitutional Law L1 requires all code changes to reference an issue."
43-
echo "::error::Usage: Include 'Closes #N' in your PR title or body."
43+
echo "::error::Usage: Include 'Closes #N', 'Fixes #N', 'Resolves #N', 'Refs #N', or 'Updates #N'."
4444
echo "::error::Example: 'feat(compiler): Add algorithm codegen placeholder\n\nCloses #42'"
4545
echo "::error::PR blocked. Please create an issue first, then reference it in your PR."
4646
exit 1

.github/workflows/workflows/agent-runner-docker.yml

Lines changed: 0 additions & 46 deletions
This file was deleted.

.github/workflows/workflows/brain-seal-refresh.yml

Lines changed: 0 additions & 52 deletions
This file was deleted.

.github/workflows/workflows/coq-kernel.yml

Lines changed: 0 additions & 53 deletions
This file was deleted.

.github/workflows/workflows/deploy-api.yml

Lines changed: 0 additions & 61 deletions
This file was deleted.

.github/workflows/workflows/issue-gate.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.github/workflows/workflows/now-sync-gate.yml

Lines changed: 0 additions & 54 deletions
This file was deleted.

0 commit comments

Comments
 (0)