Skip to content

Commit 83ac712

Browse files
committed
chore: oak upgrade to latest
1 parent f06c9e2 commit 83ac712

59 files changed

Lines changed: 346 additions & 5324 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.codex/skills/codebase-intelligence/SKILL.md renamed to .agents/skills/codebase-intelligence/SKILL.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ sqlite3 -readonly -header -column .oak/ci/activities.db "YOUR QUERY HERE"
132132
| `session_relationships` | Semantic session relationships | `session_a_id`, `session_b_id`, `relationship_type`, `similarity_score` |
133133
| `agent_schedules` | Cron scheduling state | `task_name`, `cron_expression`, `enabled`, `additional_prompt`, `last_run_at`, `next_run_at` |
134134
| `resolution_events` | Cross-machine resolution propagation | `observation_id`, `action`, `source_machine_id`, `applied`, `content_hash` |
135+
| `governance_audit_events` | | |
135136
<!-- END GENERATED CORE TABLES -->
136137

137138
### Memory Types

.codex/skills/codebase-intelligence/references/analysis-playbooks.md renamed to .agents/skills/codebase-intelligence/references/analysis-playbooks.md

File renamed without changes.

.codex/skills/codebase-intelligence/references/finding-related-code.md renamed to .agents/skills/codebase-intelligence/references/finding-related-code.md

File renamed without changes.

.codex/skills/codebase-intelligence/references/impact-analysis.md renamed to .agents/skills/codebase-intelligence/references/impact-analysis.md

File renamed without changes.

.codex/skills/codebase-intelligence/references/queries.md renamed to .agents/skills/codebase-intelligence/references/queries.md

File renamed without changes.

.codex/skills/codebase-intelligence/references/querying-databases.md renamed to .agents/skills/codebase-intelligence/references/querying-databases.md

File renamed without changes.

.codex/skills/codebase-intelligence/references/schema.md renamed to .agents/skills/codebase-intelligence/references/schema.md

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Complete DDL for the Oak CI SQLite database at `.oak/ci/activities.db`.
44

5-
Current schema version: **6**
5+
Current schema version: **8**
66

77
## memory_observations
88

@@ -29,12 +29,13 @@ CREATE TABLE IF NOT EXISTS memory_observations (
2929
resolved_at TEXT, -- ISO timestamp of resolution
3030
superseded_by TEXT, -- Observation ID that supersedes this
3131
session_origin_type TEXT, -- planning | investigation | implementation | mixed
32+
origin_type TEXT DEFAULT 'auto_extracted', -- auto_extracted | agent_created
3233
FOREIGN KEY (session_id) REFERENCES sessions(id),
3334
FOREIGN KEY (prompt_batch_id) REFERENCES prompt_batches(id)
3435
);
3536
```
3637

37-
**Key indexes:** `idx_memory_observations_embedded`, `idx_memory_observations_session`, `idx_memory_observations_hash`, `idx_memory_observations_type`, `idx_memory_observations_context`, `idx_memory_observations_created`, `idx_memory_observations_type_created`, `idx_memory_observations_source_machine`, `idx_memory_observations_status`, `idx_memory_observations_resolved_by`, `idx_memory_observations_origin_type`
38+
**Key indexes:** `idx_memory_observations_embedded`, `idx_memory_observations_session`, `idx_memory_observations_hash`, `idx_memory_observations_origin_type`, `idx_memory_observations_type`, `idx_memory_observations_context`, `idx_memory_observations_created`, `idx_memory_observations_type_created`, `idx_memory_observations_source_machine`, `idx_memory_observations_status`, `idx_memory_observations_resolved_by`, `idx_memory_observations_origin_type`
3839

3940
## sessions
4041

@@ -275,6 +276,33 @@ CREATE TABLE IF NOT EXISTS resolution_events (
275276

276277
**Key indexes:** `idx_resolution_events_observation`, `idx_resolution_events_source_machine`, `idx_resolution_events_applied`, `idx_resolution_events_epoch`, `idx_resolution_events_content_hash`
277278

279+
## governance_audit_events
280+
281+
```sql
282+
CREATE TABLE IF NOT EXISTS governance_audit_events (
283+
id INTEGER PRIMARY KEY AUTOINCREMENT,
284+
session_id TEXT NOT NULL,
285+
agent TEXT NOT NULL,
286+
tool_name TEXT NOT NULL,
287+
tool_use_id TEXT,
288+
tool_category TEXT,
289+
rule_id TEXT,
290+
rule_description TEXT,
291+
action TEXT NOT NULL,
292+
reason TEXT,
293+
matched_pattern TEXT,
294+
tool_input_summary TEXT,
295+
enforcement_mode TEXT NOT NULL,
296+
created_at TEXT NOT NULL,
297+
created_at_epoch INTEGER NOT NULL,
298+
evaluation_ms INTEGER,
299+
source_machine_id TEXT,
300+
FOREIGN KEY (session_id) REFERENCES sessions(id)
301+
);
302+
```
303+
304+
**Key indexes:** `idx_gov_audit_session`, `idx_gov_audit_action`, `idx_gov_audit_created`, `idx_gov_audit_tool`, `idx_gov_audit_rule`
305+
278306
## Full-Text Search Tables (FTS5)
279307

280308
### memories_fts
File renamed without changes.

.codex/skills/context-engineering/references/agent-context-patterns.md renamed to .agents/skills/context-engineering/references/agent-context-patterns.md

File renamed without changes.

.codex/skills/context-engineering/references/before-after-examples.md renamed to .agents/skills/context-engineering/references/before-after-examples.md

File renamed without changes.

0 commit comments

Comments
 (0)