@atrib/annotate 0.2.9 → 0.2.11
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.
- package/README.md +2 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -34,7 +34,8 @@ The graph layer derives an ANNOTATES edge from the new record to the `annotates`
|
|
|
34
34
|
|
|
35
35
|
- **Required-field enforcement**: `annotates`, `importance`, and `summary` are required. The Zod schema rejects calls missing any of these before the signing pipeline runs.
|
|
36
36
|
- **Spec validators**: `annotates` is rejected on non-annotation event_types per spec [§1.2.7](https://github.com/creatornader/atrib/blob/main/atrib-spec.md#127-annotates) (the underlying `handleEmit` enforces this; the tool's narrow schema prevents it from happening here).
|
|
37
|
-
- **Env-honoring**: `ATRIB_CONTEXT_ID` is honored as the default `context_id` per [D078](https://github.com/creatornader/atrib/blob/main/DECISIONS.md#d078-mcp-servers-honor-atrib_context_id-env-as-context_id-default) when the caller omits the field.
|
|
37
|
+
- **Env-honoring**: `ATRIB_CONTEXT_ID` is honored as the default `context_id` per [D078](https://github.com/creatornader/atrib/blob/main/DECISIONS.md#d078-mcp-servers-honor-atrib_context_id-env-as-context_id-default) when the caller omits the field. Per [D083](https://github.com/creatornader/atrib/blob/main/DECISIONS.md#d083-harness-session-id-discovery-extends-d078-for-cognitive-primitive-mcp-servers), when `ATRIB_CONTEXT_ID` is also unset, `CLAUDE_CODE_SESSION_ID` (and any future registered harness env var) is consulted via `@atrib/mcp`'s `resolveEnvContextId` so MCP children spawned by harnesses inherit the session's context_id automatically.
|
|
38
|
+
- **Producer label**: signed records carry `_local.producer = 'atrib-annotate'` in the mirror sidecar, distinguishing them from `@atrib/emit`-signed annotation records. Mirror consumers (the SessionStart by-producer aggregation, recall filters, audit tooling) can bucket annotation records by their producing surface without inspecting envelopes. The signed `AtribRecord` bytes do not include producer; this is sidecar metadata only.
|
|
38
39
|
- **Multi-producer chain composition**: inherits chain state from the mirror or `ATRIB_CHAIN_TAIL_<context_id>` env per [D067](https://github.com/creatornader/atrib/blob/main/DECISIONS.md#d067-multi-producer-chain-composition-precedence-contract), the same way `@atrib/emit` does.
|
|
39
40
|
- **Graceful degradation**: signing failures surface in `warnings`; never throws to the agent per spec [§5.8](https://github.com/creatornader/atrib/blob/main/atrib-spec.md#58-degradation-contract).
|
|
40
41
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atrib/annotate",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.11",
|
|
4
4
|
"description": "MCP server for atrib. Lets agents mark a past record's importance and meaning. Adds an ANNOTATES graph edge so recall surfaces weighted annotations ahead of flat scans.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
13
13
|
"zod": "^3.25.76",
|
|
14
|
-
"@atrib/
|
|
15
|
-
"@atrib/
|
|
14
|
+
"@atrib/emit": "0.14.2",
|
|
15
|
+
"@atrib/mcp": "0.9.1"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@types/node": "^25.8.0",
|