AUREN 1.0.4:可审计的自主推理与工程网络
sourabhJainR/AUREN
AUREN 发布 1.0.4,一个 provider-neutral 的 AI 工程系统,把软件工作变成可度量、有证据支撑的学习闭环。它组合仓库智能、任务分解、能力路由、基于图的智能体执行、验证与审查、持久证据、回归回放和持续策略学习,并将执行权限与学习分离:学习结果须通过独立评测与回归门禁后才影响后续任务。
AUREN — Autonomous Unified Reasoning & Engineering Network
Current release: 1.0.4
Canonical repository: sourabhJainR/AUREN
Runtime state: ~/.auren
A provider-neutral AI engineering system that turns software work into a measurable, evidence-backed learning loop. AUREN combines repository intelligence, task decomposition, capability routing, graph-based agent execution, bounded local/cloud resources, verification and review, durable evidence, regression replay, and continuous strategy learning. Its improvement loop is empirical rather than self-asserted: generate independent benchmarks, execute them through sealed boundaries, measure transfer on new domains, estimate causal effects, re-test on fresh holdouts, and promote or roll back learned capabilities only when the evidence gates pass.
AUREN separates execution authority from learning. Active runs operate under bounded, policy-gated execution; learning is recorded as evidence and can influence future runs only after independent evaluation, regression checks, and promotion/rollback decisions. The result is an engineering system designed to improve from observed outcomes while remaining auditable, reproducible, and fail-closed when evidence is insufficient.
What AUREN is today
The primary product flow is designed to connect task intake through verification, learning, memory consolidation, empirical tuning, and controlled improvement. The repository also retains distinct compatibility and lower-level execution surfaces; their boundaries and outstanding integration gaps are documented in docs/REPOSITORY_CONSISTENCY_AND_ENHANCEMENT_PLAN.md.
Task / Intent
|
v
Context + Repository Intelligence
|
v
Cognitive Plan / Capability Routing
|
v
StateGraph / Agent Team
|
v
Verify -> Review -> Evidence
|
v
Record Experience
|
v
Continuous Maintenance Lane
|
+--> consolidate memory
+--> replay / evaluate history
+--> tune strategy + confidence
+--> tune iteration target
|
v
Advisory policy for future tasks
The important architectural boundary is that execution remains bounded and policy-gated while learning is durable and continuous. The maintenance lane never mutates an active task's policy mid-run; learned changes are applied to future work after evidence and regression gates pass.
Canonical ownership boundaries
| Area | Canonical owner |
|---|---|
| Dependency planning | portable.task_planner.TaskPlan |
| Default graph orchestration | portable.orchestration.Graph / Orchestrator |
| Supervisor-facing graph/team facade | portable.state_graph.StateGraph / GraphAgentTeam |
| Standalone checkpointable graph runtime | portable.agency_state_graph.StateGraph |
| Agent-team orchestration | portable.state_graph.GraphAgentTeam plus the harness adapter in .ai-harness/runtime/graph_agent_team.py |
| Capability semantics and routing | portable.agent_capabilities / CapabilityFabric |
| Durable memory | portable.agent_capabilities.PersistentMemory |
| Repository retrieval | portable.agency_codebase_context.CodebaseIndex and portable.repo_intelligence.RepositoryMap |
| Scheduling and run claims | portable.automation_scheduler.AutomationScheduler |
| Adaptive learning | portable.adaptive_learning.AdaptiveLearningStore |
| Empirical tuning | portable.adaptive_tuning.AdaptiveTuner |
| OS service lifecycle | portable.maintenance_service |
| Local bounded execution | portable.local_offload.LocalOffloadBroker |
Compatibility surfaces should adapt to these owners instead of maintaining independent state. The supervisor-facing portable.state_graph API wraps the existing Graph/Orchestrator path; portable.agency_state_graph is a distinct lower-level graph runtime. Keep their contracts explicit and add integration tests before assuming the two graph APIs are interchangeable.
See docs/CAPABILITY_MEMORY_OWNERSHIP.md for the capability/memory contract and docs/RIPWIRE_INTEGRATION.md for repository-intelligence design lineage.
See docs/CAPABILITY_AWARE_EXECUTION.md for capability-aware execution, optional installed-skill/MCP/plugin discovery, bounded selection, and graceful degradation.
Durable autonomous execution\n\nAUREN now supports company-level long-running work units through portable.autonomous_company.AutonomousCompany. The supervisor persists iterations, blocker decisions, alternate-path confirmation, CI waits, self-reviews, evidence, recipes, and a shareable trust score so work can resume after process restarts. portable.executive_team.ExecutiveTeam provides skill-specific agents under one durable task owner, while RecipeMiner extracts reusable patterns from the repository. See docs/AUTONOMOUS_EXECUTIVE_LOOP.md.\n\n## Deterministic repository intelligence
AUREN builds one deterministic repository snapshot and reuses it for multiple structural questions.
python -m portable.repo_intelligence . --for="Fix the authentication timeout regression" --token-budget=4000 python -m portable.repo_intelligence . --mode=callers --symbol="authenticate" python -m portable.repo_intelligence . --mode=impact --symbol="authenticate" --graph-depth=1 python -m portable.repo_intelligence . --mode=tests --symbol="authenticate" python -m portable.repo_intelligence . --mode=situ --base=HEAD python -m portable.repo_intelligence . --mode=pack-task --for="Add retry handling to the payment client"
The map provides deterministic file ordering and SHA-256 identity, symbol/import/call relationships, bounded graph expansion, explicit token budgets, affected-test candidates, parser-error disclosure, skipped-file disclosure, and explicit unknowns when evidence is incomplete.
Repository intelligence accelerates context discovery; verification, policy, review, regression, permissions, and release gates remain authoritative.
Graph orchestration and agent teams
AUREN includes a dependency-free StateGraph runtime inspired by durable agent-graph patterns without taking a LangGraph runtime dependency. It provides state snapshots, reducers, conditional routing, bounded retries, checkpoints, interrupts, deterministic traces, bounded supersteps, and explicit parallel-safety controls.
GraphAgentTeam uses that graph runtime while retaining TaskPlan as the canonical dependency contract:
TaskPlan
|
v
Dependency graph
|
+--> independent read-only agents -- bounded parallel supersteps
|
+--> mutating agents ------------ serialized execution
|
v
SharedTaskMemory
|
v
Verification / review / synthesis
Dependency failures are fail-closed. Read-only roles receive an explicit patch_allowed: false guard. The graph path is the default; AUREN_GRAPH_TEAM=0 remains available for diagnostics and compatibility.
Local resource offload
The graph/team layer can use an additive LocalOffloadBroker for independent local work that should not occupy the coordinator context. It detects CPU capacity, bounds concurrency, applies time/output budgets, scrubs secret-like environment variables, and can run jobs in temporary workspace copies. The broker is an execution resource, not a second orchestrator or policy owner.
python -m portable.local_offload --project-root . --workers 3 -- pytest -qSee docs/LOCAL_OFFLOAD.md for the API and safety model.
Engineering lifecycle and evidence
The twelve-phase engineering evolution control plane is available through portable.engineering_evolution.EngineeringEvolutionControlPlane, spanning canonical evidence, evidence graph, predictive feedback, AUREN compaction, impact/failure prediction, historical decomposition, provider calibration, cross-project validation, graduation, benchmark gates, and Ollama-independent embedded local LLM execution.
The canonical EngineeringEvidenceEnvelope carries immutable lifecycle references from context through changeset, verification, review, learning and release without duplicating evidence claims. See docs/CANONICAL_ENGINEERING_EVIDENCE_ENVELOPE.md.
For substantial work the control plane follows one evidence lineage:
research -> plan -> implement -> verify -> review -> shadow -> canary -> promote
|
+-> rollback
ContextEvidence is immutable. Verification creates a VerificationReceipt; review binds evidence to the same artifact and verification result. Shadow and canary require the appropriate prior receipts. Promotion requires matching evidence and can be rolled back.
The state-ledger flow is:
INTENT
-> CONTRACT
-> REPO_FACTS
-> DECISIONS
-> EVIDENCE
-> CHANGESET
-> VERIFY
-> OUTCOME
-> OPEN_RISKS
-> NEXT
Continuous learning and self-improvement
Every completed task can become an experience record. The learning path is deliberately separated from the active worker path:
experience
-> deferred learning
-> memory consolidation
-> rolling benchmark history
-> empirical comparison
-> confidence calibration
-> strategy / iteration tuning
-> advisory policy
-> future task
The current adaptive tuner maintains durable history and policy state. Promotion is bounded by observation counts, independent-task counts, confidence-adjustment limits, iteration floors/ceilings, and evidence requirements.
The maintenance lane is intentionally outside active orchestration. It claims one scheduled run, processes deferred learning, evaluates the longer history, writes a maintenance receipt, and releases the durable scheduler claim.
Continuous maintenance service
portable.maintenance_service is the OS lifecycle wrapper for the existing maintenance lane. The scheduler remains the source of truth; the service does not create a second learning store or scheduler.
Default schedule
The default maintenance schedule is the last calendar day of every month at 02:00 local time. The time, timezone, project root, polling interval, budget, enablement, and service scope are configurable.
Configuration defaults:
| Setting | Default |
|---|---|
| Schedule | Last day of every month |
| Time | 02:00 |
| Timezone | local |
| Poll interval | 60 seconds |
| Maintenance budget | 20 jobs |
| Service scope | user |
| Enabled | true |
The durable scheduler retains claim-before-run semantics and records run outcomes. Existing interval-based schedules remain compatible. The previously-created adaptive-learning five-minute schedule is migrated once to the monthly cadence instead of being deleted, preserving its run history.
Foreground mode
Useful for development and validation:
python -m portable.maintenance_service --project-root /path/to/repo run
Run one maintenance attempt without entering a long-running loop:
python -m portable.maintenance_service --project-root /path/to/repo run-once
Environment configuration
export AUREN_PROJECT_ROOT=/path/to/repo export AUREN_MAINTENANCE_TIME=02:00 export AUREN_MAINTENANCE_TIMEZONE=Asia/Kolkata export AUREN_MAINTENANCE_POLL_SECONDS=60 export AUREN_MAINTENANCE_BUDGET=20 export AUREN_MAINTENANCE_ENABLED=1 export AUREN_SERVICE_SCOPE=user
The scheduler itself stores the calendar policy in its durable task record, so service restarts do not reset the monthly schedule.
Linux: systemd
Install the user service:
python -m portable.maintenance_service --project-root /path/to/repo --scope user install
Install as a system service when elevated service scope is required:
sudo python -m portable.maintenance_service --project-root /path/to/repo --scope system install
Manage it with:
python -m portable.maintenance_service --scope user status python -m portable.maintenance_service --scope user start python -m portable.maintenance_service --scope user stop python -m portable.maintenance_service --scope user uninstall
The generated unit runs the existing Python maintenance host, restarts on failure, and keeps the calendar decision in AUREN's durable scheduler.
macOS: launchd
Install the per-user launch agent:
python3 -m portable.maintenance_service --project-root /path/to/repo --scope user install
For a system daemon, use the system scope with the privileges required by the target machine:
sudo python3 -m portable.maintenance_service --project-root /path/to/repo --scope system install
Manage it with:
python3 -m portable.maintenance_service --scope user status python3 -m portable.maintenance_service --scope user start python3 -m portable.maintenance_service --scope user stop python3 -m portable.maintenance_service --scope user uninstall
Windows: Windows Service
Windows Service mode uses pywin32 because a Python process must integrate with the Windows Service Control Manager rather than behave like a plain console process.
python -m pip install pywin32 python -m portable.maintenance_service --project-root C:\path\to\repo --scope system install
Manage it with:
python -m portable.maintenance_service --scope system status python -m portable.maintenance_service --scope system start python -m portable.maintenance_service --scope system stop python -m portable.maintenance_service --scope system uninstall
The service starts automatically and waits efficiently for the durable monthly schedule rather than running a second scheduler.
Service safety rules
The service only owns lifecycle and execution of the already-gated maintenance lane. It does not change credentials, permissions, merge authority, security policy, or active task policy. A failed maintenance cycle remains retryable through the scheduler's claim/run ledger instead of being silently discarded.
Install, upgrade, rollback and uninstall
AUREN is installed outside the project repository under ~/.auren. The release bundle is immutable and identified by version, source commit and bundle hash.
Install the latest release
Linux/macOS:
curl -fsSL https://raw.githubusercontent.com/sourabhJainR/AUREN/main/install.sh | bashWindows PowerShell:
irm https://raw.githubusercontent.com/sourabhJainR/AUREN/main/install.ps1 | iex
Install an exact release
AUREN_VERSION=v1.0.4 curl -fsSL https://raw.githubusercontent.com/sourabhJainR/AUREN/main/install.sh | bashCheck for updates
python ~/.auren/current/auren_cli.py check-updateUpgrade
python ~/.auren/current/auren_cli.py updateThe updater verifies the remote source, builds a new immutable version directory, preserves existing state, and atomically switches ~/.auren/current. It refuses automatic downgrades.
Roll back
python ~/.auren/current/auren_cli.py rollbackRollback selects the previous pinned installation. It does not mutate or overwrite immutable version directories.
Uninstall
If the maintenance service is installed, remove the service first:
python ~/.auren/current/portable/maintenance_service.py --scope user uninstall rm -rf ~/.auren
For a system-scoped service, use --scope system with the privileges required by the host before removing ~/.auren.
A legacy .aer installation, if one exists from an older release, can be removed after its service is stopped:
rm -rf ~/.aerAUREN does not install into or modify the target repository merely by being installed.
AUREN Engineering Console
AUREN includes a lightweight local web UI for observing engineering execution, learning, evidence, regression protection, repository/code-graph state, quality signals, benchmarks, research activity, and test growth.
The console is observation-only and reuses AUREN's existing state owners. It is bundled into portable AUREN installations; no Node.js or separate UI installation is required.
After AUREN is installed, start it against the repository you want to inspect:
python ~/.auren/current/auren_cli.py dashboard --project-root /path/to/your/repositoryWindows PowerShell:
python "$HOME\\.auren\\current\\auren_cli.py" dashboard --project-root "C:\\path\\to\\your\\repository"
Then open http://127.0.0.1:8765.
If the default port is busy:
python ~/.auren/current/auren_cli.py dashboard --project-root /path/to/your/repository --port 8876The dashboard uses the selected project root for repository intelligence and existing AUREN state. It does not expose source contents, prompts, credentials, or provide write/execution APIs.
See dashboard/README.md for installation-path details, Windows/Linux/macOS commands, remote access through SSH tunneling, health checks, troubleshooting, and the direct module invocation.
AUREN CLI and portable distribution
The GitHub Actions auren-portable artifact and the GitHub release asset are self-contained AUREN distributions. The release also includes one-command installers for Linux/macOS and Windows.
Install the latest published release on Linux/macOS:
curl -fsSL https://raw.githubusercontent.com/sourabhJainR/AUREN/main/install.sh | bashInstall a specific release:
AUREN_VERSION=v1.0.4 curl -fsSL https://raw.githubusercontent.com/sourabhJainR/AUREN/main/install.sh | bashWindows PowerShell:
irm https://raw.githubusercontent.com/sourabhJainR/AUREN/main/install.ps1 | iex
The installer downloads the release bundle, extracts the pinned launcher, verifies the bundle manifest and installs AUREN under user-scoped ~/.auren storage. It does not modify the target repository.
Install directly from a downloaded release bundle:
python auren_cli.py auren-portable.zip
Build and verify a bundle locally:
git clone https://github.com/sourabhJainR/AUREN.git
cd AUREN
python auren_cli.py build --output auren-portable.zip
python auren_cli.py verify auren-portable.zipAUREN records a provenance chain:
semantic version -> exact source Git commit -> bundle SHA-256
The installed machine state is kept under:
~/.auren/versions/v<version>/
~/.auren/current
~/.auren/current/install.json
~/.auren/active.json
~/.auren/automation/automation.db
~/.auren/memory/memory.db
Execution journals, telemetry, caches, worktrees, and Python caches remain outside the portable distribution.
Repository isolation and safety
Installing, updating, or rolling back AUREN does not:
- add AUREN distribution files to the target repository;
- modify project source, tests, manifests, or configuration merely to install AUREN;
- modify Git remotes, hooks, branches, or ignore rules;
- silently modify MCP configuration, credentials, permissions, production access, or merge authority;
- allow learned behavior to weaken immutable safety or security controls.
When AUREN performs a user-requested engineering task, project changes are the requested engineering changes, not AUREN distribution artifacts.
Capability roles
| Role | Typical use |
|---|---|
| Planner | Break down substantial implementation work |
| Explorer | Trace repository structure and dependencies |
| Researcher | Gather external/domain evidence when permitted |
| Builder | Implement requested code/configuration/test changes |
| Verifier | Run and interpret deterministic verification |
| Reviewer | Check correctness, compatibility, quality, and maintainability |
| Security reviewer | Examine elevated-risk changes and boundaries |
| RCA investigator | Diagnose without patching when investigation-only work is requested |
| Synthesizer | Combine evidence, decisions, unresolved risks, and next action |
Independent read-only work can be parallelized. Mutating agents are serialized behind declared dependencies.
Repository map
AUREN/
├── .ai-harness/ # adaptive harness, policies, runtime and lifecycle
├── portable/ # dependency-light distributable AUREN runtime
├── agency/ # upstream agency assets and provenance
├── skills/ # canonical local agent skills
├── .agents/ # compatibility/agent skill surfaces
├── .claude/ + .claude-plugin/ # Claude skill and plugin packaging
├── docs/ # architecture, lifecycle, research and deployment contracts
├── examples/ # runnable examples and harness scenarios
├── scripts/ # conformance, eval, packaging and validation tooling
├── state/ # engineering state schema
└── tests/ # portable and integration regression coverage
The repository keeps only active architecture, deployment, lifecycle, evaluation, and compatibility documentation. Historical implementation plans are not part of the product package.
Reference documentation
docs/CAPABILITY_MEMORY_OWNERSHIP.md— capability, memory, and retrieval ownership.docs/RIPWIRE_INTEGRATION.md— deterministic repository-intelligence lineage and boundaries.portable/LANGGRAPH_PATTERN_ALIGNMENT.md— state-graph pattern mapping.portable/README.md— portable distribution and machine-scoped lifecycle.docs/DEPLOYMENT.md— deployment and runtime integration.docs/USAGE_AND_PLATFORM_INTEGRATION.md— platform usage and integration.docs/ENGINEERING_WORK_REPORTS.md— work-report and evidence flow.docs/REGRESSION_CANARY.md— regression, shadow, and canary controls.
Typical requests
Bug fixing
Fix the failing login test. Inspect repository instructions and the existing authentication flow first. Identify the root cause with evidence, make the smallest compatible change, add or update regression coverage, verify it, and report what changed and what was verified.
Feature development
Add retry handling to the outbound payment client. Preserve current API behavior, inspect existing retry and timeout patterns, implement the smallest safe change, add regression coverage, verify it, and report open risks.
RCA
Investigate why the nightly import occasionally drops records. Do not modify code. Trace the data flow and return facts, inferences, unknowns, root-cause confidence, and evidence.
Code review
Review this change for correctness, compatibility, security, regression risk, observability, and missing verification. Do not rewrite unrelated code.
Design principle
Use AI for engineering speed; use AUREN for engineering discipline.
Product Architecture
AUREN is organized as six canonical domains: Core (world/self model, reasoning, goals), Engine (planner, StateGraph, agents, resources), Memory (episodic, semantic, engineering, evidence graph), Learning (experimentation, causal attribution, capability invention, curriculum), Arena (independent evaluation, holdouts, transfer, attestation), and Guard (security, authority, verification, canary, rollback).
See the canonical AUREN architecture for ownership and trust boundaries.
GitHub Pages deployment
The public documentation site is served at https://sourabhJainR.github.io/AUREN/.
Keep these four entrypoints during repository cleanup:
site/index.htmlandsite/404.htmlare the canonical GitHub Actions deployment payload.docs/index.htmlanddocs/404.htmlare retained as branch-publishing compatibility entrypoints because the repository previously used themain/docsPages source.
Do not remove either pair unless the GitHub Pages repository setting has been verified to use GitHub Actions and the compatibility contract is intentionally retired. The Pages workflow validates all four files before deployment.
Repository cleanup and rollback governance
Repository cleanup is governed by an evidence gate so that reducing repository size never silently removes AUREN's runtime, CI, release, compatibility, or public presence. The cleanup contract requires dependency inventory, classification, baseline capture, isolated PR review, regression evaluation, an actionable rollback path, and post-merge re-testing.
The protected-artifact manifest is docs/CLEANUP_PROTECTED_ARTIFACTS.yml, and the full procedure is docs/REPOSITORY_CLEANUP_AND_ROLLBACK.md.
Rule: if an artifact's dependency is uncertain, keep it until the dependency is disproven or a validated replacement exists. A green unit-test suite is not sufficient evidence for removing deployment, packaging, release, documentation, or externally referenced artifacts.
来源:GitHub · github.com