Skip to content

NightWeaving

One night’s weaving of a loom: consolidation that runs in the background once its conversations go quiet. It records what it did, the dream log it wrote, and the tokens it spent.

Kind: an object, used in responses.

Every field is present in a response; empty ones are null.

FieldTypeDescription
loomIduuidThe loom that was woven.
statusNightWeavingStatusWhether it is still running, completed or failed.
dateCompleteddatetime | nullWhen it finished (UTC), whether it completed or failed. Null while it is running.
sourceInteractionProcessIduuid | nullThe interaction run whose model credentials the weaving used, and to which its usage is attributed.
sessionIdsuuid[]The sessions (LoomSession) it consolidated.
countsNightWeavingCountsWhat it did, counted.
dreamLogstring | nullThe weaver’s private journal entry for the night, also woven as a reflection thread.
dreamLogThreadIduuid | nullThe reflection thread the dream log was woven as. Null when none was written.
errorstring | nullWhat went wrong, when anything did. Null otherwise.
tokenUsageInteractionProcessTokenUsage[]The tokens the night spent, one entry per model call.
tenantIduuidThe id of the tenant it belongs to.
iduuidThe unique id. Use it in by-id routes and wherever another object refers to this one.
dateCreateddatetimeWhen it was created, in UTC.
dateUpdateddatetimeWhen it was last changed, in UTC.
{
"loomId": "3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f",
"status": "Running",
"dateCompleted": "2026-10-26T12:00:00.0000000Z",
"sourceInteractionProcessId": "3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f",
"sessionIds": [
"3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f"
],
"counts": {
"sessionsConsolidated": 0,
"episodesWoven": 0,
"threadsWoven": 0,
"threadsTightened": 0,
"threadsFrayed": 0,
"threadsMerged": 0,
"threadsSuperseded": 0,
"dreamLogsRetired": 0,
"intentionsLapsed": 0,
"tensionsFound": 0,
"themesWoven": 0,
"themesRefined": 0,
"panelsWoven": 0,
"patternsRefined": 0,
"threadsMadeOwn": 0,
"companionsLinked": 0,
"threadsEmbedded": 0
},
"dreamLog": "...",
"dreamLogThreadId": "3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f",
"error": "...",
"tokenUsage": [
{
"turnId": "3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f",
"date": "2026-10-26T12:00:00.0000000Z",
"provider": "...",
"model": "...",
"agentName": "...",
"agentId": "3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f",
"usages": [],
"finished": false,
"credentialId": "...",
"isOwnLicense": false,
"tier": "..."
}
],
"tenantId": "3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f",
"id": "3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f",
"dateCreated": "2026-10-26T12:00:00.0000000Z",
"dateUpdated": "2026-10-26T12:00:00.0000000Z"
}