@x12i/memorix-format 2.2.3 → 2.3.3
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/CHANGELOG.md +26 -0
- package/README.md +36 -86
- package/dist/associated.d.ts +2 -2
- package/dist/associated.d.ts.map +1 -1
- package/dist/associated.js +1 -1
- package/dist/base/classify.d.ts +6 -0
- package/dist/base/classify.d.ts.map +1 -0
- package/dist/base/classify.js +18 -0
- package/dist/base/classify.js.map +1 -0
- package/dist/base/compat/legacy-roots.d.ts +24 -0
- package/dist/base/compat/legacy-roots.d.ts.map +1 -0
- package/dist/base/compat/legacy-roots.js +50 -0
- package/dist/base/compat/legacy-roots.js.map +1 -0
- package/dist/base/concept.d.ts +21 -0
- package/dist/base/concept.d.ts.map +1 -0
- package/dist/base/concept.js +87 -0
- package/dist/base/concept.js.map +1 -0
- package/dist/base/constants.d.ts +18 -0
- package/dist/base/constants.d.ts.map +1 -0
- package/dist/base/constants.js +21 -0
- package/dist/base/constants.js.map +1 -0
- package/dist/base/index.d.ts +13 -0
- package/dist/base/index.d.ts.map +1 -0
- package/dist/base/index.js +11 -0
- package/dist/base/index.js.map +1 -0
- package/dist/base/inspect.d.ts +3 -0
- package/dist/base/inspect.d.ts.map +1 -0
- package/dist/base/inspect.js +41 -0
- package/dist/base/inspect.js.map +1 -0
- package/dist/base/load-meta.d.ts +61 -0
- package/dist/base/load-meta.d.ts.map +1 -0
- package/dist/base/load-meta.js +45 -0
- package/dist/base/load-meta.js.map +1 -0
- package/dist/base/meta.d.ts +8 -0
- package/dist/base/meta.d.ts.map +1 -0
- package/dist/base/meta.js +79 -0
- package/dist/base/meta.js.map +1 -0
- package/dist/base/types.d.ts +112 -0
- package/dist/base/types.d.ts.map +1 -0
- package/dist/base/types.js +2 -0
- package/dist/base/types.js.map +1 -0
- package/dist/base/utils.d.ts +4 -0
- package/dist/base/utils.d.ts.map +1 -0
- package/dist/base/utils.js +15 -0
- package/dist/base/utils.js.map +1 -0
- package/dist/base/validate.d.ts +13 -0
- package/dist/base/validate.d.ts.map +1 -0
- package/dist/base/validate.js +253 -0
- package/dist/base/validate.js.map +1 -0
- package/dist/cli.js +180 -16
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +5 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/load-meta.d.ts +1 -1
- package/dist/load-meta.d.ts.map +1 -1
- package/dist/migrate.d.ts +1 -1
- package/dist/migrate.d.ts.map +1 -1
- package/dist/migrate.js +1 -1
- package/dist/migrate.js.map +1 -1
- package/dist/profiles.d.ts +1 -1
- package/dist/profiles.d.ts.map +1 -1
- package/dist/types.d.ts +3 -3
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +1 -1
- package/dist/types.js.map +1 -1
- package/dist/v2/index.d.ts +7 -0
- package/dist/v2/index.d.ts.map +1 -0
- package/dist/v2/index.js +6 -0
- package/dist/v2/index.js.map +1 -0
- package/dist/v2/migrate-present.d.ts +47 -0
- package/dist/v2/migrate-present.d.ts.map +1 -0
- package/dist/v2/migrate-present.js +225 -0
- package/dist/v2/migrate-present.js.map +1 -0
- package/dist/v2/profiles.d.ts +9 -0
- package/dist/v2/profiles.d.ts.map +1 -0
- package/dist/v2/profiles.js +63 -0
- package/dist/v2/profiles.js.map +1 -0
- package/dist/v2/revision.d.ts +24 -0
- package/dist/v2/revision.d.ts.map +1 -0
- package/dist/v2/revision.js +44 -0
- package/dist/v2/revision.js.map +1 -0
- package/dist/v2/types.d.ts +94 -0
- package/dist/v2/types.d.ts.map +1 -0
- package/dist/v2/types.js +3 -0
- package/dist/v2/types.js.map +1 -0
- package/dist/v2/validate.d.ts +8 -0
- package/dist/v2/validate.d.ts.map +1 -0
- package/dist/v2/validate.js +225 -0
- package/dist/v2/validate.js.map +1 -0
- package/dist/validate.d.ts +1 -1
- package/dist/validate.d.ts.map +1 -1
- package/dist/validate.js +1 -1
- package/dist/validate.js.map +1 -1
- package/docs/association-format.md +3 -0
- package/docs/memorix-format.md +24 -186
- package/docs/memorix-record-v2.md +101 -0
- package/docs/memorix-workflow-format.md +13 -1
- package/docs/migrate-present-to-v2.md +49 -0
- package/examples/v2/activity-events-snapshots.json +31 -0
- package/examples/v2/employees-discovery.json +26 -0
- package/examples/v2/employees-snapshots.json +27 -0
- package/examples/v2/procedures-knowledge.json +27 -0
- package/examples/v2/work-items-analysis.json +26 -0
- package/examples/v2/work-items-context.json +32 -0
- package/examples/v2/work-items-decisions.json +26 -0
- package/examples/v2/work-items-raw.json +37 -0
- package/examples/v2/work-items-relationships-candidate.json +38 -0
- package/examples/v2/work-items-snapshots-lifecycle.json +31 -0
- package/examples/v2/work-items-snapshots-lightweight-refs.json +34 -0
- package/examples/v2/work-items-snapshots.json +28 -0
- package/examples/v2/work-items-workflow.json +28 -0
- package/meta/envelope.json +104 -0
- package/package.json +7 -5
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# memorix-record/2
|
|
2
|
+
|
|
3
|
+
**Status:** Gate G2 contract — preferred source of truth for new platform work.
|
|
4
|
+
**Package:** `@x12i/memorix-format` (`validateMemorixRecordV2`, `migratePresentToV2`, CLI `validate-v2` / `migrate-to-v2`).
|
|
5
|
+
|
|
6
|
+
Present-tense envelope docs remain in [memorix-format.md](./memorix-format.md) for migration only.
|
|
7
|
+
Migration semantics: [migrate-present-to-v2.md](./migrate-present-to-v2.md).
|
|
8
|
+
|
|
9
|
+
## Envelope
|
|
10
|
+
|
|
11
|
+
```ts
|
|
12
|
+
type MemorixRecordV2 = {
|
|
13
|
+
format: "memorix-record/2";
|
|
14
|
+
recordId: string;
|
|
15
|
+
revision: number; // starts at 1; increments every successful mutation
|
|
16
|
+
objectType: string;
|
|
17
|
+
contentType: string;
|
|
18
|
+
dataCategory: "entity" | "event" | "knowledge";
|
|
19
|
+
concept: {
|
|
20
|
+
title: string;
|
|
21
|
+
identifiers: {
|
|
22
|
+
primary: { kind: string; value: string; issuer?: string; normalizedValue?: string };
|
|
23
|
+
alternates?: Array<...>; // omit when empty
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
data: Record<string, unknown>;
|
|
27
|
+
analytics?: Record<string, unknown>; // snapshots (and knowledge) only; omit when unused
|
|
28
|
+
enrichment?: Record<string, unknown>;
|
|
29
|
+
insights?: Record<string, unknown>;
|
|
30
|
+
// Option A — lightweight relationship refs remain FORMAT-VALID (G2).
|
|
31
|
+
// Gate G4 selected authoritative storage = central per-category collections (Candidate C).
|
|
32
|
+
// associatedPeople?: Array<{
|
|
33
|
+
// relationshipDefinitionId: string; // required
|
|
34
|
+
// recordId: string; // required
|
|
35
|
+
// relationshipId?: string; // optional — deterministically derivable
|
|
36
|
+
// }>;
|
|
37
|
+
_system: {
|
|
38
|
+
state: "active" | "archived" | "superseded";
|
|
39
|
+
createdAt: string;
|
|
40
|
+
modifiedAt: string;
|
|
41
|
+
observedAt?: string;
|
|
42
|
+
lifecycle?: Array<{ process: string; processedAt: string }>; // omit when empty
|
|
43
|
+
provenance?: Record<string, unknown>;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Locked decisions (Gate G2)
|
|
49
|
+
|
|
50
|
+
1. **Empty optional snapshot buckets are omitted** — never emit `{}`.
|
|
51
|
+
2. **Workflow is a sibling content record** (`contentType: "workflow"`), not a separate document system.
|
|
52
|
+
3. **Composition** = same `recordId` across content types; not a relationship.
|
|
53
|
+
4. **`_graphRuns` / `_jobTypeRuns` stay off the subject** — operational run ledger owns run history.
|
|
54
|
+
5. **V2 rejects copied related-record payloads.** Root `associated*` may hold **lightweight relationship refs** only: required `relationshipDefinitionId` + `recordId`; optional `relationshipId` (derivable). Without `relationshipDefinitionId` the item is not a relationship. **Option A** (direct-record lightweight `associated*` roots) remains **format-valid** for validation and migration compatibility.
|
|
55
|
+
6. **Authoritative physical relationship storage is Gate G4 Candidate C** — org-prefixed per-category `relationships` collections (`entity` / `event` / `knowledge`). Option A lightweight roots and sibling `relationships` content are **not** the selected authoritative storage model; see `docs/re-factoring-and-ops-agent/RELATIONSHIP-STORAGE-DECISION.md`.
|
|
56
|
+
7. **Present format remains the writer/pipeline default** until cutover (`MEMORIX_RECORD_FORMAT=v2`). All **new** refactor packages and the `ops` harness use V2 exclusively. The env switch is transitional (`DEL-FORMAT-PRESENT-SOT`).
|
|
57
|
+
|
|
58
|
+
## Revision vs lifecycle
|
|
59
|
+
|
|
60
|
+
| Rule | Behavior |
|
|
61
|
+
|---|---|
|
|
62
|
+
| Revision | Increments on every successful mutation |
|
|
63
|
+
| Lifecycle | Appended only for meaningful process/state events |
|
|
64
|
+
| Independence | Revision may change with no lifecycle entry |
|
|
65
|
+
| Concurrency | Stale `expectedRevision` is rejected (`checkExpectedRevision`) |
|
|
66
|
+
|
|
67
|
+
Helpers: `applySuccessfulMutation`, `nextRevision`, `checkExpectedRevision`.
|
|
68
|
+
|
|
69
|
+
## Discriminators
|
|
70
|
+
|
|
71
|
+
- Pure structural V2 validation does not invent discriminator values.
|
|
72
|
+
- Content-type **profiles** (from metadata) may declare `path`, `required`, `defaultValue`, `allowedValues`.
|
|
73
|
+
- Missing + profile default → warning `V2-DISCRIMINATOR-DEFAULT` (writers apply default).
|
|
74
|
+
- Missing + required + no default → error `V2-DISCRIMINATOR`.
|
|
75
|
+
|
|
76
|
+
## Examples
|
|
77
|
+
|
|
78
|
+
See [`examples/v2/`](../examples/v2/) — includes lifecycle, lightweight refs, analysis/decision/discovery, workflow sibling, relationships-candidate sibling.
|
|
79
|
+
|
|
80
|
+
## Migrate
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
npx memorix-format migrate-to-v2 ./present.json \
|
|
84
|
+
--object-type=work-items \
|
|
85
|
+
--content-type=snapshots \
|
|
86
|
+
--data-category=entity \
|
|
87
|
+
--issuer=ops-source
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
Output includes `v2`, `extractedRelationships`, and `warnings`.
|
|
91
|
+
|
|
92
|
+
## Writer cutover flag
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
MEMORIX_RECORD_FORMAT=v2 # writer uses validateMemorixRecordV2
|
|
96
|
+
# default: present (legacy paths only)
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
## Folding `@x12i/memorix-base-format`
|
|
100
|
+
|
|
101
|
+
Present base validation still depends on `@x12i/memorix-base-format`. That package becomes a temporary re-export after consumers move to `@x12i/memorix-format` / V2, then is deleted (Phase 0 deletion ledger).
|
|
@@ -1,7 +1,19 @@
|
|
|
1
|
-
# Memorix Workflow Format
|
|
1
|
+
# Memorix Workflow Format
|
|
2
2
|
|
|
3
3
|
## Purpose
|
|
4
4
|
|
|
5
|
+
**Gate G2:** Workflow is a **sibling content record** on `memorix-record/2` with
|
|
6
|
+
`contentType: "workflow"` and the same `recordId` as the subject — not a separate
|
|
7
|
+
document system. See [memorix-record-v2.md](./memorix-record-v2.md) and
|
|
8
|
+
`examples/v2/work-items-workflow.json`.
|
|
9
|
+
|
|
10
|
+
Legacy product shape (`memorix-workflow/1`) below remains for migration until
|
|
11
|
+
workflow-api cutover.
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Legacy: `memorix-workflow/1`
|
|
16
|
+
|
|
5
17
|
Versioned JSON for **product workflow state** attached to a subject object via the
|
|
6
18
|
content type `workflow` (collection `{objectType}-workflow`).
|
|
7
19
|
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# memorix-record/2 — present → V2 migration semantics
|
|
2
|
+
|
|
3
|
+
## Result shape
|
|
4
|
+
|
|
5
|
+
`migratePresentToV2` returns:
|
|
6
|
+
|
|
7
|
+
```ts
|
|
8
|
+
{
|
|
9
|
+
ok: boolean;
|
|
10
|
+
v2: MemorixRecordV2; // clean V2; no copied associated payloads
|
|
11
|
+
extractedRelationships: [...]; // out-of-band; NOT persisted (Gate G4)
|
|
12
|
+
warnings: string[];
|
|
13
|
+
}
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Associated* handling
|
|
17
|
+
|
|
18
|
+
| Input | V2 record | extractedRelationships |
|
|
19
|
+
|---|---|---|
|
|
20
|
+
| Item with `recordId` (+ copied fields) | `associated*` removed from V2 | status `mapped` or `pending-metadata-resolution`; `droppedPayloadKeys` lists copied fields |
|
|
21
|
+
| Item without target `recordId` | removed | `quarantined-missing-recordId` |
|
|
22
|
+
| Non-array associated* | removed | warning; skipped |
|
|
23
|
+
|
|
24
|
+
Copied payload is never written onto V2. Resolvable links are never silently discarded.
|
|
25
|
+
|
|
26
|
+
Optional `associatedPropertyMap: { associatedPeople: "people-assigned-to-work-items" }` supplies `relationshipDefinitionId` when known.
|
|
27
|
+
|
|
28
|
+
## Timestamps / identifiers
|
|
29
|
+
|
|
30
|
+
| Situation | Behavior |
|
|
31
|
+
|---|---|
|
|
32
|
+
| `createdAt` missing | default `now`; warning |
|
|
33
|
+
| `modifiedAt` missing | default to `createdAt`/`now`; warning |
|
|
34
|
+
| kind-named value missing | fall back to `value` / key tail / `recordId`; warning |
|
|
35
|
+
| Multiple old identifiers | primary from `_extIdentifier` only; extras not auto-alternates (warning path for future) |
|
|
36
|
+
| Unrecognized roots | dropped with warning |
|
|
37
|
+
| Subject `_graphRuns` etc. | dropped with warning (ops ledger owns run history) |
|
|
38
|
+
|
|
39
|
+
## Success vs failure
|
|
40
|
+
|
|
41
|
+
- Migration **succeeds with warnings** when a V2 envelope is produced (`ok: true`) even if relationships are pending/quarantined.
|
|
42
|
+
- Callers should still run `validateMemorixRecordV2(result.v2)`.
|
|
43
|
+
- Migration does not throw on missing association targets; it quarantines.
|
|
44
|
+
|
|
45
|
+
## Gate G4 boundary
|
|
46
|
+
|
|
47
|
+
**Authoritative physical relationship storage (Gate G4):** centralized org-prefixed per-category `relationships` collections (Candidate C). See `docs/re-factoring-and-ops-agent/RELATIONSHIP-STORAGE-DECISION.md`.
|
|
48
|
+
|
|
49
|
+
`migratePresentToV2` still extracts relationship candidates **out-of-band** and does not persist them onto the V2 record. Option A root `associated*` lightweight refs remain **format-valid** but are **not** the selected authoritative storage model.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": "memorix-record/2",
|
|
3
|
+
"recordId": "ae-500",
|
|
4
|
+
"revision": 1,
|
|
5
|
+
"objectType": "activity-events",
|
|
6
|
+
"contentType": "snapshots",
|
|
7
|
+
"dataCategory": "event",
|
|
8
|
+
"concept": {
|
|
9
|
+
"title": "status-note on WI-100",
|
|
10
|
+
"identifiers": {
|
|
11
|
+
"primary": {
|
|
12
|
+
"kind": "activityEventId",
|
|
13
|
+
"value": "AE-500",
|
|
14
|
+
"issuer": "ops-source"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"data": {
|
|
19
|
+
"workItemId": "WI-100",
|
|
20
|
+
"actorId": "E-10",
|
|
21
|
+
"type": "status-note",
|
|
22
|
+
"message": "Draft outline complete",
|
|
23
|
+
"occurredAt": "2026-01-15T14:00:00.000Z"
|
|
24
|
+
},
|
|
25
|
+
"_system": {
|
|
26
|
+
"state": "active",
|
|
27
|
+
"createdAt": "2026-01-15T14:00:00.000Z",
|
|
28
|
+
"modifiedAt": "2026-01-15T14:00:00.000Z",
|
|
29
|
+
"observedAt": "2026-01-15T14:00:00.000Z"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": "memorix-record/2",
|
|
3
|
+
"recordId": "employee-10",
|
|
4
|
+
"revision": 1,
|
|
5
|
+
"objectType": "employees",
|
|
6
|
+
"contentType": "discovery",
|
|
7
|
+
"dataCategory": "entity",
|
|
8
|
+
"concept": {
|
|
9
|
+
"title": "Discovery for employee-10",
|
|
10
|
+
"identifiers": {
|
|
11
|
+
"primary": {
|
|
12
|
+
"kind": "recordId",
|
|
13
|
+
"value": "employee-10"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"data": {
|
|
18
|
+
"discoveryType": "role-cluster",
|
|
19
|
+
"cluster": "operations"
|
|
20
|
+
},
|
|
21
|
+
"_system": {
|
|
22
|
+
"state": "active",
|
|
23
|
+
"createdAt": "2026-01-15T16:00:00.000Z",
|
|
24
|
+
"modifiedAt": "2026-01-15T16:00:00.000Z"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": "memorix-record/2",
|
|
3
|
+
"recordId": "employee-10",
|
|
4
|
+
"revision": 1,
|
|
5
|
+
"objectType": "employees",
|
|
6
|
+
"contentType": "snapshots",
|
|
7
|
+
"dataCategory": "entity",
|
|
8
|
+
"concept": {
|
|
9
|
+
"title": "Alex Rivera",
|
|
10
|
+
"identifiers": {
|
|
11
|
+
"primary": {
|
|
12
|
+
"kind": "employeeId",
|
|
13
|
+
"value": "E-10",
|
|
14
|
+
"issuer": "ops-source"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"data": {
|
|
19
|
+
"role": "operations-lead",
|
|
20
|
+
"email": "alex@fieldstone.example"
|
|
21
|
+
},
|
|
22
|
+
"_system": {
|
|
23
|
+
"state": "active",
|
|
24
|
+
"createdAt": "2026-01-10T10:00:00.000Z",
|
|
25
|
+
"modifiedAt": "2026-01-10T10:00:00.000Z"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": "memorix-record/2",
|
|
3
|
+
"recordId": "proc-1",
|
|
4
|
+
"revision": 1,
|
|
5
|
+
"objectType": "procedures",
|
|
6
|
+
"contentType": "snapshots",
|
|
7
|
+
"dataCategory": "knowledge",
|
|
8
|
+
"concept": {
|
|
9
|
+
"title": "Quarterly review checklist",
|
|
10
|
+
"identifiers": {
|
|
11
|
+
"primary": {
|
|
12
|
+
"kind": "procedureId",
|
|
13
|
+
"value": "PROC-1",
|
|
14
|
+
"issuer": "ops-source"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"data": {
|
|
19
|
+
"body": "1. Collect metrics\n2. Draft summary\n3. Review with lead",
|
|
20
|
+
"contentHash": "hash-proc-1-v1"
|
|
21
|
+
},
|
|
22
|
+
"_system": {
|
|
23
|
+
"state": "active",
|
|
24
|
+
"createdAt": "2026-01-01T00:00:00.000Z",
|
|
25
|
+
"modifiedAt": "2026-01-01T00:00:00.000Z"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": "memorix-record/2",
|
|
3
|
+
"recordId": "wi-100",
|
|
4
|
+
"revision": 1,
|
|
5
|
+
"objectType": "work-items",
|
|
6
|
+
"contentType": "analysis",
|
|
7
|
+
"dataCategory": "entity",
|
|
8
|
+
"concept": {
|
|
9
|
+
"title": "Analysis for wi-100",
|
|
10
|
+
"identifiers": {
|
|
11
|
+
"primary": {
|
|
12
|
+
"kind": "recordId",
|
|
13
|
+
"value": "wi-100"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"data": {
|
|
18
|
+
"analysisType": "delivery-risk",
|
|
19
|
+
"risk": "low"
|
|
20
|
+
},
|
|
21
|
+
"_system": {
|
|
22
|
+
"state": "active",
|
|
23
|
+
"createdAt": "2026-01-15T13:00:00.000Z",
|
|
24
|
+
"modifiedAt": "2026-01-15T13:00:00.000Z"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": "memorix-record/2",
|
|
3
|
+
"recordId": "wi-100",
|
|
4
|
+
"revision": 1,
|
|
5
|
+
"objectType": "work-items",
|
|
6
|
+
"contentType": "context",
|
|
7
|
+
"dataCategory": "entity",
|
|
8
|
+
"concept": {
|
|
9
|
+
"title": "Context for wi-100",
|
|
10
|
+
"identifiers": {
|
|
11
|
+
"primary": {
|
|
12
|
+
"kind": "recordId",
|
|
13
|
+
"value": "wi-100"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"data": {
|
|
18
|
+
"workItemId": "WI-100",
|
|
19
|
+
"notes": "Current blockers: waiting on finance figures",
|
|
20
|
+
"temporary": true
|
|
21
|
+
},
|
|
22
|
+
"_system": {
|
|
23
|
+
"state": "active",
|
|
24
|
+
"createdAt": "2026-01-15T15:00:00.000Z",
|
|
25
|
+
"modifiedAt": "2026-01-15T15:00:00.000Z",
|
|
26
|
+
"provenance": {
|
|
27
|
+
"mode": "context",
|
|
28
|
+
"sourceId": "ops-source",
|
|
29
|
+
"ttlPolicy": "work-scoped"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": "memorix-record/2",
|
|
3
|
+
"recordId": "wi-100",
|
|
4
|
+
"revision": 1,
|
|
5
|
+
"objectType": "work-items",
|
|
6
|
+
"contentType": "decisions",
|
|
7
|
+
"dataCategory": "entity",
|
|
8
|
+
"concept": {
|
|
9
|
+
"title": "Decision for wi-100",
|
|
10
|
+
"identifiers": {
|
|
11
|
+
"primary": {
|
|
12
|
+
"kind": "recordId",
|
|
13
|
+
"value": "wi-100"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"data": {
|
|
18
|
+
"decisionType": "priority",
|
|
19
|
+
"decision": "keep-current-priority"
|
|
20
|
+
},
|
|
21
|
+
"_system": {
|
|
22
|
+
"state": "active",
|
|
23
|
+
"createdAt": "2026-01-15T13:30:00.000Z",
|
|
24
|
+
"modifiedAt": "2026-01-15T13:30:00.000Z"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": "memorix-record/2",
|
|
3
|
+
"recordId": "wi-100",
|
|
4
|
+
"revision": 1,
|
|
5
|
+
"objectType": "work-items",
|
|
6
|
+
"contentType": "raw",
|
|
7
|
+
"dataCategory": "entity",
|
|
8
|
+
"concept": {
|
|
9
|
+
"title": "Prepare quarterly operations review",
|
|
10
|
+
"identifiers": {
|
|
11
|
+
"primary": {
|
|
12
|
+
"kind": "workItemId",
|
|
13
|
+
"value": "WI-100",
|
|
14
|
+
"issuer": "ops-source"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"data": {
|
|
19
|
+
"id": "WI-100",
|
|
20
|
+
"title": "Prepare quarterly operations review",
|
|
21
|
+
"status": "in-progress",
|
|
22
|
+
"priority": "normal",
|
|
23
|
+
"assigneeId": "E-10",
|
|
24
|
+
"procedureIds": ["PROC-1"],
|
|
25
|
+
"dependsOnIds": ["WI-90"],
|
|
26
|
+
"updatedAt": "2026-01-15T12:00:00.000Z"
|
|
27
|
+
},
|
|
28
|
+
"_system": {
|
|
29
|
+
"state": "active",
|
|
30
|
+
"createdAt": "2026-01-15T12:00:00.000Z",
|
|
31
|
+
"modifiedAt": "2026-01-15T12:00:00.000Z",
|
|
32
|
+
"provenance": {
|
|
33
|
+
"sourceId": "ops-source",
|
|
34
|
+
"endpoint": "/work-items"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": "memorix-record/2",
|
|
3
|
+
"recordId": "wi-100",
|
|
4
|
+
"revision": 2,
|
|
5
|
+
"objectType": "work-items",
|
|
6
|
+
"contentType": "relationships",
|
|
7
|
+
"dataCategory": "entity",
|
|
8
|
+
"concept": {
|
|
9
|
+
"title": "Relationships for wi-100",
|
|
10
|
+
"identifiers": {
|
|
11
|
+
"primary": {
|
|
12
|
+
"kind": "recordId",
|
|
13
|
+
"value": "wi-100"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"data": {
|
|
18
|
+
"associatedPeople": [
|
|
19
|
+
{
|
|
20
|
+
"relationshipId": "rel-people-assigned-employee-10-wi-100",
|
|
21
|
+
"relationshipDefinitionId": "people-assigned-to-work-items",
|
|
22
|
+
"recordId": "employee-10"
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"usedProcedures": [
|
|
26
|
+
{
|
|
27
|
+
"relationshipId": "rel-wi-use-proc-wi-100-proc-1",
|
|
28
|
+
"relationshipDefinitionId": "work-items-use-procedures",
|
|
29
|
+
"recordId": "proc-1"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
"_system": {
|
|
34
|
+
"state": "active",
|
|
35
|
+
"createdAt": "2026-01-15T12:00:00.000Z",
|
|
36
|
+
"modifiedAt": "2026-01-15T12:30:00.000Z"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": "memorix-record/2",
|
|
3
|
+
"recordId": "wi-100",
|
|
4
|
+
"revision": 5,
|
|
5
|
+
"objectType": "work-items",
|
|
6
|
+
"contentType": "snapshots",
|
|
7
|
+
"dataCategory": "entity",
|
|
8
|
+
"concept": {
|
|
9
|
+
"title": "Prepare quarterly operations review",
|
|
10
|
+
"identifiers": {
|
|
11
|
+
"primary": {
|
|
12
|
+
"kind": "workItemId",
|
|
13
|
+
"value": "WI-100",
|
|
14
|
+
"issuer": "ops-source"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"data": {
|
|
19
|
+
"status": "done",
|
|
20
|
+
"priority": "normal"
|
|
21
|
+
},
|
|
22
|
+
"_system": {
|
|
23
|
+
"state": "active",
|
|
24
|
+
"createdAt": "2026-01-10T10:00:00.000Z",
|
|
25
|
+
"modifiedAt": "2026-01-20T09:00:00.000Z",
|
|
26
|
+
"lifecycle": [
|
|
27
|
+
{ "process": "created", "processedAt": "2026-01-10T10:00:00.000Z" },
|
|
28
|
+
{ "process": "completed", "processedAt": "2026-01-20T09:00:00.000Z" }
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": "memorix-record/2",
|
|
3
|
+
"recordId": "wi-100",
|
|
4
|
+
"revision": 2,
|
|
5
|
+
"objectType": "work-items",
|
|
6
|
+
"contentType": "snapshots",
|
|
7
|
+
"dataCategory": "entity",
|
|
8
|
+
"concept": {
|
|
9
|
+
"title": "Prepare quarterly operations review",
|
|
10
|
+
"identifiers": {
|
|
11
|
+
"primary": {
|
|
12
|
+
"kind": "workItemId",
|
|
13
|
+
"value": "WI-100",
|
|
14
|
+
"issuer": "ops-source"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"data": {
|
|
19
|
+
"status": "in-progress",
|
|
20
|
+
"priority": "normal"
|
|
21
|
+
},
|
|
22
|
+
"associatedPeople": [
|
|
23
|
+
{
|
|
24
|
+
"relationshipDefinitionId": "people-assigned-to-work-items",
|
|
25
|
+
"recordId": "employee-10",
|
|
26
|
+
"relationshipId": "rel-people-assigned-employee-10-wi-100"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"_system": {
|
|
30
|
+
"state": "active",
|
|
31
|
+
"createdAt": "2026-01-10T10:00:00.000Z",
|
|
32
|
+
"modifiedAt": "2026-01-15T12:30:00.000Z"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": "memorix-record/2",
|
|
3
|
+
"recordId": "wi-100",
|
|
4
|
+
"revision": 3,
|
|
5
|
+
"objectType": "work-items",
|
|
6
|
+
"contentType": "snapshots",
|
|
7
|
+
"dataCategory": "entity",
|
|
8
|
+
"concept": {
|
|
9
|
+
"title": "Prepare quarterly operations review",
|
|
10
|
+
"identifiers": {
|
|
11
|
+
"primary": {
|
|
12
|
+
"kind": "workItemId",
|
|
13
|
+
"value": "WI-100",
|
|
14
|
+
"issuer": "ops-source"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"data": {
|
|
19
|
+
"status": "in-progress",
|
|
20
|
+
"priority": "normal"
|
|
21
|
+
},
|
|
22
|
+
"_system": {
|
|
23
|
+
"state": "active",
|
|
24
|
+
"createdAt": "2026-01-10T10:00:00.000Z",
|
|
25
|
+
"modifiedAt": "2026-01-15T12:00:00.000Z",
|
|
26
|
+
"observedAt": "2026-01-15T12:00:00.000Z"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": "memorix-record/2",
|
|
3
|
+
"recordId": "wi-100",
|
|
4
|
+
"revision": 4,
|
|
5
|
+
"objectType": "work-items",
|
|
6
|
+
"contentType": "workflow",
|
|
7
|
+
"dataCategory": "entity",
|
|
8
|
+
"concept": {
|
|
9
|
+
"title": "Workflow for wi-100",
|
|
10
|
+
"identifiers": {
|
|
11
|
+
"primary": {
|
|
12
|
+
"kind": "recordId",
|
|
13
|
+
"value": "wi-100"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"data": {
|
|
18
|
+
"status": "in-progress",
|
|
19
|
+
"assigneeRecordId": "employee-10",
|
|
20
|
+
"tasks": [],
|
|
21
|
+
"audit": []
|
|
22
|
+
},
|
|
23
|
+
"_system": {
|
|
24
|
+
"state": "active",
|
|
25
|
+
"createdAt": "2026-01-10T10:00:00.000Z",
|
|
26
|
+
"modifiedAt": "2026-01-15T14:00:00.000Z"
|
|
27
|
+
}
|
|
28
|
+
}
|