Repository navigation
Releases
v0.10.0 Grade
Aegis v0.10.0 — Grade
This release adds a CLI quality floor and repairs the implementation behind
it. It does not claim improved model effectiveness from pipeline traversal.
Main changes
- Recorded RED/GREEN, committed acceptance plans and review blockers, checked
against exact source commits and rerun on the integrated tree. - Canonical ref handling, strict flag validation and round-trip-safe recovery
commands. Existing evidence and quarantine cannot disappear through aliases. - Owned state/lifecycle locks, recoverable memory transactions, conflict-safe
legacy migration and worktree removal that preserves local work. - Complete integrity inputs, consistent checkpoint positions and source-bound
human G4 approval. Old approvals cannot authorize new commits or open lanes. - Correct failure reporting for audit/tool/monitor inputs, bounded HTTP reads,
literal exec argv and owned descendant cancellation. - Six pinned optional Superpowers craft sources with explicit Aegis collision
rules, native fallbacks, caller-reported usage and private-safe observations. - Fresh-source release checks and an actually verified distribution artifact.
- Lock contention bound raised from 10s to 60s after the audit's own 20-way
check wedged on slow CI hardware; ownership safety is unchanged. - Corrected landing-page muted-text contrast and footer-link distinction,
with historical metrics and unmeasured effectiveness clearly labelled.
Installation and compatibility
Use Node 20 or 22+ and Git. Node 18 support was removed because the repaired
glob dependency requires the newer runtime range. This is a pre-1.0 minor
release with new refusal behavior; malformed or ambiguous inputs that used
to be ignored may now fail explicitly.
Download aegis-0.10.0.tgz and its SHA256 sidecar from this release. The built
asset includes compiled code, the consumer shrinkwrap and bundled runtime
dependencies. Installation needs no package build scripts:
npm install -g --ignore-scripts https://github.com/Shreyash3007/aegis/releases/download/v0.10.0/aegis-0.10.0.tgzOlder updaters used generated source archives. Upgrade to this asset explicitly.
The new updater selects built release assets and disables installation scripts.
For an existing project, first inspect/reconcile any legacy memory conflict or
pending journal. Refresh native procedures with aegis sync --refresh-skills.
Review added integrity inputs before taking a fresh checkpoint. G4 needs fresh
human approval for the actual source commit, not a stale v0.9 sign-off.
Verification and limits
The attached release/package evidence binds the tested source SHA, CI run,
command results, installed dependency versions and artifact digest. See the
source release contract and audit ledger for finding-level regression links.
Legacy missing receipts need the explicit strict flags; enrolled receipts are
always checked. Skills remain guidance, approvals are attributed audit trails,
and unrestricted shell actors are outside the CLI's safety boundary. Structural
doc checks are not semantic proofs. Power-loss durability, general small-model
effectiveness and comparative quality/cost advantages remain unmeasured.
The updated v0.11 plan is queued: explicit strict-profile migration, thin
host adapters with real capability evidence, immutable evidence publishing,
and an owner-selected real small-executor delivery trial. Model routing is
still deferred. No adapter, community study or small-model trial is represented
as already implemented by this release.
v0.5.2 — aegis-guide: 'walk me through Aegis' conversational onboarding
The Docs-axis fix. In the multi-persona simulation, no persona scored Docs above 9 — and the feedback was consistent: "I don't know how this works, and I shouldn't have to read a manual to start." Now you don't.
New skill: 00f aegis-guide
Tell your AI agent (any harness): "walk me through Aegis." The guide skill takes over and does the entire onboarding with you:
- Explains the big idea in three sentences — then asks if you want depth or just setup
- Does the work — init, config, verification — with consent before every mutation, explaining what each thing is before creating it
- Interviews conversationally — one question at a time, each with a recommendation and a one-line why ("How do you work — watch agents live, or let them run while you're away?" → your autonomy posture, with the trade-off stated plainly; the decision is always yours)
- Teaches the two daily moves live — fast lane and chore, with a real first entry in your history if you want it
- Tunes for your style — AFK worker →
aegis waveblock + the doctor attention report; team → gate flow; ceremony-averse → minimal profile - Ends with a teach-back — you leave able to name the three daily commands (
status,fix,doctor), what a gate is, and where state lives
The manual (SETUP.md) is now the reference; the skill is the tour.
Verification
aegis eval --all: 68/68 skill files (was 67)- 101/101 integration tests · strict tsc
- Shipped via the Aegis protocol on Aegis itself (
07a→07b→07c→08a→G4→08b, G4 recorded asautonomy-full) - Fun eval catch: the first draft failed
cli-refs-existbecause the phrase "ask-aegis skill" parses as a phantomaegis skillcommand — the harness enforcing real CLI refs even on its own author
aegis update # or: npm install -g https://github.com/Shreyash3007/aegis/archive/refs/tags/v0.5.2.tar.gzv0.5.1 — AFK autonomy + ghost-binary tripwire + wave prompt block
Built following the Aegis protocol on Aegis itself: 00a→00b→00d→07a (the hardening path), shipped 07b→07c→08a→G4→08b with G4 approved under the owner's explicit autonomy: full AFK directive — recorded as by: autonomy-full. Full audit trail in the repo's own state history.
Invisible failure modes → loud
- Ghost-binary tripwire. Hooks now bake the CLI version at install time and compare it against the resolved
aegison every run. A stale global link (observed repeatedly on machines with parallel agent sessions doingnpm link) now prints a loud, non-blocking warning with the exact repair (aegis hooksto re-resolve, oraegis update) instead of silently enforcing old code. - Live catch during testing: the first version of the warning embedded backticks in the hook's echo — the shell executed them as command substitution, running
aegis hooksandaegis update(a network call) on every commit. Found by the integration test, fixed, regression-covered. aegis wave— emits the executor prompt block (brain/wave-prompt.md, deterministic): orient withaegis status/next, wrap every run inaegis exec, never hand-edit.aegis/, fix/chore protocol, report-once discipline. Executor compliance is now a paste-able artifact instead of prompt-writer memory.
AFK autonomy
aegis doctorattention report — the morning-coffee check: everything that will park an unattended run, surfaced before you leave: OPEN gates on your forward edges, nonzero loop counters with traversals remaining, open fixes. (Dogfooded: it correctly reported our own 7-edge ship walk at 1/3 each.)- exit-5 escalation now names its recovery command (
aegis loops reset --reason "...") in the refusal message itself. The tripwire stays human-bound by design — what changed is you can see it coming and unpark in one command.
Verification
- 101/101 integration tests (+4: version tripwire, wave determinism, exit-5 recovery hint, attention report)
aegis eval --all: 67/67 · strict tsc · no new deps
aegis update # or: npm install -g https://github.com/Shreyash3007/aegis/archive/refs/tags/v0.5.1.tar.gzv0.5.0 — multi-language enforcement, profiles, ask-aegis (built by opencode/GLM-5.2 waves)
A milestone in two ways: the feature set, and how it was built — every implementation wave was delegated to opencode 1.18.2 (GLM-5.2) driven through aegis exec inside the self-hosted repo, with every diff audited and the full suite run by the maintainer before acceptance. The executor stack is now VERIFIED in docs/PLATFORM-MATRIX.md with dated evidence.
Multi-language enforcement (the TS ceiling is gone)
aegis typecheck— stack-aware oracle:tsc(local then global),cargo check,go vet ./...,python3 -m compileall. Missing toolchain → honest UNMEASURED, never a fake pass, never a hard fail.- The pre-commit hook,
validate contracts, and the merge oracle all use it. Aegis now enforces on Go/Rust/Python repos, not just TypeScript.
Profiles
- Install profiles —
aegis init --profile minimal|standard|full: minimal gives you the standalone tools (ast, validate, checkpoint, exec, fix) with no hooks and no pipeline ceremony — the cherry-pick adoption path. - Hook strictness —
aegis hooks --profile minimal|standard|strict: minimal = record-only (post-commit), strict addsvalidate teststo pre-push. Foreign hooks and.aegis-origbackups are never touched by profile switches.
Workflow
aegis status --markdown— writes a deterministicbrain/handoff.md: portable position snapshot for session-to-agent handoffs (no timestamps, A1.2-safe).validate testsnow runs the repo's real package manager (npm/yarn/pnpm/bun, detected frompackageManagerfield → lockfiles).
Skills: 66 → 67, deeper
- New
00e ask-aegis— the next-action advisor: at any point, ONE recommended action with the command output behind it. Unsure/blocked/cold-session entry point. - Six priority skills deepened from ECC (MIT) reference material (security: STRIDE/OWASP; database: migration safety; system design: API models; e2e/perf: verification loops; standards; parallel build: TDD discipline) — attribution in each file.
docs/INTEROP.mdhas the Aegis+ECC recipes.
Fix found by the delegation itself
aegis exec lost caller quoting on multi-word args (an opencode prompt with parens died in the shell). Fixed: one arg = verbatim command string; multiple args = per-arg shell-quoted. Regression-tested.
Verification
- 97/97 integration tests (was 72 in v0.4.2; +25 across the waves)
aegis eval --all: 67/67 skill files · strict tsc · no new runtime deps- Every wave's output independently audited; executor evidence recorded in the platform matrix
aegis update # or: npm install -g https://github.com/Shreyash3007/aegis/archive/refs/tags/v0.5.0.tar.gzv0.4.2 — polish: doc-contract gates, per-app contract paths, --version
Final polish before live adoption. Closes the last two nice-to-haves from the BlindFolio review (the only remaining code items on either trial's list) plus one gap every trial kept tripping over.
contracts_doc mode — doc contracts are a real gate now
Repos whose contracts are markdown/fixtures (not src/contracts TS) previously got presence-check + UNMEASURED. Now validate contracts scans doc contracts and applies real semantics:
- PASS — substantive (≥10 lines) AND cites the code it pins (backticked paths,
source:refs) - FAIL — thin stubs; and since the pre-push hook runs this suite, a thin contract blocks the push. A gate that never fires is not a gate; a contract that doesn't cite code pins nothing.
- UNMEASURED — no contracts at the configured path (honest skip, as always)
Per-app contract paths
Monorepos can give each app its own contract home:
aegis config set contracts_path.pw-ai pw-ai/plan # '-' removes the override
aegis contracts --app pw-ai # verifies against pw-ai/planaegis --version
Five trials reached for it; it didn't exist. aegis --version / version / -v now prints the package version.
Verification
- 72/72 integration tests (+3: thin-stub FAIL, substantive PASS, per-app override lifecycle, --version)
aegis eval --all: 66/66 · strict tsc · no new deps- Regression-safe: the v0.4.1 behavior changes (push-blocker fix, lockfile) all still green — one v0.4.1 test updated because thin doc contracts now correctly FAIL
aegis update # or: npm install -g https://github.com/Shreyash3007/aegis/archive/refs/tags/v0.4.2.tar.gzStatus against both independent trials: every must-fix and every nice-to-have code item is now shipped. Remaining items are evidence, not code: a documented full GLM/opencode wave, per-app contracts in a live monorepo, and a release that settles.
v0.4.1 — correctness: concurrent writes can't lose history anymore
Two trials re-tested v0.4.0 within hours. One found a real correctness bug in the flagship feature; this is the fix.
The bug (metis-nda, 7.5/10 — down from 8, correctly)
They ran aegis exec in its exact advertised use case — concurrent fork-agent waves — and measured 3/5 and 4/10 events recorded. No error, resume still said VERIFIED. Root cause: atomic writeJ (tmp+rename) prevents torn files but not lost updates — two processes read the same history, append in memory, last write silently wins. resume verifies hashes, not completeness, so nothing looked wrong.
The fix: state lockfile
Every state read-modify-write (transition, gate, contracts, loops, lane, fix, chore, exec — root and per-app states) now takes a lockfile. Stale locks (dead pid or >60s old) are stolen, so a crash mid-mutation never wedges the repo. Measured after the fix:
- 10 concurrent
aegis exec→ 10/10 events (integration test, run every CI) - 8 concurrent
aegis chore→ 8/8; live experiment 6/6 × 5 trials - stale-lock stealing covered by test
The v0.4.0 "serialize your mutations" documentation rule is retired — all commands are now safe under concurrency; event order is timing-dependent but the trail is complete.
BlindFolio's must-fix: validate contracts push-blocker
validate contracts hard-FAILED (exit 9) when tsc was missing at repo root — and since the pre-push hook runs it, every push was blocked on monorepos with per-app toolchains. Also: doc-style contracts (markdown/fixtures, no .ts) made tsc the wrong oracle entirely. Both cases now degrade to honest UNMEASURED with guidance (presence is still verified; semantic checks belong in a custom suite). Verified by test: a push with doc-style contracts_path succeeds.
Papercut
aegis config set contracts_path - stored the literal string "-". - now removes optional keys (contracts_path, token_budget, apps) — state files shouldn't lie.
Verification
- 69/69 integration tests (+6 new, incl. the exact concurrent-exec repro)
aegis eval --all: 66/66 · strict tsc · no new deps
aegis update # or: npm install -g https://github.com/Shreyash3007/aegis/archive/refs/tags/v0.4.1.tar.gzv0.4.0 — structural release: monorepo scoping, exec wrapper, every remaining trial gap
The release that closes every gap raised by both independent production trials (BlindFolio 4-app monorepo: 9/10, metis-nda brownfield waves: 8/10). Each item maps to a specific, numbered finding from those reviews.
Monorepo scoping — shipped (BlindFolio #1, their last big one)
aegis init --yes --apps web,api # or: aegis config set apps web,api
aegis status # repo summary: one line per app + global lanes
aegis status --app web # full per-app detail
aegis transition 01a --app api # mutations REQUIRE --app (exit 2 without — never guessed)
aegis gate G4 --approve --app web # gates are per-appPer-app pipeline states at .aegis/apps/<name>/state.json; gates and the fix/chore fast lane are per-app; lanes stay global; checkpoints record and hash every app state (hand-edit an app's state → aegis resume exit 6). Single-app repos: zero behavior change. Design record: docs/MONOREPO-DESIGN.md.
contracts_path (BlindFolio #2)
N1 contract location is no longer hardcoded to src/contracts:
aegis config set contracts_path pw-ai/plan/contracts — honored by validate contracts, the merge oracle, and the contracts command. Repos whose contracts live elsewhere get a real N1 gate instead of a permanent honest skip.
aegis exec (BlindFolio #3 direction)
aegis exec -- <cmd> — the executor-wave wrapper: runs the command, records it + exit code in history, checkpoints before and after. Gives opencode/GLM/fork-agent prompts a one-token way to keep every run on the audit trail. Records reality; never fabricates transitions (A1.1).
Fast-lane merge guardrail (BlindFolio #4)
fix done now warns when closing on a non-base branch: the fast lane gates tests, not merges — aegis merge check <branch> before merging.
Concurrency hardening + the experiment, run (metis-nda #2)
- State writes are now atomic (tmp+rename) — concurrent writers can never tear
state.json. - The pinned shared-tree experiment was RUN: 5 parallel checkpoints all succeed with
resumeVERIFIED; 6 parallel state mutations ×5 trials: integrity VERIFIED every time, but 3/5 trials lost one audit event (last-writer-wins). - Binding rule (now in AGENTS.md): checkpoints are freely parallel; state mutations must be serialized — one agent owns transitions in a wave.
Own-rule repair + self-hosting
aegis ast buildon this repo flagged a real cycle (commands.ts ↔ eval.ts) — broken by injecting the command set through the dispatcher. Our own DAG rule now passes on ourselves.- aegis-cli now runs Aegis on itself: 00d import bridge drafted
brain/architecture/*+brain/quality/known-issues.md(aegis import check4/4), git hooks installed and firing (they ran on this very push), AGENTS.md/CLAUDE.md synced via marker blocks.
Verification
- 63/63 integration tests (31 → 41 → 52 → 63 across the four releases), 11 new v0.4 tests
aegis eval --all: 66/66 skill files- strict tsc; zero new runtime deps
Install / upgrade:
npm install -g https://github.com/Shreyash3007/aegis/archive/refs/tags/v0.4.0.tar.gz
# or, with any v0.3.0+ install: aegis updateKnown boundaries, honestly: per-app contracts and per-app brain subtrees are deferred pending a real monorepo dogfood; external-executor enforcement remains prompt-deep (exec + drift detection are the mitigation, not a wall); platform matrix still verifies Kimi Code (Linux) only.
v0.3.0 — fit your shape: fast lane, import bridge, pluggable validators
Built from both independent hands-on production trials (a 4-app monorepo and a brownfield wave-dispatch workflow). Every item below answers a gap those trials measured.
New commands
aegis fix start <desc>/done/abandon --reason+aegis chore <desc>— the fast lane. Small changes no longer pay the full PRD → 5 gates → contracts → slices toll. The track never touches pipeline state,fix donestill requires the tests suite to pass (or honestly record UNMEASURED), and every entry is audited instate.jsonhistory. Enforcement = recorded, sized gates, not uniform gates.aegis import check— verifies the 00d brownfield import bridge: brain docs must exist, be substantive, and carry source citations / INFERRED labels (exit 4 until true). The 00d skill now harvests existingCLAUDE.md/DECISIONS.md/docs/*before inferring from code — no more re-authoring months of accumulated context.aegis update [--check]— self-update from the latest GitHub tag tarball. Registry-free distribution loop closed (no more manual re-clone/rebuild/relink).
New capabilities
- Pluggable validators —
aegis config set validate_suite.smoke "node scripts/verify-sync.mjs"registers owner-declared smoke scripts as first-class suites:aegis validate smoke, exit code = verdict, command recorded verbatim as the citation. Real stacks get real gates instead of honest UNMEASURED. - Drift detection —
aegis doctornow reconciles state vs git reality: recorded lanes with no matching worktree, commits whose post-commit checkpoint never fired. Reported honestly, never auto-corrected (A1.1: we don't fabricate history from git events).
Fixes
validate testsno longer crashes on repos withoutpackage.json(honest UNMEASURED).- Help text: removed the phantom "Planned" line (eval/migrate have shipped for two releases).
update --checkno longer offers a downgrade when local is ahead of the latest tag.
Docs (deliberately not code)
docs/MONOREPO-DESIGN.md— per-app state scoping proposal for v0.4. Not shipped undogfooded; monorepo support done badly is worse than none.docs/PLATFORM-MATRIX.md— orchestration-pattern matrix + the shared-tree fork-agent wave experiment (planned, unrun; claims prohibited until evidenced).SETUP.md— planning AFK sessions around loop/cycle escalation (exit 5 stops for a human by design).
Verification
- 52/52 integration tests (was 41 in v0.2.1, 31 in v0.2.0) — 11 new tests covering every feature above
aegis eval --all: 66/66 skill files pass- strict tsc, zero runtime deps beyond ts-morph
Install / upgrade:
npm install -g https://github.com/Shreyash3007/aegis/archive/refs/tags/v0.3.0.tar.gz
# or, if you already have aegis installed: aegis updateVerified platform: Kimi Code (Linux). All others UNVERIFIED until evidenced — see docs/PLATFORM-MATRIX.md.