Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
91c4976
phase13: kill-switch gates + artifact passthrough invariant
kenanay Mar 15, 2026
11ea786
fix(ci): add RUN_ID and EVIDENCE_DIR to pre_ci_discipline.sh
kenanay Mar 15, 2026
860d59a
chore: add docs/hooks, docs/steering, docs/specs and test script
kenanay Mar 16, 2026
f893f36
chore: untrack .kiro/hooks/ and .kiro/steering/ (gitignored, canonica…
kenanay Mar 16, 2026
0278265
fix: increase pre-ci-discipline hook timeout to 300s (4 gates + summa…
kenanay Mar 16, 2026
0061764
feat: add property tests 1.2 and 2.1, mark all tasks complete (30/30 …
kenanay Mar 16, 2026
3127595
ci: add ci-kill-switch-phase13 gate suite + PRE_CI_MODE boundary opti…
kenanay Mar 16, 2026
7dcff40
perf(ci): replace shell deny/allow loops with Python in symbol-scan
kenanay Mar 16, 2026
82c2f50
fix(ci): use fullmatch for deny/allow pattern matching in symbol-scan
kenanay Mar 16, 2026
02aa5c3
docs: sync documentation to Phase-12 CLOSED + Phase-13 kill-switch PA…
kenanay Mar 16, 2026
328a25b
docs: update PR template with full 23-gate checklist
kenanay Mar 16, 2026
cff1971
fix(ci): remove ci-gate-proof-bundle from ci-kill-switch-phase13 (no …
kenanay Mar 16, 2026
a522fda
fix(proofd): update run_summary contract check to tolerate artifact_p…
kenanay Mar 16, 2026
4043829
docs: remove ci-gate-proof-bundle from kill-switch docs and add phase…
kenanay Mar 16, 2026
2f7e8b6
spec(phase13): update design and tasks with architectural feedback
kenanay Mar 16, 2026
e42b270
feat(proofd): make run_id optional with auto-generation, add request_…
kenanay Mar 18, 2026
af38ad5
docs(roadmap): sync documentation to Phase-12 official closure + Phas…
kenanay Mar 18, 2026
b218b5d
feat(kernel/phase10b): execution slot lifecycle + real syscall semantics
kenanay Mar 18, 2026
1dcf01a
docs: clarify submit_execution one-active-execution-per-process const…
kenanay Mar 18, 2026
21f0e13
feat(kernel): update embedded ELF binary with submit_execution + wait…
kenanay Mar 18, 2026
513604f
fix(ci): correct proof-verifier CLI binary path to out/cargo/debug
kenanay Mar 18, 2026
fef2adb
docs(phase10b): update spec progress, design, tasks and add execution…
kenanay Mar 18, 2026
20c78a8
fix(ci/hygiene): exclude embedded_elf.h from dirty-tracked check
kenanay Mar 18, 2026
e1216f0
docs(phase10b): add worker latch guard rules and publish barrier to i…
kenanay Mar 18, 2026
33a0fba
docs(phase10b): add latch guard and publish ordering to design doc
kenanay Mar 18, 2026
970dfb8
docs(phase10b): update progress log for 2026-03-19 inbox spec hardening
kenanay Mar 18, 2026
10ac88e
docs(phase10b): add execution inbox minimal spec and update progress/…
kenanay Mar 18, 2026
2b1813b
feat(execution-slot): add kernel-owned BCIB backing and live context …
kenanay Mar 19, 2026
ecef31b
test(phase2-validation): wire live target context and BCIB backing ch…
kenanay Mar 19, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 19 additions & 3 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,27 @@

- ABI (`ci-gate-abi`):
- Boundary (`ci-gate-boundary`):
- Ring0 Exports (`ci-gate-ring0-exports`):
- Hygiene (`ci-gate-hygiene`):
- Tooling Isolation (`ci-gate-tooling-isolation`):
- Constitutional (`ci-gate-constitutional`):
- Workspace (`ci-gate-workspace`):
- Hygiene (`ci-gate-hygiene`):
- Governance Policy (`ci-gate-governance-policy`):
- Drift Activation (`ci-gate-drift-activation`):
- Structural ABI (`ci-gate-structural-abi`):
- Runtime Marker Contract (`ci-gate-runtime-marker-contract`):
- User Bin Lock (`ci-gate-user-bin-lock`):
- Embedded ELF Hash (`ci-gate-embedded-elf-hash`):
- Performance (`ci-gate-performance`):
- Ring3 Execution Phase10a2 (`ci-gate-ring3-execution-phase10a2`):
- Syscall Semantics Phase10b (`ci-gate-syscall-semantics-phase10b`):
- Scheduler Mailbox Phase10c (`ci-gate-scheduler-mailbox-phase10c`, conditional `PHASE10C_ENFORCE=1`):
- Mailbox Capability Negative (`ci-gate-mailbox-capability-negative`):
- Workspace (`ci-gate-workspace`):
- Syscall v2 Runtime (`ci-gate-syscall-v2-runtime`):
- Sched Bridge Runtime (`ci-gate-sched-bridge-runtime`):
- Behavioral Suite (`ci-gate-behavioral-suite`):
- Policy Accept (`ci-gate-policy-accept`):
- Kill-Switch Phase13 (`ci-kill-switch-phase13`):
- Summary (`ci-summarize`):

## Tooling Isolation Guard
Expand Down Expand Up @@ -42,5 +58,5 @@ If this PR claims `Completed/Production-ready`, all must be true:

## Notes

- Planned gates may be hard-fail stubs during freeze hardening.
- Conditional gate `ci-gate-scheduler-mailbox-phase10c` only runs when `PHASE10C_ENFORCE=1`.
- Do not merge feature work into mainline during active freeze.
127 changes: 0 additions & 127 deletions .kiro/hooks/HOOK_CONFIGURATION.md

This file was deleted.

15 changes: 0 additions & 15 deletions .kiro/hooks/ci-gate-simulation.kiro.hook

This file was deleted.

40 changes: 17 additions & 23 deletions ARCHITECTURE_FREEZE.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ Bu belge, AykenOS execution-centric mimarisini mimari borç üretmeden kalıcı
- **Justification:** Mandatory for Allow/Waiver

#### CI Enforcement Pipeline
- **Gates:** ABI, Boundary, Ring0 Exports, Hygiene, Tooling Isolation, Constitutional, Governance Policy, Drift Activation, Workspace, Syscall v2 Runtime, Sched Bridge Runtime, Performance
- **Gates:** ABI, Boundary, Ring0 Exports, Hygiene, Tooling Isolation, Constitutional, Governance Policy, Drift Activation, Structural ABI, Runtime Marker Contract, User Bin Lock, Embedded ELF Hash, Performance, Ring3 Execution Phase10a2, Syscall Semantics Phase10b, Phase10C Gate (conditional), Mailbox Capability Negative, Workspace, Syscall v2 Runtime, Sched Bridge Runtime, Behavioral Suite, Policy Accept, Kill-Switch Phase13
- **Bypass:** Prohibited (no exceptions)
- **Repo Truth (2026-02-25):**
- Implemented: `ci-gate-abi`, `ci-gate-boundary`, `ci-gate-ring0-exports`, `ci-gate-hygiene`, `ci-gate-tooling-isolation`, `ci-gate-constitutional`, `ci-gate-governance-policy`, `ci-gate-drift-activation`, `ci-gate-workspace`, `ci-gate-syscall-v2-runtime`, `ci-gate-sched-bridge-runtime`, `ci-gate-performance`, `ci-summarize`
- Planned (hard-fail stubs): none
- **Repo Truth (2026-03-16):**
- Implemented: `ci-gate-abi`, `ci-gate-boundary`, `ci-gate-ring0-exports`, `ci-gate-hygiene`, `ci-gate-tooling-isolation`, `ci-gate-constitutional`, `ci-gate-governance-policy`, `ci-gate-drift-activation`, `ci-gate-structural-abi`, `ci-gate-runtime-marker-contract`, `ci-gate-user-bin-lock`, `ci-gate-embedded-elf-hash`, `ci-gate-performance`, `ci-gate-ring3-execution-phase10a2`, `ci-gate-syscall-semantics-phase10b`, `ci-gate-mailbox-capability-negative`, `ci-gate-workspace`, `ci-gate-syscall-v2-runtime`, `ci-gate-sched-bridge-runtime`, `ci-gate-behavioral-suite`, `ci-gate-policy-accept`, `ci-kill-switch-phase13`
- Conditional: `ci-gate-scheduler-mailbox-phase10c` (PHASE10C_ENFORCE=1)
- Strict suite entrypoint: `make ci-freeze`

#### CI Mode: Constitutional Default + Provisional Compatibility
Expand Down Expand Up @@ -593,22 +593,15 @@ This gate enforces activation requirement only. Drift detection and N-run persis
7. ✅ Performance baseline established
8. ✅ Repo clean baseline created

**Current Status (2026-02-25):**
- ✅ Boundary gate implementation active (`make ci-gate-boundary`)
- ✅ Hygiene gate implementation active (`make ci-gate-hygiene`)
- ✅ Tooling isolation gate implementation active (`make ci-gate-tooling-isolation`)
- ✅ ABI gate implementation active (`make ci-gate-abi`)
- ✅ Constitutional gate implementation active (`make ci-gate-constitutional`)
- ✅ Governance policy gate implementation active (`make ci-gate-governance-policy`)
- ✅ Drift activation gate implementation active (`make ci-gate-drift-activation`)
- ✅ Workspace gate implementation active (`make ci-gate-workspace`)
- ✅ Syscall v2 runtime gate implementation active (`make ci-gate-syscall-v2-runtime`)
- ✅ Sched bridge runtime gate implementation active (`make ci-gate-sched-bridge-runtime`)
- ✅ Performance gate implementation active (`make ci-gate-performance`)
- ✅ Summary gate active (`make ci-summarize`, auto-discovery)
- ✅ Evidence schema active (`evidence/run-<RUN_ID>/reports/summary.json`)
- 🔄 Performance baseline initialization/lock commit required (`PERF_INIT_BASELINE=1`)
- 🔄 Remaining entry criteria tracked in roadmap and CI backlog
**Current Status (2026-03-16):**
- ✅ All CI gates active and passing (23-gate ci-freeze chain)
- ✅ Phase-10 runtime: OFFICIALLY CLOSED (remote CI run `22797401328`)
- ✅ Phase-11 verification substrate: OFFICIALLY CLOSED (remote CI run `22797401328`)
- ✅ Phase-12 trust layer: OFFICIALLY CLOSED (remote CI run `23099070483`, PR #62)
- ✅ Phase-13 kill-switch gates: 6/6 PASS (tag `phase13-kill-switch-gates-pass` at `0ec4bb5e`)
- ✅ `CURRENT_PHASE=12` formal transition completed (`0adb2a84`)
- ✅ Performance baseline lock committed and active
- 🔄 Phase-13 boundary hardening: active workstream

---

Expand Down Expand Up @@ -813,18 +806,19 @@ This document is **binding** and **enforceable** through CI gates.

## 16. Document Control

**Version:** 1.4
**Version:** 1.5
**Status:** ACTIVE
**Effective Date:** 2026-02-13
**Review Date:** Bi-weekly
**Last Review:** 2026-03-02
**Next Review:** 2026-03-16
**Last Review:** 2026-03-16
**Next Review:** 2026-03-30
**Approval Authority:** AykenOS Architecture Board
**Document Owner:** Kenan AY

**Revision History:**
| Version | Date | Author | Changes |
|---------|------|--------|---------|
| 1.5 | 2026-03-16 | Kenan AY | CI gate list updated to 23-gate chain; Phase-10/11/12 closure status; Phase-13 kill-switch PASS |
| 1.4 | 2026-03-02 | Kenan AY | Status update: Phase 10-A1 complete, Phase 10-A2 in progress |
| 1.3 | 2026-02-25 | Kenan AY | Added ci-gate-drift-activation gate documentation |
| 1.2 | 2026-02-22 | Kenan AY | Added ci-gate-sched-bridge-runtime gate documentation |
Expand Down
31 changes: 27 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -760,8 +760,27 @@ preflight-mode-guard:
exit 2; \
fi

# Phase-13 kill-switch gate suite
# Enforces distributed verification boundaries, proof integrity,
# observability isolation, and reputation prohibition.
# These gates are CI cluster workloads - not run in pre-ci discipline.
ci-kill-switch-phase13: \
ci-gate-proof-receipt \
ci-gate-proof-verdict-binding \
ci-gate-verifier-authority-resolution \
ci-gate-cross-node-parity \
ci-gate-proofd-service \
ci-gate-proofd-observability-boundary \
ci-gate-graph-non-authoritative-contract \
ci-gate-convergence-non-election-boundary \
ci-gate-diagnostics-consumer-non-authoritative-contract \
ci-gate-diagnostics-callsite-correlation \
ci-gate-observability-routing-separation \
ci-gate-verifier-reputation-prohibition
@echo "Phase-13 kill-switch gates: ALL PASS"

ci-freeze: PHASE10C_C2_STRICT=1
ci-freeze: ci-freeze-guard preflight-mode-guard ci-gate-abi ci-gate-boundary ci-gate-ring0-exports ci-gate-hygiene ci-gate-tooling-isolation ci-gate-constitutional ci-gate-governance-policy ci-gate-drift-activation ci-gate-structural-abi ci-gate-runtime-marker-contract ci-gate-user-bin-lock ci-gate-embedded-elf-hash ci-gate-performance ci-gate-ring3-execution-phase10a2 ci-gate-syscall-semantics-phase10b $(PHASE10C_FREEZE_GATE) ci-gate-mailbox-capability-negative ci-gate-workspace ci-gate-syscall-v2-runtime ci-gate-sched-bridge-runtime ci-gate-behavioral-suite ci-gate-policy-accept
ci-freeze: ci-freeze-guard preflight-mode-guard ci-gate-abi ci-gate-boundary ci-gate-ring0-exports ci-gate-hygiene ci-gate-tooling-isolation ci-gate-constitutional ci-gate-governance-policy ci-gate-drift-activation ci-gate-structural-abi ci-gate-runtime-marker-contract ci-gate-user-bin-lock ci-gate-embedded-elf-hash ci-gate-performance ci-gate-ring3-execution-phase10a2 ci-gate-syscall-semantics-phase10b $(PHASE10C_FREEZE_GATE) ci-gate-mailbox-capability-negative ci-gate-workspace ci-gate-syscall-v2-runtime ci-gate-sched-bridge-runtime ci-gate-behavioral-suite ci-gate-policy-accept ci-kill-switch-phase13
@echo "Freeze CI suite completed successfully!"

# Local freeze (skip performance and tooling-isolation gates for development)
Expand Down Expand Up @@ -828,10 +847,14 @@ ci-gate-boundary: ci-evidence-dir
@echo "== CI GATE BOUNDARY =="
@echo "run_id: $(RUN_ID)"
@echo "targets: $(CI_TARGETS)"
@rm -f "$(KERNEL_ELF)" "$(EVIDENCE_RUN_DIR)/artifacts/kernel.map"
@if echo "$(MAKEFLAGS)" | grep -Eq '(^|[[:space:]])n($$|[[:space:]])|--just-print|--dry-run|--recon'; then \
@if [ "$(PRE_CI_MODE)" = "1" ] && [ -f "$(KERNEL_ELF)" ]; then \
echo "pre_ci_mode: SKIP rebuild (existing artifact: $(KERNEL_ELF))"; \
mkdir -p "$(EVIDENCE_RUN_DIR)/logs"; \
echo "PRE_CI_MODE=1: skipped kernel rebuild, using existing artifact" > "$(EVIDENCE_RUN_DIR)/logs/build.log"; \
elif echo "$(MAKEFLAGS)" | grep -Eq '(^|[[:space:]])n($$|[[:space:]])|--just-print|--dry-run|--recon'; then \
echo "DRY-RUN: skipping boundary kernel build invocation"; \
else \
rm -f "$(KERNEL_ELF)" "$(EVIDENCE_RUN_DIR)/artifacts/kernel.map"; \
mkdir -p "$(EVIDENCE_RUN_DIR)/logs"; \
$(MAKE) KERNEL_PROFILE=validation KERNEL_MAP="$(EVIDENCE_RUN_DIR)/artifacts/kernel.map" guard-context-offsets kernel > "$(EVIDENCE_RUN_DIR)/logs/build.log" 2>&1; \
fi
Expand Down Expand Up @@ -1795,7 +1818,7 @@ ci-gate-decision-switch-phase45: ci-evidence-dir
@$(MAKE) ci-summarize RUN_ID=$(RUN_ID) EVIDENCE_ROOT=$(EVIDENCE_ROOT)
@echo "OK: decision-switch-phase45 evidence at evidence/gate-4.5-decision-switch-proof/$(RUN_ID)"

ci-gate-policy-proof-regression: ci-gate-policy-accept ci-gate-decision-switch-phase45
ci-gate-policy-proof-regression: ci-kill-switch-phase13 ci-gate-policy-accept ci-gate-decision-switch-phase45
@echo "OK: policy-proof regression suite passed (Gate-4 + Gate-4.5)"

ci-gate-performance: ci-evidence-dir
Expand Down
Loading
Loading