@jungjaehoon/mama-core 2.2.3 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,32 @@
1
+ -- 066: awareness_operational_issues (One MAMA Phase 3 Task 2).
2
+ --
3
+ -- Failures become first-class evidence: gateway tool failures, envelope scope
4
+ -- mismatches, dead owner-event batches and ledger stagnation are recorded here,
5
+ -- aggregated by (surface, signature), and read into every packet so the agent
6
+ -- sees its own failures. The shape below is the exact shape the owner's
7
+ -- installed database already carries from the retired 043-060 chain, plus
8
+ -- `occurrences`. A fresh install gets the whole table here; an installed table
9
+ -- WITHOUT `occurrences` gets the column added at runtime (pragma-guarded ALTER
10
+ -- in packages/standalone/src/observability/operational-issues.ts), because
11
+ -- SQLite has no ADD COLUMN IF NOT EXISTS and this chain is plain SQL.
12
+ --
13
+ -- `status` carries no CHECK on purpose: the installed column has none, and a
14
+ -- CHECK would force a table rebuild for no gain. Values used: open,
15
+ -- repair_requested, closed - validated in TypeScript.
16
+ CREATE TABLE IF NOT EXISTS awareness_operational_issues (
17
+ issue_id TEXT PRIMARY KEY,
18
+ dedupe_key TEXT UNIQUE NOT NULL,
19
+ surface TEXT NOT NULL,
20
+ severity TEXT NOT NULL,
21
+ status TEXT NOT NULL,
22
+ source_delta_id TEXT,
23
+ first_seen_at INTEGER NOT NULL CHECK (first_seen_at >= 0),
24
+ last_seen_at INTEGER NOT NULL CHECK (last_seen_at >= first_seen_at),
25
+ next_retry_at INTEGER,
26
+ last_error TEXT,
27
+ owner_agent TEXT,
28
+ occurrences INTEGER NOT NULL DEFAULT 1
29
+ );
30
+
31
+ CREATE INDEX IF NOT EXISTS idx_awareness_operational_issues_status_seen
32
+ ON awareness_operational_issues(status, last_seen_at DESC);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jungjaehoon/mama-core",
3
- "version": "2.2.3",
3
+ "version": "2.3.0",
4
4
  "description": "MAMA Core - Shared modules for Memory-Augmented MCP Assistant",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",