Skip to content

Commit 6767d13

Browse files
jobordujoborduclaude
authored
fix: agents skip formal modeling in --full mode (#47) (#49)
* fix(quick-375): revise plan based on quorum BLOCK feedback * feat(quick-375): add formal-skip prevention guardrails to quick.md workflow * docs(quick-375): issue-47-agents-skip-formal-modeling * docs(quick-375): update verification status * req(quick-375): add GUARD-01 * test(quick-375): add structural tests for GUARD-01 workflow guardrails * fix(quick-375): add MUST_NOT_SKIP to orchestrator steps 2.7, 5, 5.5, 5.7, 5.8 * docs(quick-375): add scope contract and quorum debate logs Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * ci: authenticate gitleaks API call to avoid rate-limit 404s The 'Install gitleaks' step fetches the latest release tag from the GitHub API without authentication. In CI, unauthenticated requests hit the 60-req/hr rate limit, returning empty JSON. This produces a malformed download URL that 404s. Fix: pass GITHUB_TOKEN as Bearer auth (5 000 req/hr) and add a guard that fails early with a clear error if the version lookup returns empty. * chore: gitignore ephemeral formal verification artifacts Untrack files regenerated every formal-verify cycle: - diff-report.md, gates/, promotion-changelog.json, suspects.md - .planning/memory/ (agent error logs) These cause persistent dirty working tree state without carrying meaningful tracked content. * chore(deps): bump @hpcc-js/wasm-graphviz 1.21.0 -> 1.21.2 --------- Co-authored-by: jobordu <jonathan@jonathanborduas.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 3b31a5f commit 6767d13

31 files changed

Lines changed: 1173 additions & 7499 deletions

.github/workflows/secret-scan.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,15 @@ jobs:
3636
fetch-depth: 0
3737

3838
- name: Install gitleaks
39+
env:
40+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3941
run: |
40-
GITLEAKS_VERSION=$(curl -s https://api.github.com/repos/gitleaks/gitleaks/releases/latest | grep '"tag_name"' | sed 's/.*"v\(.*\)".*/\1/')
42+
GITLEAKS_VERSION=$(curl -sH "Authorization: Bearer $GH_TOKEN" https://api.github.com/repos/gitleaks/gitleaks/releases/latest | grep '"tag_name"' | sed 's/.*"v\(.*\)".*/\1/')
43+
if [ -z "$GITLEAKS_VERSION" ]; then
44+
echo "::error::Failed to fetch latest gitleaks version from GitHub API"
45+
exit 1
46+
fi
47+
echo "Installing gitleaks v${GITLEAKS_VERSION}"
4148
curl -sSfL "https://github.com/gitleaks/gitleaks/releases/download/v${GITLEAKS_VERSION}/gitleaks_${GITLEAKS_VERSION}_linux_x64.tar.gz" | tar xz
4249
chmod +x gitleaks
4350

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,15 @@ states/
9898
.planning/formal/coverage-gaps.md
9999
.planning/formal/assumption-gaps.md
100100

101+
# Formal verification run artifacts (regenerated every verify cycle)
102+
.planning/formal/diff-report.md
103+
.planning/formal/gates/
104+
.planning/formal/promotion-changelog.json
105+
.planning/formal/suspects.md
106+
107+
# Agent memory logs (runtime artifacts)
108+
.planning/memory/
109+
101110
# Nested planning artifacts in .formal
102111
.planning/formal/alloy/.planning/
103112

.planning/STATE.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ See: .planning/PROJECT.md
1616
|---|---|---|---|---|---|
1717
| 374 | Make API slots backup-only | 2026-04-04 | 99b79b4f | Verified | [374-make-api-slots-backup-only-dispatch-to-a](./quick/374-make-api-slots-backup-only-dispatch-to-a/) |
1818
| 379 | Issue #46: Add formal model staleness detection via content hashing | 2026-04-05 | 7ae0fe01 | Needs Review | [379-issue-46-add-formal-model-staleness-dete](./quick/379-issue-46-add-formal-model-staleness-dete/) |
19+
| 375 | issue-47-agents-skip-formal-modeling | 2026-04-05 | d174cae7 | Verified | [375-issue-47-agents-skip-formal-modeling](./quick/375-issue-47-agents-skip-formal-modeling/) |
1920

2021
## Session Log
2122

23+
- 2026-04-05 - Completed quick task 375: issue-47-agents-skip-formal-modeling
2224
- 2026-04-04: Completed quick task 374 - Make API slots backup-only
2325
- 2026-04-04: STATE.md regenerated by /gsd:health --repair
2426
- 2026-04-05: Completed quick task 379 - Issue #46: Add formal model staleness detection via content hashing

.planning/STATE.md.bak-2026-02-26T19-33-36

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

.planning/formal/diff-report.md

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

.planning/formal/gates/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)