docs: Core Runtime Self-Extend Audit Report - #509
Merged
Conversation
Comprehensive audit of Ashlar's admission and self-extend readiness covering: - Production-ready components: Certification loop (invariants A-D), trust log APIs, hold admission - Spike/hold-only components: Self-extend runner adapter, certified autonomy loop, policy packs - Critical security gaps: Trust signature security holes (P0), signature/schema downgrade attacks - Top 10 gaps ranked by false-ADMIT risk with exploitability analysis - Requirements for autonomous self-extension with validation - Core vs product boundary analysis (trust kernel non-extractable components) - Recommended next PRs (P0: fix trust signatures, P1: integrate certified loop) Key findings: - Invariants A-D enforced and tested - Trust signatures have 3 exploitable security holes (limitations 7-9) - Certified loop exists in spikes but not integrated into production path - No dashboard UI for trust events - Self-extend policy pack rules documented but not implemented Audit methodology: Read 20+ source files, 4 spec documents, ~7000 total lines. Trace control flow from BackgroundAgentService through self-extend path. Rank gaps by exploitability × impact for false-ADMIT risk. Ref: docs/SELF-EXTEND-AUDIT.md, docs/certification-evidence.md, trust loop specs Co-authored-by: IanFrelinger <IanFrelinger@users.noreply.github.com>
cursorBotforce-pushed
the
cursor/core-runtime-self-extend-audit-95c7
branch
from
September 5, 2026 23:59
8b24695 to
a5b9cf6CompareCo-authored-by: IanFrelinger <IanFrelinger@users.noreply.github.com>
Co-authored-by: IanFrelinger <IanFrelinger@users.noreply.github.com>
Co-authored-by: IanFrelinger <IanFrelinger@users.noreply.github.com>
Uh oh!
There was an error while loading. Please reload this page.
cursorBot
pushed a commit
that referenced
this pull request
Sep 6, 2026
Co-authored-by: IanFrelinger <IanFrelinger@users.noreply.github.com>
cursorBot
pushed a commit
that referenced
this pull request
Sep 6, 2026
Co-authored-by: IanFrelinger <IanFrelinger@users.noreply.github.com>
cursorBot
pushed a commit
that referenced
this pull request
Sep 6, 2026
Co-authored-by: IanFrelinger <IanFrelinger@users.noreply.github.com>
cursorBot
pushed a commit
that referenced
this pull request
Sep 6, 2026
Co-authored-by: IanFrelinger <IanFrelinger@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Comprehensive read-only audit of Ashlar's core runtime focusing on admission and self-extend readiness for autonomous operation with validation. Produces structured markdown report under
docs/audits/as requested.Changes
docs/audits/2026-09-self-extend-core.md— comprehensive audit report covering:Key Findings
Production-Ready
Critical Gaps (P0)
Coupling Found
ApprovalBridge(Discord integration) — verify it stays out ofsrc/Testing
Audit-only PR (no code changes) — read-heavy analysis of existing implementation.
Audit Methodology
src/Ashlar.BackgroundAgents,src/Ashlar.Infrastructure,application/SELF-EXTEND-AUDIT.md,certification-evidence.md, trust loop specs)BackgroundAgentServicethrough self-extend execution pathspikes/autonomy-first-flight/P2-P6, S1-S5)Testing strategy (blast radius)
make kernel-coverage-gate— N/A (docs only)make kernel-gate— N/A (docs only)make test-prod-style— N/A (docs only)Checklist
make testpasses locally — N/A (docs only, no code changes)TODOorNotImplementedExceptionleft unresolved — docs onlyRelease
Scope Notes
Per user request:
docs/audits/Recommended Follow-Ups
Next PRs should address (per audit §8):
See audit report §8 for detailed task breakdowns and exit criteria.