Skip to content

Commit 6727293

Browse files
committed
feat: new demo SVG — npm install + doctor + enforcement halt flow
1 parent e5d9a9b commit 6727293

4 files changed

Lines changed: 112 additions & 149 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Hard execution and budget limits for autonomous agents — enforced locally.
1616

1717
## Live Enforcement Demo
1818

19-
![AuthorityLayer enforcement demo](https://raw.githubusercontent.com/032383justin/authority-layer/main/demo.svg)
19+
![AuthorityLayer enforcement demo](https://raw.githubusercontent.com/032383justin/authority-layer/main/docs/assets/enforcement-demo.svg)
2020

2121
---
2222

demo.cast

Lines changed: 109 additions & 147 deletions
Original file line numberDiff line numberDiff line change
@@ -1,148 +1,110 @@
1-
{"version": 2, "width": 82, "height": 28, "timestamp": 1741049884, "title": "AuthorityLayer demo", "env": {"SHELL": "/bin/bash", "TERM": "xterm-256color"}}
1+
{"version": 2, "width": 82, "height": 26, "timestamp": 1741049884, "title": "AuthorityLayer demo", "env": {"SHELL": "/bin/bash", "TERM": "xterm-256color"}}
22
[0.5, "o", "\u001b[1;32m$\u001b[0m "]
3-
[1.0, "o", "g"]
4-
[1.08, "o", "i"]
5-
[1.16, "o", "t"]
6-
[1.22, "o", " "]
7-
[1.28, "o", "c"]
8-
[1.35, "o", "l"]
9-
[1.42, "o", "o"]
10-
[1.49, "o", "n"]
11-
[1.56, "o", "e"]
12-
[1.62, "o", " "]
13-
[1.68, "o", "h"]
14-
[1.75, "o", "t"]
15-
[1.82, "o", "t"]
16-
[1.89, "o", "p"]
17-
[1.95, "o", "s"]
18-
[2.01, "o", ":"]
19-
[2.07, "o", "/"]
20-
[2.13, "o", "/"]
21-
[2.19, "o", "g"]
22-
[2.25, "o", "i"]
23-
[2.31, "o", "t"]
24-
[2.37, "o", "h"]
25-
[2.43, "o", "u"]
26-
[2.49, "o", "b"]
27-
[2.55, "o", "."]
28-
[2.61, "o", "c"]
29-
[2.67, "o", "o"]
30-
[2.73, "o", "m"]
31-
[2.79, "o", "/"]
32-
[2.85, "o", "0"]
33-
[2.91, "o", "3"]
34-
[2.97, "o", "2"]
35-
[3.03, "o", "3"]
36-
[3.09, "o", "8"]
37-
[3.15, "o", "3"]
38-
[3.21, "o", "j"]
39-
[3.27, "o", "u"]
40-
[3.33, "o", "s"]
41-
[3.39, "o", "t"]
42-
[3.45, "o", "i"]
43-
[3.51, "o", "n"]
44-
[3.57, "o", "/"]
45-
[3.63, "o", "a"]
46-
[3.69, "o", "u"]
47-
[3.75, "o", "t"]
48-
[3.81, "o", "h"]
49-
[3.87, "o", "o"]
50-
[3.93, "o", "r"]
51-
[3.99, "o", "i"]
52-
[4.05, "o", "t"]
53-
[4.11, "o", "y"]
54-
[4.17, "o", "-"]
55-
[4.23, "o", "l"]
56-
[4.29, "o", "a"]
57-
[4.35, "o", "y"]
58-
[4.41, "o", "e"]
59-
[4.47, "o", "r"]
60-
[4.7, "o", "\r\n"]
61-
[4.8, "o", "Cloning into 'authority-layer'...\r\n"]
62-
[5.2, "o", "remote: Enumerating objects: 32, done.\r\n"]
63-
[5.5, "o", "remote: Counting objects: 100% (32/32), done.\r\n"]
64-
[5.8, "o", "remote: Compressing objects: 100% (22/22), done.\r\n"]
65-
[6.1, "o", "Receiving objects: 100% (32/32), 14.2 KiB | 4.7 MiB/s, done.\r\n"]
66-
[6.4, "o", "\u001b[1;32m$\u001b[0m "]
67-
[6.9, "o", "c"]
68-
[6.97, "o", "d"]
69-
[7.04, "o", " "]
70-
[7.10, "o", "a"]
71-
[7.17, "o", "u"]
72-
[7.24, "o", "t"]
73-
[7.31, "o", "h"]
74-
[7.38, "o", "o"]
75-
[7.45, "o", "r"]
76-
[7.52, "o", "i"]
77-
[7.59, "o", "t"]
78-
[7.66, "o", "y"]
79-
[7.73, "o", "-"]
80-
[7.80, "o", "l"]
81-
[7.87, "o", "a"]
82-
[7.94, "o", "y"]
83-
[8.01, "o", "e"]
84-
[8.08, "o", "r"]
85-
[8.3, "o", "\r\n"]
86-
[8.4, "o", "\u001b[1;32m$\u001b[0m "]
87-
[8.9, "o", "n"]
88-
[8.97, "o", "p"]
89-
[9.04, "o", "m"]
90-
[9.11, "o", " "]
91-
[9.18, "o", "i"]
92-
[9.25, "o", "n"]
93-
[9.32, "o", "s"]
94-
[9.39, "o", "t"]
95-
[9.46, "o", "a"]
96-
[9.53, "o", "l"]
97-
[9.60, "o", "l"]
98-
[9.8, "o", "\r\n"]
99-
[10.0, "o", "\r\nadded 4 packages in 3s\r\n"]
100-
[10.5, "o", "\u001b[1;32m$\u001b[0m "]
101-
[11.0, "o", "n"]
102-
[11.07, "o", "p"]
103-
[11.14, "o", "m"]
104-
[11.21, "o", " "]
105-
[11.28, "o", "r"]
106-
[11.35, "o", "u"]
107-
[11.42, "o", "n"]
108-
[11.49, "o", " "]
109-
[11.56, "o", "e"]
110-
[11.63, "o", "x"]
111-
[11.70, "o", "a"]
112-
[11.77, "o", "m"]
113-
[11.84, "o", "p"]
114-
[11.91, "o", "l"]
115-
[11.98, "o", "e"]
116-
[12.2, "o", "\r\n"]
117-
[12.5, "o", "\r\n> example\r\n> npm run -w @authority-layer/core build && node examples/run.js\r\n"]
118-
[12.8, "o", "\r\n> @authority-layer/core@0.1.0 build\r\n> tsc -p tsconfig.json\r\n"]
119-
[13.4, "o", "\r\n\u001b[1m╔══════════════════════════════════════╗\u001b[0m\r\n"]
120-
[13.5, "o", "\u001b[1m║ AuthorityLayer — live demo ║\u001b[0m\r\n"]
121-
[13.6, "o", "\u001b[1m╚══════════════════════════════════════╝\u001b[0m\r\n"]
122-
[13.7, "o", "\r\nConfig: $0.05 budget cap, 10 calls/run max\r\n"]
123-
[14.0, "o", "\r\n [call 1] Response to: \"Question 1\" spend: $0.01\r\n"]
124-
[14.4, "o", " [call 2] Response to: \"Question 2\" spend: $0.01\r\n"]
125-
[14.8, "o", " [call 3] Response to: \"Question 3\" spend: $0.01\r\n"]
126-
[15.2, "o", " [call 4] Response to: \"Question 4\" spend: $0.01\r\n"]
127-
[15.6, "o", " [call 5] Response to: \"Question 5\" spend: $0.01\r\n"]
128-
[16.0, "o", "\r\n [call 6] Reporting $0.02 spend \u2014 this will exceed the cap...\r\n"]
129-
[16.6, "o", "\r\n\u001b[1;31m\u26d4 Execution halted\u001b[0m\r\n"]
130-
[17.0, "o", "\r\n\u001b[1;33m{\u001b[0m\r\n"]
131-
[17.1, "o", "\u001b[1;33m \"status\": \"halted\",\u001b[0m\r\n"]
132-
[17.2, "o", "\u001b[1;33m \"reason\": \"budget_exceeded\",\u001b[0m\r\n"]
133-
[17.3, "o", "\u001b[1;33m \"limit\": 0.05,\u001b[0m\r\n"]
134-
[17.4, "o", "\u001b[1;33m \"spent\": 0.07,\u001b[0m\r\n"]
135-
[17.5, "o", "\u001b[1;33m \"event_id\": \"evt_53ab5487b37cd9c0\"\u001b[0m\r\n"]
136-
[17.6, "o", "\u001b[1;33m}\u001b[0m\r\n"]
137-
[18.0, "o", "\r\n\u2500\u2500 Event chain \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\r\n"]
138-
[18.2, "o", " run.start evt_7aa16f7c7f66ff88\r\n"]
139-
[18.35, "o", " tool.call evt_43238d9e68997b04\r\n"]
140-
[18.5, "o", " tool.call evt_861b31c10f830e31\r\n"]
141-
[18.65, "o", " tool.call evt_20b8edc908753ddd\r\n"]
142-
[18.8, "o", " tool.call evt_8785446c4b3dd394\r\n"]
143-
[18.95, "o", " tool.call evt_e0685f7884bfca27\r\n"]
144-
[19.1, "o", " enforcement.halt evt_53ab5487b37cd9c0\r\n"]
145-
[19.5, "o", "\r\nChain integrity : \u001b[1;32m\u2705 verified\u001b[0m\r\n"]
146-
[19.8, "o", "Total events : 7\r\n"]
147-
[20.2, "o", "\u001b[1;32m$\u001b[0m "]
148-
[22.0, "o", ""]
3+
[1.0, "o", "n"]
4+
[1.08, "o", "p"]
5+
[1.16, "o", "m"]
6+
[1.24, "o", " "]
7+
[1.32, "o", "i"]
8+
[1.40, "o", "n"]
9+
[1.48, "o", "s"]
10+
[1.56, "o", "t"]
11+
[1.64, "o", "a"]
12+
[1.72, "o", "l"]
13+
[1.80, "o", "l"]
14+
[1.88, "o", " "]
15+
[1.96, "o", "a"]
16+
[2.04, "o", "u"]
17+
[2.12, "o", "t"]
18+
[2.20, "o", "h"]
19+
[2.28, "o", "o"]
20+
[2.36, "o", "r"]
21+
[2.44, "o", "i"]
22+
[2.52, "o", "t"]
23+
[2.60, "o", "y"]
24+
[2.68, "o", "-"]
25+
[2.76, "o", "l"]
26+
[2.84, "o", "a"]
27+
[2.92, "o", "y"]
28+
[3.00, "o", "e"]
29+
[3.08, "o", "r"]
30+
[3.3, "o", "\r\n"]
31+
[3.6, "o", "\r\nadded 1 package in 1s\r\n"]
32+
[4.0, "o", "\u001b[1;32m$\u001b[0m "]
33+
[4.5, "o", "n"]
34+
[4.58, "o", "p"]
35+
[4.66, "o", "x"]
36+
[4.74, "o", " "]
37+
[4.82, "o", "a"]
38+
[4.90, "o", "u"]
39+
[4.98, "o", "t"]
40+
[5.06, "o", "h"]
41+
[5.14, "o", "o"]
42+
[5.22, "o", "r"]
43+
[5.30, "o", "i"]
44+
[5.38, "o", "t"]
45+
[5.46, "o", "y"]
46+
[5.54, "o", "-"]
47+
[5.62, "o", "l"]
48+
[5.70, "o", "a"]
49+
[5.78, "o", "y"]
50+
[5.86, "o", "e"]
51+
[5.94, "o", "r"]
52+
[6.02, "o", " "]
53+
[6.10, "o", "d"]
54+
[6.18, "o", "o"]
55+
[6.26, "o", "c"]
56+
[6.34, "o", "t"]
57+
[6.42, "o", "o"]
58+
[6.50, "o", "r"]
59+
[6.7, "o", "\r\n"]
60+
[7.0, "o", "\r\nAuthorityLayer Doctor authority-layer@0.1.1\r\n\r\n"]
61+
[7.3, "o", " \u001b[1;32m✔\u001b[0m Node.js version >= 18 pass\r\n"]
62+
[7.6, "o", " \u001b[1;32m✔\u001b[0m crypto module (sha256) pass\r\n"]
63+
[7.9, "o", " \u001b[1;32m✔\u001b[0m AUTHORITY_LAYER_DISABLE not set pass\r\n"]
64+
[8.2, "o", " \u001b[1;32m✔\u001b[0m core module loads offline pass\r\n"]
65+
[8.5, "o", " \u001b[1;32m✔\u001b[0m AuthorityLayer instantiates pass\r\n"]
66+
[8.9, "o", "\r\nAll checks passed. AuthorityLayer is ready.\r\n"]
67+
[9.4, "o", "\u001b[1;32m$\u001b[0m "]
68+
[9.9, "o", "n"]
69+
[9.98, "o", "p"]
70+
[10.06, "o", "m"]
71+
[10.14, "o", " "]
72+
[10.22, "o", "r"]
73+
[10.30, "o", "u"]
74+
[10.38, "o", "n"]
75+
[10.46, "o", " "]
76+
[10.54, "o", "e"]
77+
[10.62, "o", "x"]
78+
[10.70, "o", "a"]
79+
[10.78, "o", "m"]
80+
[10.86, "o", "p"]
81+
[10.94, "o", "l"]
82+
[11.02, "o", "e"]
83+
[11.2, "o", "\r\n"]
84+
[11.5, "o", "\r\nConfig: $0.05 budget cap, 5 calls/run max\r\n"]
85+
[11.9, "o", "\r\n [Tool 1] LLM: response to \"What is 2 + 2?\" spend: $0.01\r\n"]
86+
[12.3, "o", " [Tool 2] LLM: response to \"Search results?\" spend: $0.01\r\n"]
87+
[12.7, "o", " [Tool 3] LLM: response to \"Summarize results\" spend: $0.01\r\n"]
88+
[13.1, "o", " [Tool 4] LLM: response to \"Follow-up questions?\" spend: $0.01\r\n"]
89+
[13.5, "o", " [Tool 5] LLM: response to \"Final answer\" spend: $0.01\r\n"]
90+
[13.9, "o", "\r\n Reporting $0.02 spend \u2014 this will exceed the $0.05 cap...\r\n"]
91+
[14.5, "o", "\r\n\u001b[1;31m\u26d4 Execution halted\u001b[0m\r\n\r\n"]
92+
[14.8, "o", "\u001b[1;33m{\u001b[0m\r\n"]
93+
[14.9, "o", "\u001b[1;33m \"status\": \"halted\",\u001b[0m\r\n"]
94+
[15.0, "o", "\u001b[1;33m \"reason\": \"budget_exceeded\",\u001b[0m\r\n"]
95+
[15.1, "o", "\u001b[1;33m \"limit\": 0.05,\u001b[0m\r\n"]
96+
[15.2, "o", "\u001b[1;33m \"spent\": 0.07,\u001b[0m\r\n"]
97+
[15.3, "o", "\u001b[1;33m \"event_id\": \"evt_53ab5487b37cd9c0\"\u001b[0m\r\n"]
98+
[15.4, "o", "\u001b[1;33m}\u001b[0m\r\n"]
99+
[15.8, "o", "\r\n\u2500\u2500 Event chain \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\r\n"]
100+
[16.0, "o", " run.start evt_7aa16f7c7f66ff88\r\n"]
101+
[16.15, "o", " tool.call evt_43238d9e68997b04\r\n"]
102+
[16.30, "o", " tool.call evt_861b31c10f830e31\r\n"]
103+
[16.45, "o", " tool.call evt_20b8edc908753ddd\r\n"]
104+
[16.60, "o", " tool.call evt_8785446c4b3dd394\r\n"]
105+
[16.75, "o", " tool.call evt_e0685f7884bfca27\r\n"]
106+
[16.90, "o", " enforcement.halt evt_53ab5487b37cd9c0\r\n"]
107+
[17.3, "o", "\r\nChain integrity : \u001b[1;32m\u2705 verified\u001b[0m\r\n"]
108+
[17.6, "o", "Total events : 7\r\n"]
109+
[18.0, "o", "\u001b[1;32m$\u001b[0m "]
110+
[20.0, "o", ""]

demo.svg

Lines changed: 1 addition & 1 deletion
Loading

docs/assets/enforcement-demo.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)