You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge origin/main at c154c71 and regenerate workflows from the merged compiler and sources.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copy file name to clipboardExpand all lines: .github/aw/memory-stateful-patterns.md
+14-15Lines changed: 14 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -113,30 +113,29 @@ Write the current advisory IDs to `/tmp/gh-aw/repo-memory/default/vuln-baseline.
113
113
-**Engine restriction** — `repo-memory` requires Claude or a custom engine; it is **not available** for the Copilot engine
114
114
-**Baseline schema** — store only stable identifiers (advisory ID strings), not mutable fields like severity, to avoid false "new" alerts when metadata changes
115
115
116
-
## Append-only Event History (repo-memory ledger; experimental)
116
+
## Append-only Event History (standalone ledger; experimental)
117
117
118
-
Use the repo-memory ledger when a workflow needs a durable event log rather than
118
+
Use a standalone ledger when a workflow needs a durable event log rather than
119
119
a replaceable baseline: for example, a low-volume audit that appends one
120
120
structured result per run and queries prior results by a stable event key.
121
-
Configure it alongside repo-memory:
121
+
Configure a built-in log independently of repo-memory:
122
122
123
123
```yaml
124
124
tools:
125
-
repo-memory:
126
-
branch-name: memory/audit-history
127
-
ledger:
125
+
ledger:
126
+
audit-history:
127
+
type: log
128
128
compaction:
129
129
min-segments: 32
130
130
max-segments: 32
131
131
```
132
132
133
-
At the start of a run, use `ledger_query` or `ledger_get` to inspect relevant
134
-
records; after the result is complete, use `ledger_append` to add an immutable
135
-
record with an explicit timestamp and stable domain key. Use
136
-
`ledger_status`to inspect malformed or incomplete records. Never modify ledger
137
-
shards directly. When concurrent runs can report the same event, deduplicate
138
-
and resolve conflicts using deterministic application rules; the ledger
139
-
converges after branch merges but does not provide transactions.
133
+
At the start of a run, query the read-only SQLite `state` or `records` tables at
134
+
`/tmp/gh-aw/ledgers/audit-history/ledger.db`. After the result is complete,
135
+
submit `ledger_append` with `operation: append` and a `value` containing a
136
+
stable domain key. The response confirms queuing; records become durable only
137
+
after `push_ledger_changes` succeeds. Never modify SQLite or ledger shards
138
+
directly. Use stable application keys to identify duplicate events.
140
139
141
-
For shard/record/query limits, compaction behavior, and the Cloud Hypervisor
142
-
isolation model, see [memory.md](memory.md#structured-event-history-repo-memory-ledger-experimental).
140
+
For built-in types, script restrictions, and persistence behavior, see
0 commit comments