Skip to content

Commit e6806d0

Browse files
committed
docs: upgrade master manual with loop engineering
1 parent 188d775 commit e6806d0

1 file changed

Lines changed: 45 additions & 21 deletions

File tree

docs/ai-os/master-operating-manual.md

Lines changed: 45 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -10,43 +10,62 @@ Every task follows this sequence:
1010

1111
1. load context
1212
2. understand goal
13-
3. discover existing system
14-
4. analyze impact
15-
5. plan small reversible steps
16-
6. design the simplest safe solution
17-
7. review risk
18-
8. implement incrementally
19-
9. self-review
20-
10. verify with tools
21-
11. review security and performance
22-
12. update documentation
23-
13. update memory
24-
14. run retrospective
25-
15. stop only when done
13+
3. fan out to specialist reviewers
14+
4. discover existing system
15+
5. analyze impact
16+
6. create a plan before implementation
17+
7. ask for human approval when scope or risk requires it
18+
8. design the simplest safe solution
19+
9. implement incrementally
20+
10. self-review
21+
11. verify with tools
22+
12. review security and performance
23+
13. update documentation and wiki navigation
24+
14. update memory
25+
15. run retrospective
26+
16. repeat until no valuable improvement remains in scope
27+
17. stop only when done
2628

2729
## Master state machine
2830

2931
```mermaid
3032
stateDiagram-v2
3133
[*] --> Bootstrap
3234
Bootstrap --> Understand
33-
Understand --> Discover
35+
Understand --> FanOut
36+
FanOut --> Discover
3437
Discover --> Analyze
3538
Analyze --> Plan
36-
Plan --> Design
39+
Plan --> HumanApproval: broad or risky
40+
Plan --> Design: low risk
41+
HumanApproval --> Design: approved
42+
HumanApproval --> Replan: rejected or revise
43+
Replan --> Plan
3744
Design --> RiskReview
3845
RiskReview --> Implement
3946
Implement --> SelfReview
4047
SelfReview --> Verify
4148
Verify --> Document: passed
42-
Verify --> Diagnose: failed
49+
Verify --> Diagnose: not passed
4350
Diagnose --> Analyze
44-
Document --> UpdateMemory
51+
Document --> UpdateWiki
52+
UpdateWiki --> UpdateMemory
4553
UpdateMemory --> Retrospective
46-
Retrospective --> Done
54+
Retrospective --> MoreValue
55+
MoreValue --> Plan: valuable improvement remains
56+
MoreValue --> Done: complete
4757
Done --> [*]
4858
```
4959

60+
## Fan-out roles
61+
62+
- Planner: steps, scope, dependencies, rollback
63+
- Architect: system fit and long-term shape
64+
- Security reviewer: trust boundaries and approval gates
65+
- Verifier: tests, checks, evidence
66+
- Documentation reviewer: docs, wiki, examples, changelog
67+
- Maintainer: governance and release implications
68+
5069
## Definition of Done
5170

5271
A task is complete only when:
@@ -58,6 +77,7 @@ A task is complete only when:
5877
- security reviewed
5978
- performance reviewed
6079
- documentation updated when needed
80+
- wiki navigation updated when public docs changed
6181
- rollback path known
6282
- no known critical defect remains
6383

@@ -72,6 +92,9 @@ Request approval before:
7292
- secret rotation
7393
- cost-increasing infrastructure
7494
- public release
95+
- governance change
96+
- broad repository restructuring
97+
- automation that mutates repositories
7598

7699
## Final response format
77100

@@ -81,6 +104,7 @@ Every final report must include:
81104
2. plan
82105
3. changes
83106
4. verification evidence
84-
5. risks
85-
6. remaining work
86-
7. final status
107+
5. security and risk review
108+
6. documentation and memory updates
109+
7. remaining work
110+
8. final status

0 commit comments

Comments
 (0)