Skip to content

Commit d39c0dd

Browse files
committed
edit
1 parent 84a4e52 commit d39c0dd

4 files changed

Lines changed: 75 additions & 3 deletions

File tree

AI-automation-framework.md

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# AI Automation Framework
2+
3+
## Requirements for AI Automation
4+
5+
For any AI-driven automation to exist, two structural components must be in place: alignment layers that define where automation operates, and pillars that define what conditions must hold at each layer.
6+
7+
---
8+
9+
## The Six Alignment Layers
10+
11+
When you delegate work to AI, any misalignment can only occur at these six layers:
12+
13+
1. **Workspace Alignment** — The environment and context aren't set up correctly
14+
2. **Task Alignment** — The task is not understood well
15+
3. **Action-Space Alignment** — AI doesn't know what action space should be used
16+
4. **Action-Set Alignment** — AI doesn't understand what set of actions is preferable and feasible
17+
5. **Coherence Alignment** — AI doesn't understand how the actions taken disturb existing alignments
18+
6. **Outcome Alignment** — AI doesn't understand how actions taken and expected results are in mismatch
19+
20+
These layers define the dimensions along which automation can be applied. Each layer is independent — automation at one layer does not require automation at all others.
21+
22+
---
23+
24+
## The Four Pillars
25+
26+
> Alignment requires Comparison.
27+
28+
> Comparison requires Measurement.
29+
30+
> Measurement requires Visibility.
31+
32+
> Visibility requires Explicitness.
33+
34+
These four pillars define what we need at each layer to maintain alignment. Applied across all six alignment layers, and combined with iteration, they form the foundation of any automation.
35+
36+
---
37+
38+
## Automation Across Dimensions
39+
40+
Automation does not need to cover all six layers. Most real systems will never be fully automated — real life introduces inputs and outputs that resist full formalization.
41+
42+
A system might automate workspace and task alignment (environment setup, task parsing) while keeping coherence and outcome alignment in human hands. This is normal and expected. The framework does not demand full automation — it defines where automation is possible and where human judgment remains necessary.
43+
44+
Each layer can be automated independently, to the degree that the four pillars can be satisfied at that layer. Where a pillar breaks down, automation stops and human input takes over.
45+
46+
---
47+
48+
## The Feedback Control Loop
49+
50+
The four pillars combined with iteration are a feedback control loop:
51+
52+
1. Make the desired state **explicit** (setpoint)
53+
2. Make the current state **visible** (sensor)
54+
3. **Measure** it (signal)
55+
4. **Compare** current vs desired (error detection)
56+
5. Act on the difference, then **iterate** (feedback loop)
57+
58+
This is the universal structure of every automated system — from a thermostat to a CI/CD pipeline to an autonomous agent.
59+
60+
The six layers define **where** you apply this loop. Things that can't be automated are things where one of the pillars breaks down:
61+
62+
- Can't make it explicit → can't automate (tacit knowledge, intuition)
63+
- Can't make it visible → can't automate (hidden state)
64+
- Can't measure it → can't automate (subjective quality)
65+
- Can't compare it → can't automate (no success criteria)
66+
- Can't iterate → can't automate (irreversible one-shot actions)
67+
68+
The pillars don't just describe what alignment needs — they describe the boundary conditions of automation. If you want to automate something that currently can't be, the pillars tell you exactly which requirement is failing and where to focus.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33

44
Markdown Book:
55

6-
https://karaposu.github.io/vibe-driven-development/
6+
https://karaposu.github.io/alignstack/

commands/critic-d.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ $ARGUMENTS
88

99
## Instructions
1010

11-
### Step 0: Resolve Which Plan to Critique
11+
### Step 0: Resolve Which Plan to Critique (if it is not stated clearly and explicitly)
1212

13+
unless it is not clearly stated do this :
1314
Use your understanding of the already developed context or given Additional Input/Instructions (can be about codebase workspace, or past conversation regarding this topic etc) to interpret what is the relevant step by step plan path,
1415

1516
If multiple plans are referred in past recent messages (check last 4,5 messages) — present them as a numbered list and ask the user to confirm which one to critique. Do NOT proceed until the user confirms.
@@ -19,6 +20,8 @@ If multiple plans are referred in past recent messages (check last 4,5 messages)
1920

2021
**Only after the user confirms**, continue to Phase 1.
2122

23+
But if plan is stated claerly you can skip this step.
24+
2225
---
2326

2427
### Phase 1: Generate the Dynamic Critic Prompt
@@ -80,6 +83,7 @@ For each risk found, document:
8083

8184
Desc, Risk Desc, Severity (| Low / Medium / High |), Impact, ELI5 desc, Affected areas, Mitigation** (Medium/High only) and Category (| Breaking change / Import error / Circular import / Package discovery / Stale cache / Missing file / Phase ordering |)
8285

86+
Dont use tabular format, it should be sections with subsections and detailed enough.
8387
"""
8488

8589
- Save the generated prompt** as `dynamic_critic_prompt.md` in the same directory as the `step_by_step_plan.md`.

src/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ This book doesn't introduce new concepts. Instead, it codifies what many develop
3636
3737
> Visibility requires Explicitness.
3838
39-
These four pillars define what we need at each layer to maintain alignment. Applied across all six alignment layers, they form the foundation of AlignStack
39+
These four pillars define what we need at each layer to maintain alignment. Applied across all six alignment layers, and combined with iteration, they form the foundation of AlignStack
4040

4141

4242
The rest of this book explains how to implement them in your workflows.

0 commit comments

Comments
 (0)