惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Vercel News
Vercel News
博客园 - 司徒正美
C
Check Point Blog
G
Google Developers Blog
The GitHub Blog
The GitHub Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
有赞技术团队
有赞技术团队
P
Proofpoint News Feed
IT之家
IT之家
B
Blog
博客园_首页
量子位
MongoDB | Blog
MongoDB | Blog
博客园 - Franky
J
Java Code Geeks
H
Help Net Security
A
About on SuperTechFans
Apple Machine Learning Research
Apple Machine Learning Research
Jina AI
Jina AI
D
DataBreaches.Net
Y
Y Combinator Blog
大猫的无限游戏
大猫的无限游戏
云风的 BLOG
云风的 BLOG
Google DeepMind News
Google DeepMind News

Hacker News

Probed — Talk to Your People HN Work GitHub - Northwood-Systems/foreman: Self-hosted LLM gateway. Cost effective, deterministic, and fast. Secure and private by default. A Visualization Language for the AI Era NoCrap — Neuroscience-Based Recovery Pods GitHub - weirdGuy/kastor: Declarative language and toolchain for AI agents: define agents, tools and prompts in HCL, then compile to frameworks or manage them on hosted platforms with plan/apply semantics. Abralo - Run multiple Claude Code agents in one window GitHub - mehranzand/repofleet: RepoFleet is an issue-centered CLI tool for managing Git workflows across multiple repositories. GitHub - exmergo/dex: Dex is the agent-native analytics engineering toolkit. Point it at your warehouse and your dbt project. It learns the landscape, authors your transformations, and tells you exactly what to fix when the schema drifts. Built for analytics engineers and data engineers who want more out of their coding agent. Pug — Open Source Product Analytics GitHub - instavm/tarit: A hypervisor and sandbox cloud for self-hosted AI agents and RL Chiptune Radio — Aleph Void, LLC Free Mermaid Live Editor & Diagram Maker GitHub - Salnika/dejavu: Stop showing coding agents the same command output twice. GitHub - hirasso/html-obfuscator: Obfuscate emails, phone numbers, and other sensitive data in PHP. Invisible to humans, hidden from bots until they interact. Davit — a native macOS UI for Apple containers Fenzo AI - The perfect course, every time. HTML Drive — Edit and Publish HTML from Google Drive GitHub - rowboatlabs/rowboat: Open-source AI coworker, with memory ZeroGate | Automated Cluster Scaling A tiny scale-free kernel language — Joa Ebert Yamanote.fun PostgreSQL on AWS: Size & Benchmark EC2 Instances GitHub - zqiren/Orbital: the agent that never starts from zero GitHub - Rodiun/frugon: Free, local, open-source LLM cost analyzer — see where your LLM bill leaks, on your machine. Artificiety — A Fantasy World for AI Agents Ex Situ FlexInference: Drop your AI costs today WhimFiles - Find Any File in Seconds GitHub - josephsenior/Grinta-Coding-Agent: Local-first autonomous coding agent that plans, executes, validates, and finishes software tasks end-to-end.
GitHub - arman-jalili/guardian-framework: Architecture En...
arman-w-jali · 2026-07-07 · via Hacker News

Guardian is an SDLC orchestrator for AI-assisted development. It takes you from a business intent — "I need to build audit logging for regulated financial transactions" — to an enforcement pipeline that blocks merges if the implementation violates the architecture.

The entire lifecycle lives in a single .pi/ directory. Every artifact (modules, ADRs, roadmap, issues, CI scripts, agent skills) is generated from that directory. Nothing is handwritten twice. Nothing drifts.


The Full SDLC

You have a business intent
    │
    ▼
Domain Exploration     ←─ you and the agent explore, iterate, refine
    │
    ▼
Architecture Modules   ←─ you review, adjust, approve
    │
    ▼
Enrich Module Docs     ←─ agent fills DDD content from exploration
    │
    ▼
ADRs, Diagrams, Specs  ←─ you challenge decisions, finalize
    │
    ▼
Roadmap Plan           ←─ you adopt phases, set priorities
    │
    ▼
Epic Execution         ─── agents implement, you review PRs
    │
    ▼
Enforcement Pipeline   ─── CI blocks merges on violation

Walkthrough: From Intent to Enforcement

1. You Have a Business Intent

"I need to build a system that collects audit records from CI/CD pipelines, verifies their integrity, stores them, and lets customers query them."

2. Explore the Domain (Human + Agent, Iterative)

/domain --explore "Audit logging for regulated financial transactions"

Guardian analyzes your intent and produces a structured domain model. But this isn't a one-shot output — it's the start of a conversation. You review, challenge, and refine:

  • "These aren't the right bounded contexts. Merge Ingestion and Query into one."
  • "Add a Compliance Engine context. Regulated finance needs it."
  • "The ubiquitous language is wrong — we call them 'evidence records', not 'audit records'."

