Skip to content

Commit c078814

Browse files
committed
Add context freshness and drift checks
1 parent ac7aa03 commit c078814

40 files changed

Lines changed: 11873 additions & 8771 deletions

.agent-context/AGENTS.generated.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ L0 operating rules. Keep this file loaded by default; load deeper context only w
2222
- Entrypoint: `src/mcp/server.ts`
2323
- Anchor: `src/outputs/task-harness.ts` - 5 exports, 67 symbols
2424
- Anchor: `src/core/token-estimator.ts` - 7 exports, 15 symbols
25-
- Anchor: `src/core/context-builder.ts` - 2 exports, 15 symbols
25+
- Anchor: `src/core/freshness.ts` - 9 exports, 57 symbols
2626

2727
## Commands
2828
- Run: `npm run dev`

.agent-context/architecture.md

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

1111
## Important Modules
1212
- `outputs`: outputs contains 20 files and depends on core.
13-
- `core`: core contains 16 files and depends on analyzers, config, llm.
14-
- `test`: test contains 23 files and depends on analyzers, benchmarks, cli, config, core, mcp, outputs, retrievers.
13+
- `core`: core contains 17 files and depends on analyzers, config, llm, outputs.
14+
- `test`: test contains 24 files and depends on analyzers, benchmarks, cli, config, core, mcp, outputs, retrievers.
1515
- `retrievers`: retrievers contains 6 files and depends on core, outputs.
1616
- `analyzers`: analyzers contains 6 files and depends on core.
1717
- `benchmarks/fixtures/small-ts-app`: benchmarks/fixtures/small-ts-app contains 9 files.

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,10 @@
123123
"imports": [
124124
"analyzers",
125125
"config",
126-
"llm"
126+
"llm",
127+
"outputs"
127128
],
128-
"summary": "core contains 16 files and depends on analyzers, config, llm."
129+
"summary": "core contains 17 files and depends on analyzers, config, llm, outputs."
129130
},
130131
{
131132
"name": "test",
@@ -142,7 +143,7 @@
142143
"outputs",
143144
"retrievers"
144145
],
145-
"summary": "test contains 23 files and depends on analyzers, benchmarks, cli, config, core, mcp, outputs, retrievers."
146+
"summary": "test contains 24 files and depends on analyzers, benchmarks, cli, config, core, mcp, outputs, retrievers."
146147
},
147148
{
148149
"name": "retrievers",

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@
6060
"src/analyzers/**",
6161
"src/config/**",
6262
"src/core/**",
63-
"src/llm/**"
63+
"src/llm/**",
64+
"src/outputs/**"
6465
],
6566
"forbiddenImports": [
6667
"**/*.generated.*",
@@ -75,12 +76,14 @@
7576
"observedImports": [
7677
"analyzers",
7778
"config",
78-
"llm"
79+
"llm",
80+
"outputs"
7981
],
8082
"publicFiles": [
8183
"src/core/cache.ts",
8284
"src/core/context-builder.ts",
8385
"src/core/file-classifier.ts",
86+
"src/core/freshness.ts",
8487
"src/core/git.ts",
8588
"src/core/graph.ts",
8689
"src/core/indexer.ts",

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

Lines changed: 80 additions & 73 deletions
Large diffs are not rendered by default.

.agent-context/dependency-graph.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ graph TD
1717
core["core"] --> analyzers["analyzers"]
1818
core["core"] --> config["config"]
1919
core["core"] --> llm["llm"]
20+
core["core"] --> outputs["outputs"]
2021
llm["llm"] --> core["core"]
2122
mcp["mcp"] --> core["core"]
2223
mcp["mcp"] --> outputs["outputs"]
@@ -45,26 +46,27 @@ graph TD
4546
| benchmarks/fixtures/monorepo/packages/web | benchmarks/fixtures/monorepo/packages/config | 1 |
4647
| cli | benchmarks | 1 |
4748
| cli | config | 1 |
48-
| cli | core | 7 |
49+
| cli | core | 8 |
4950
| cli | outputs | 9 |
5051
| cli | retrievers | 1 |
5152
| config | core | 2 |
5253
| core | analyzers | 4 |
5354
| core | config | 1 |
5455
| core | llm | 1 |
56+
| core | outputs | 3 |
5557
| llm | core | 1 |
5658
| mcp | core | 1 |
5759
| mcp | outputs | 5 |
5860
| mcp | retrievers | 2 |
59-
| outputs | core | 29 |
61+
| outputs | core | 30 |
6062
| retrievers | core | 3 |
6163
| retrievers | outputs | 2 |
6264
| test | analyzers | 3 |
6365
| test | benchmarks | 1 |
6466
| test | cli | 1 |
6567
| test | config | 3 |
66-
| test | core | 24 |
68+
| test | core | 27 |
6769
| test | mcp | 1 |
68-
| test | outputs | 11 |
70+
| test | outputs | 12 |
6971
| test | retrievers | 1 |
7072
| test/fixtures/monorepo/packages/web | test/fixtures/monorepo/packages/api | 1 |

0 commit comments

Comments
 (0)