Skip to content

Commit d09b9d8

Browse files
committed
Add execution trace recording
1 parent 71d9812 commit d09b9d8

36 files changed

Lines changed: 19994 additions & 17953 deletions

.agent-context/architecture.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ This document is generated from static repository signals. Treat it as a startin
99
- Internal modules: 25
1010

1111
## Important Modules
12-
- `outputs`: outputs contains 21 files and depends on core.
13-
- `test`: test contains 25 files and depends on analyzers, benchmarks, cli, config, core, mcp, outputs, retrievers.
12+
- `outputs`: outputs contains 22 files and depends on core.
13+
- `test`: test contains 26 files and depends on analyzers, benchmarks, cli, config, core, mcp, outputs, retrievers.
1414
- `core`: core contains 17 files and depends on analyzers, config, llm, outputs.
1515
- `retrievers`: retrievers contains 6 files and depends on core, outputs.
1616
- `analyzers`: analyzers contains 6 files and depends on core.

.agent-context/contracts/architecture.contract.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
"imports": [
114114
"core"
115115
],
116-
"summary": "outputs contains 21 files and depends on core."
116+
"summary": "outputs contains 22 files and depends on core."
117117
},
118118
{
119119
"name": "test",
@@ -130,7 +130,7 @@
130130
"outputs",
131131
"retrievers"
132132
],
133-
"summary": "test contains 25 files and depends on analyzers, benchmarks, cli, config, core, mcp, outputs, retrievers."
133+
"summary": "test contains 26 files and depends on analyzers, benchmarks, cli, config, core, mcp, outputs, retrievers."
134134
},
135135
{
136136
"name": "core",

.agent-context/contracts/module-boundaries.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"src/outputs/contract-validator.ts",
3535
"src/outputs/contracts.ts",
3636
"src/outputs/dependency-graph.ts",
37+
"src/outputs/execution-trace.ts",
3738
"src/outputs/impact.ts",
3839
"src/outputs/key-files.ts",
3940
"src/outputs/loop-controller.ts",

.agent-context/contracts/test.contract.json

Lines changed: 34 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"test/cache.test.ts",
1212
"test/config.test.ts",
1313
"test/contract-validator.test.ts",
14+
"test/execution-trace.test.ts",
1415
"test/fixtures.test.ts",
1516
"test/freshness.test.ts",
1617
"test/impact.test.ts",
@@ -91,6 +92,7 @@
9192
"src/cli/task-args.ts": [
9293
"test/task-args.test.ts"
9394
],
95+
"src/llm/provider.ts": [],
9496
"src/config/defaults.ts": [
9597
"test/config.test.ts",
9698
"test/scanner.test.ts",
@@ -113,13 +115,17 @@
113115
"benchmarks/fixtures/monorepo/packages/config/test/loader.test.ts",
114116
"test/fixtures/monorepo/packages/api/src/config.ts"
115117
],
118+
"src/mcp/server.ts": [
119+
"test/mcp.test.ts"
120+
],
116121
"src/core/cache.ts": [
117122
"test/cache.test.ts"
118123
],
119124
"src/core/context-builder.ts": [
120125
"test/agents-md.test.ts",
121126
"test/cache.test.ts",
122127
"test/contract-validator.test.ts",
128+
"test/execution-trace.test.ts",
123129
"test/fixtures.test.ts",
124130
"test/freshness.test.ts",
125131
"test/impact.test.ts",
@@ -138,6 +144,7 @@
138144
],
139145
"src/core/git.ts": [
140146
"test/contract-validator.test.ts",
147+
"test/execution-trace.test.ts",
141148
"test/freshness.test.ts",
142149
"test/impact.test.ts",
143150
"test/loop-controller.test.ts",
@@ -170,30 +177,6 @@
170177
"test/contract-validator.test.ts",
171178
"test/validator.test.ts"
172179
],
173-
"src/llm/provider.ts": [],
174-
"src/mcp/server.ts": [
175-
"test/mcp.test.ts"
176-
],
177-
"src/retrievers/external.ts": [
178-
"test/retrievers.test.ts"
179-
],
180-
"src/retrievers/hybrid.ts": [
181-
"test/retrievers.test.ts"
182-
],
183-
"src/retrievers/index.ts": [
184-
"test/retrievers.test.ts",
185-
"test/fixtures/monorepo/packages/api/src/index.ts",
186-
"test/fixtures/monorepo/packages/web/src/index.ts"
187-
],
188-
"src/retrievers/ripgrep.ts": [
189-
"test/retrievers.test.ts"
190-
],
191-
"src/retrievers/static.ts": [
192-
"test/retrievers.test.ts"
193-
],
194-
"src/retrievers/types.ts": [
195-
"test/retrievers.test.ts"
196-
],
197180
"src/outputs/agents-md.ts": [
198181
"test/agents-md.test.ts"
199182
],
@@ -204,6 +187,9 @@
204187
],
205188
"src/outputs/contracts.ts": [],
206189
"src/outputs/dependency-graph.ts": [],
190+
"src/outputs/execution-trace.ts": [
191+
"test/execution-trace.test.ts"
192+
],
207193
"src/outputs/impact.ts": [
208194
"test/impact.test.ts"
209195
],
@@ -227,6 +213,7 @@
227213
"test/task-harness.test.ts"
228214
],
229215
"src/outputs/task-run.ts": [
216+
"test/execution-trace.test.ts",
230217
"test/task-harness.test.ts"
231218
],
232219
"src/outputs/test-selector.ts": [
@@ -242,6 +229,26 @@
242229
"test/validator.test.ts",
243230
"test/writer.test.ts"
244231
],
232+
"src/retrievers/external.ts": [
233+
"test/retrievers.test.ts"
234+
],
235+
"src/retrievers/hybrid.ts": [
236+
"test/retrievers.test.ts"
237+
],
238+
"src/retrievers/index.ts": [
239+
"test/retrievers.test.ts",
240+
"test/fixtures/monorepo/packages/api/src/index.ts",
241+
"test/fixtures/monorepo/packages/web/src/index.ts"
242+
],
243+
"src/retrievers/ripgrep.ts": [
244+
"test/retrievers.test.ts"
245+
],
246+
"src/retrievers/static.ts": [
247+
"test/retrievers.test.ts"
248+
],
249+
"src/retrievers/types.ts": [
250+
"test/retrievers.test.ts"
251+
],
245252
"benchmarks/fixtures/fastapi-app/app/admin.py": [
246253
"test/fixtures.test.ts",
247254
"test/fixtures/monorepo/package.json",
@@ -718,8 +725,7 @@
718725
"test/fixtures/monorepo/packages/web/src/index.ts",
719726
"test/fixtures/next-app/src/app/api/login/route.ts"
720727
],
721-
"benchmarks/fixtures/monorepo/packages/config/src/loader.ts": [
722-
"test/config.test.ts",
728+
"benchmarks/fixtures/monorepo/packages/shared/src/metrics.ts": [
723729
"test/fixtures.test.ts",
724730
"test/fixtures/monorepo/package.json",
725731
"test/fixtures/monorepo/pnpm-workspace.yaml",
@@ -744,7 +750,8 @@
744750
"test/fixtures/monorepo/packages/web/src/index.ts",
745751
"test/fixtures/next-app/src/app/api/login/route.ts"
746752
],
747-
"benchmarks/fixtures/monorepo/packages/shared/src/metrics.ts": [
753+
"benchmarks/fixtures/monorepo/packages/config/src/loader.ts": [
754+
"test/config.test.ts",
748755
"test/fixtures.test.ts",
749756
"test/fixtures/monorepo/package.json",
750757
"test/fixtures/monorepo/pnpm-workspace.yaml",

.agent-context/dependency-graph.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ graph TD
4747
| cli | benchmarks | 1 |
4848
| cli | config | 1 |
4949
| cli | core | 8 |
50-
| cli | outputs | 10 |
50+
| cli | outputs | 11 |
5151
| cli | retrievers | 1 |
5252
| config | core | 2 |
5353
| core | analyzers | 4 |
@@ -65,8 +65,8 @@ graph TD
6565
| test | benchmarks | 1 |
6666
| test | cli | 1 |
6767
| test | config | 3 |
68-
| test | core | 29 |
68+
| test | core | 31 |
6969
| test | mcp | 1 |
70-
| test | outputs | 14 |
70+
| test | outputs | 16 |
7171
| test | retrievers | 1 |
7272
| test/fixtures/monorepo/packages/web | test/fixtures/monorepo/packages/api | 1 |

0 commit comments

Comments
 (0)