You go back and forth until the model reflects your actual business. Only then do you proceed.

3. Scaffold Architecture Modules

/domain --architect-scaffold <session-id>

Guardian generates one architecture module per bounded context, with architecture layers, aggregates, repository contracts, and domain events:

# Audit Ingestion

## Architecture
| Layer | Responsibility |
|-------|--------------|
| **Domain** | Aggregates, entities, repository interfaces | src/audit-ingestion/domain/ |
| **Application** | Use cases, DTOs | src/audit-ingestion/application/ |

## Aggregates
### AuditRecord
**Repository Interface:**
```rust
pub trait AuditRecordRepository: Send + Sync {
    async fn find_by_id(&self, id: &AuditRecordId) -> Result<Option<AuditRecord>, DomainError>;
    async fn save(&self, entity: &AuditRecord) -> Result<(), DomainError>;
    async fn delete(&self, id: &AuditRecordId) -> Result<(), DomainError>;
}

Domain Events

Event Description Trigger
AuditRecordIngested ... ...

### 3.5 Enrich with Full DDD Content

/domain --enrich


The agent reads the domain exploration and enhances each module stub with:
- Mermaid data flow diagrams
- Real Rust struct stubs
- API endpoint tables
- Ubiquitous Language per context
- Cross-context dependencies
- Security considerations

This produces production-quality architecture docs (5–20 KB each) that an implementer can build from directly.

## Idempotency Handler
status: planned
description: Deduplicates records using Idempotency-Key header.
depends: HMAC Signature Verifier

4. Review Architecture (Human in the Loop)

Now you review the generated architecture. This is where the real design happens:

  • "The Idempotency Handler shouldn't depend on Signature Verifier — they're parallel."
  • "We need an ADR explaining why we chose HMAC-SHA256 over ECDSA."
  • "Add a system-overview diagram showing how records flow from ingestion to query."

You tell the agent to add ADRs, update module docs, generate diagrams. You challenge decisions until the architecture is solid.

Every ADR captures a decision:

ADR-004: Use HMAC-SHA256 with JCS canonicalization
ADR-005: Idempotency via Idempotency-Key header (not dedup table)
ADR-006: Cursor-based pagination for audit listing

5. Adopt the Roadmap

When the architecture is finalized, you lock it in with a roadmap. Each phase has dependencies, migrations, and acceptance criteria.

/architect --roadmap
/architect --adopt-roadmap

Phase 0: Foundation (5 modules, Days 1–5) Phase 1: Core Ingestion Pipeline (3 modules, Days 6–12, depends on Phase 0)

6. Execute via Phases

/architect --phase "Phase 0"

Guardian generates one epic per module, one issue per component. Each issue carries the component's architecture context, language-specific DDD patterns, and acceptance criteria.

The agent implements. You review PRs. Guardian auto-advances through the pipeline:

implement → validate → create-mr → merge

7. Enforcement Closes the Loop

Every change is validated against the architecture:

Script What it enforces
check_ddd_structure.sh Every module has domain/ application/ infrastructure/ interfaces/ — no contracts/ wrapper
check_architecture_conformance.sh Domain doesn't import infrastructure. Per-module 4-layer structure.
validate-canonical.sh Every code file references its architecture source

If someone (or an AI) adds a dependency from the domain layer to infrastructure, check_ddd_structure.sh catches it. CI fails. The merge is blocked.


Quick Start

# 1. Scaffold
cd your-project
npx guardian-framework init

# 2. Explore (iterative — review, refine, repeat)
/domain --explore "your business intent"

# 3. Generate architecture from exploration
/domain --architect-scaffold <session-id>

# 4. Enrich module docs with full DDD content
/domain --enrich <session-id>

# 5. Review and refine (ADRs, diagrams, modules — human-in-the-loop)

# 6. Adopt the roadmap
/architect --roadmap
/architect --adopt-roadmap

# 6. Execute
/architect --phase "Phase 0"

What This Means

Architecture drift becomes a compile-time error.

Not a documentation comment. Not a code review note that gets lost. A CI failure that blocks the merge until fixed.

Guardian was proven on Rigorix: 146,312 lines of Rust, 30 modules, 580 commits, built by a single developer over 11 active days. The architecture defined in .pi/ was continuously validated against implementation. When drift happened, it was caught before reaching main.


Links

User Manual docs/USER_MANUAL.md — every workflow, command, and extension
Proven on Rigorix — 146K LOC Rust, 30 modules
Source github.com/arman-jalili/guardian-framework
License MIT