Add Phase 6 context shard reflection

This commit is contained in:
Meta Vens 2026-04-26 03:00:06 +01:00
commit aab3ae3334
21 changed files with 1459 additions and 47 deletions

View file

@ -14811,6 +14811,127 @@
"title": "ThreadCompactStartResponse",
"type": "object"
},
"ThreadEpiphanyContext": {
"properties": {
"checkpoint": {
"anyOf": [
{
"$ref": "#/definitions/v2/EpiphanyGraphCheckpoint"
},
{
"type": "null"
}
]
},
"evidence": {
"items": {
"$ref": "#/definitions/v2/EpiphanyEvidenceRecord"
},
"type": "array"
},
"frontier": {
"anyOf": [
{
"$ref": "#/definitions/v2/EpiphanyGraphFrontier"
},
{
"type": "null"
}
]
},
"graph": {
"$ref": "#/definitions/v2/ThreadEpiphanyGraphContext"
},
"observations": {
"items": {
"$ref": "#/definitions/v2/EpiphanyObservation"
},
"type": "array"
}
},
"required": [
"graph"
],
"type": "object"
},
"ThreadEpiphanyContextMissing": {
"properties": {
"evidenceIds": {
"items": {
"type": "string"
},
"type": "array"
},
"graphEdgeIds": {
"items": {
"type": "string"
},
"type": "array"
},
"graphNodeIds": {
"items": {
"type": "string"
},
"type": "array"
},
"observationIds": {
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"ThreadEpiphanyContextSource": {
"enum": [
"stored",
"live"
],
"type": "string"
},
"ThreadEpiphanyContextStateStatus": {
"enum": [
"missing",
"ready"
],
"type": "string"
},
"ThreadEpiphanyGraphContext": {
"properties": {
"architectureEdges": {
"items": {
"$ref": "#/definitions/v2/EpiphanyGraphEdge"
},
"type": "array"
},
"architectureNodes": {
"items": {
"$ref": "#/definitions/v2/EpiphanyGraphNode"
},
"type": "array"
},
"dataflowEdges": {
"items": {
"$ref": "#/definitions/v2/EpiphanyGraphEdge"
},
"type": "array"
},
"dataflowNodes": {
"items": {
"$ref": "#/definitions/v2/EpiphanyGraphNode"
},
"type": "array"
},
"links": {
"items": {
"$ref": "#/definitions/v2/EpiphanyGraphLink"
},
"type": "array"
}
},
"type": "object"
},
"ThreadEpiphanyJob": {
"properties": {
"blockingReason": {
@ -15160,6 +15281,7 @@
"index",
"retrieve",
"distill",
"context",
"jobs",
"propose",
"promote",

View file

@ -12698,6 +12698,127 @@
"title": "ThreadCompactStartResponse",
"type": "object"
},
"ThreadEpiphanyContext": {
"properties": {
"checkpoint": {
"anyOf": [
{
"$ref": "#/definitions/EpiphanyGraphCheckpoint"
},
{
"type": "null"
}
]
},
"evidence": {
"items": {
"$ref": "#/definitions/EpiphanyEvidenceRecord"
},
"type": "array"
},
"frontier": {
"anyOf": [
{
"$ref": "#/definitions/EpiphanyGraphFrontier"
},
{
"type": "null"
}
]
},
"graph": {
"$ref": "#/definitions/ThreadEpiphanyGraphContext"
},
"observations": {
"items": {
"$ref": "#/definitions/EpiphanyObservation"
},
"type": "array"
}
},
"required": [
"graph"
],
"type": "object"
},
"ThreadEpiphanyContextMissing": {
"properties": {
"evidenceIds": {
"items": {
"type": "string"
},
"type": "array"
},
"graphEdgeIds": {
"items": {
"type": "string"
},
"type": "array"
},
"graphNodeIds": {
"items": {
"type": "string"
},
"type": "array"
},
"observationIds": {
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"ThreadEpiphanyContextSource": {
"enum": [
"stored",
"live"
],
"type": "string"
},
"ThreadEpiphanyContextStateStatus": {
"enum": [
"missing",
"ready"
],
"type": "string"
},
"ThreadEpiphanyGraphContext": {
"properties": {
"architectureEdges": {
"items": {
"$ref": "#/definitions/EpiphanyGraphEdge"
},
"type": "array"
},
"architectureNodes": {
"items": {
"$ref": "#/definitions/EpiphanyGraphNode"
},
"type": "array"
},
"dataflowEdges": {
"items": {
"$ref": "#/definitions/EpiphanyGraphEdge"
},
"type": "array"
},
"dataflowNodes": {
"items": {
"$ref": "#/definitions/EpiphanyGraphNode"
},
"type": "array"
},
"links": {
"items": {
"$ref": "#/definitions/EpiphanyGraphLink"
},
"type": "array"
}
},
"type": "object"
},
"ThreadEpiphanyJob": {
"properties": {
"blockingReason": {
@ -13047,6 +13168,7 @@
"index",
"retrieve",
"distill",
"context",
"jobs",
"propose",
"promote",

View file

@ -0,0 +1,10 @@
// GENERATED CODE! DO NOT MODIFY BY HAND!
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { EpiphanyEvidenceRecord } from "../EpiphanyEvidenceRecord";
import type { EpiphanyGraphCheckpoint } from "../EpiphanyGraphCheckpoint";
import type { EpiphanyGraphFrontier } from "../EpiphanyGraphFrontier";
import type { EpiphanyObservation } from "../EpiphanyObservation";
import type { ThreadEpiphanyGraphContext } from "./ThreadEpiphanyGraphContext";
export type ThreadEpiphanyContext = { graph: ThreadEpiphanyGraphContext, frontier?: EpiphanyGraphFrontier | null, checkpoint?: EpiphanyGraphCheckpoint | null, observations?: Array<EpiphanyObservation>, evidence?: Array<EpiphanyEvidenceRecord>, };

View file

@ -0,0 +1,5 @@
// GENERATED CODE! DO NOT MODIFY BY HAND!
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type ThreadEpiphanyContextMissing = { graphNodeIds?: Array<string>, graphEdgeIds?: Array<string>, observationIds?: Array<string>, evidenceIds?: Array<string>, };

View file

@ -0,0 +1,5 @@
// GENERATED CODE! DO NOT MODIFY BY HAND!
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type ThreadEpiphanyContextSource = "stored" | "live";

View file

@ -0,0 +1,5 @@
// GENERATED CODE! DO NOT MODIFY BY HAND!
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type ThreadEpiphanyContextStateStatus = "missing" | "ready";

View file

@ -0,0 +1,8 @@
// GENERATED CODE! DO NOT MODIFY BY HAND!
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { EpiphanyGraphEdge } from "../EpiphanyGraphEdge";
import type { EpiphanyGraphLink } from "../EpiphanyGraphLink";
import type { EpiphanyGraphNode } from "../EpiphanyGraphNode";
export type ThreadEpiphanyGraphContext = { architectureNodes?: Array<EpiphanyGraphNode>, architectureEdges?: Array<EpiphanyGraphEdge>, dataflowNodes?: Array<EpiphanyGraphNode>, dataflowEdges?: Array<EpiphanyGraphEdge>, links?: Array<EpiphanyGraphLink>, };

View file

@ -2,4 +2,4 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type ThreadEpiphanySceneAction = "index" | "retrieve" | "distill" | "jobs" | "propose" | "promote" | "update";
export type ThreadEpiphanySceneAction = "index" | "retrieve" | "distill" | "context" | "jobs" | "propose" | "promote" | "update";

View file

@ -317,6 +317,11 @@ export type { ThreadArchivedNotification } from "./ThreadArchivedNotification";
export type { ThreadClosedNotification } from "./ThreadClosedNotification";
export type { ThreadCompactStartParams } from "./ThreadCompactStartParams";
export type { ThreadCompactStartResponse } from "./ThreadCompactStartResponse";
export type { ThreadEpiphanyContext } from "./ThreadEpiphanyContext";
export type { ThreadEpiphanyContextMissing } from "./ThreadEpiphanyContextMissing";
export type { ThreadEpiphanyContextSource } from "./ThreadEpiphanyContextSource";
export type { ThreadEpiphanyContextStateStatus } from "./ThreadEpiphanyContextStateStatus";
export type { ThreadEpiphanyGraphContext } from "./ThreadEpiphanyGraphContext";
export type { ThreadEpiphanyJob } from "./ThreadEpiphanyJob";
export type { ThreadEpiphanyJobKind } from "./ThreadEpiphanyJobKind";
export type { ThreadEpiphanyJobStatus } from "./ThreadEpiphanyJobStatus";