Skip to content

Commit 8eb10d3

Browse files
hyperpolymathclaude
andcommitted
CI + AI manifest v2 + branch safety
CI workflow (ci.yml): - cargo check, test, clippy, fmt on every push/PR to main - Grammar change detection (SECURITY warning on ebnf/pest changes) - Harvard invariant check (data rules must not reference control) - Sentinel hash stability (sha256 of grammar files) AI Manifest v2: - Session resume instructions for new Claude sessions - Points to conversation log, FAQs, design journal, papers - Notes known math errors in tropical types paper - References 007 dogfooding methodology Branch protection requires GitHub Pro for private repos — CI workflow serves as the safety net instead. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent db3169e commit 8eb10d3

2 files changed

Lines changed: 87 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# SPDX-License-Identifier: PMPL-1.0-or-later
2+
# 007 CI — runs on every push and PR
3+
# This is the safety net: tests + clippy + Harvard invariant checks
4+
5+
name: CI
6+
7+
on:
8+
push:
9+
branches: [main]
10+
pull_request:
11+
branches: [main]
12+
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
test:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
21+
- uses: dtolnay/rust-toolchain@4be9e76fd7c4901c61fb841f559994984270fce7
22+
with:
23+
toolchain: nightly
24+
components: clippy, rustfmt
25+
- uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5
26+
27+
- name: Check
28+
run: cargo check --all-targets
29+
30+
- name: Test
31+
run: cargo test
32+
33+
- name: Clippy
34+
run: cargo clippy -- -D warnings
35+
36+
- name: Format check
37+
run: cargo fmt -- --check
38+
39+
grammar-guard:
40+
runs-on: ubuntu-latest
41+
steps:
42+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
43+
44+
- name: Grammar change detection
45+
run: |
46+
if git diff --name-only HEAD~1 2>/dev/null | grep -qE '(grammar\.ebnf|grammar\.pest)'; then
47+
echo "::warning::SECURITY: Grammar files changed in this commit. Manual review required."
48+
echo "Grammar changes affect Harvard Architecture safety guarantees."
49+
echo "Changed files:"
50+
git diff --name-only HEAD~1 | grep -E '(grammar\.ebnf|grammar\.pest)'
51+
fi
52+
53+
- name: Harvard invariant check
54+
run: |
55+
# Verify data_expr rules don't reference control constructs
56+
if grep -n 'control_stmt\|control_expr\|control_block' crates/oo7-core/src/grammar.pest | grep -i 'data_'; then
57+
echo "::error::HARVARD VIOLATION: data rules reference control constructs"
58+
exit 1
59+
fi
60+
echo "Harvard invariant: OK"
61+
62+
- name: Sentinel hash stability
63+
run: |
64+
# Track grammar hash for sentinel verification
65+
sha256sum spec/grammar.ebnf > /tmp/grammar_hash.txt
66+
sha256sum crates/oo7-core/src/grammar.pest >> /tmp/grammar_hash.txt
67+
echo "Grammar hashes:"
68+
cat /tmp/grammar_hash.txt

0-AI-MANIFEST.a2ml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,27 @@
55
;; Read this file FIRST before any other file in this directory.
66

77
(ai-manifest
8-
(version "1.0")
8+
(version "2.0")
99
(project "007")
1010
(type "programming-language")
11-
(status "specification")
11+
(status "active-development")
12+
(license "ALL-RIGHTS-RESERVED")
13+
(last-major-session "2026-03-24")
14+
15+
(session-resume
16+
"This repo had a MAJOR session on 2026-03-24. If resuming work:
17+
1. Read docs/conversation-2026-03-24.md for full context
18+
2. Read docs/faq/ for design decisions with attribution
19+
3. Read docs/DESIGN-JOURNAL.adoc for philosophical grounding
20+
4. Grammar is at v0.5.0 (21 sections, 6 invariants)
21+
5. Type checker covers L1-3, L7 (linear), L9 (session), @budget
22+
6. Evaluator has full agent runtime (spawn/send/receive/exchange)
23+
7. Elixir/OTP codegen works: oo7 compile <file>
24+
8. Agent API: oo7 agent-validate, agent-moves, agent-card
25+
9. 207 tests, zero clippy warnings
26+
10. Two arXiv paper drafts in docs/paper/
27+
11. Tropical token types paper has KNOWN MATH ERRORS — needs correction
28+
12. Use 007 dogfooding methodology (see memory/feedback_007_dogfood.md)")
1229

1330
(classification
1431
(dual-use #t)

0 commit comments

Comments
 (0)