Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,16 @@ Keep it short, stable, and helper-oriented. Deep runbooks belong in checked-in d
- `node tools/npm/run-script.mjs handoff:entrypoint:check` refreshes the machine-readable index at `tests/results/_agent/handoff/entrypoint-status.json`.
- `node tools/npm/run-script.mjs priority:handoff` prints that machine-readable index and
`tests/results/_agent/verification/docker-review-loop-summary.json`.
- `node tools/npm/run-script.mjs priority:continuity` refreshes the continuity receipts at
`tests/results/_agent/runtime/continuity-telemetry.json` and
`tests/results/_agent/handoff/continuity-summary.json`.
- `node tools/npm/run-script.mjs priority:pivot:template` evaluates the future-agent-only pivot from queue-empty
release-candidate state into `LabviewGitHubCiTemplate`.
- Primary live-state artifacts:
- `.agent_priority_cache.json`
- `tests/results/_agent/issue/router.json`
- `tests/results/_agent/issue/no-standing-priority.json`
- `tests/results/_agent/handoff/continuity-summary.json`
- `tests/results/_agent/handoff/entrypoint-status.json`
- `tests/results/_agent/runtime/`

Expand Down
1 change: 1 addition & 0 deletions AGENT_HANDOFF.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ Live repository state belongs in the machine-generated artifacts under
- `tests/results/_agent/issue/router.json`
- `tests/results/_agent/issue/no-standing-priority.json`
- `tests/results/_agent/verification/docker-review-loop-summary.json`
- `tests/results/_agent/handoff/continuity-summary.json`
- `tests/results/_agent/handoff/entrypoint-status.json`
- `tests/results/_agent/handoff/human-go-no-go-latest.json`
- `tests/results/_agent/handoff/*.json`
Expand Down
4 changes: 4 additions & 0 deletions docs/DEVELOPER_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,10 @@ pwsh -File tools/Print-AgentHandoff.ps1 -ApplyToggles -AutoTrim
- Refreshes `tests/results/_agent/handoff/entrypoint-status.json` so the
standard handoff command also writes the canonical machine-readable entrypoint
index for future agents.
- Refreshes `tests/results/_agent/runtime/continuity-telemetry.json` and the
mirrored `tests/results/_agent/handoff/continuity-summary.json` so operator
quiet periods are scored from unattended evidence instead of being treated as
an implicit reset.
- Auto-trim policy: if `needsTrim=true`, watcher logs are trimmed to the last ~4000 lines when either
`-AutoTrim` is passed or `HANDOFF_AUTOTRIM=1` is set. Dev watcher also trims on start.
- Trim thresholds: ~5MB per log file; only oversized logs are trimmed.
Expand Down
5 changes: 5 additions & 0 deletions docs/knowledgebase/Agent-Handoff-Surfaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ entrypoint and machine-generated live state.
output.
- It refreshes `tests/results/_agent/handoff/entrypoint-status.json`, which is
the canonical machine-readable index for future agents.
- It refreshes `tests/results/_agent/runtime/continuity-telemetry.json` and the
mirrored handoff summary `tests/results/_agent/handoff/continuity-summary.json`
so operator quiet periods can be measured without being mistaken for a reset.
- It also refreshes the standing-priority summary, router copy, watcher
telemetry, Docker/Desktop verification summary mirror, and session capsule
surfaces under `tests/results/_agent/`.
Expand All @@ -37,6 +40,8 @@ entrypoint and machine-generated live state.
- `tests/results/_agent/issue/standing-lane-reconciliation-*.json`
- `tests/results/_agent/issue/no-standing-priority.json`
- `tests/results/_agent/verification/docker-review-loop-summary.json`
- `tests/results/_agent/runtime/continuity-telemetry.json`
- `tests/results/_agent/handoff/continuity-summary.json`
- `tests/results/_agent/handoff/entrypoint-status.json`
- `tests/results/_agent/handoff/docker-review-loop-summary.json`
- `tests/results/_agent/handoff/*.json`
Expand Down
321 changes: 321 additions & 0 deletions docs/schemas/continuity-telemetry-report-v1.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,321 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Continuity telemetry report",
"type": "object",
"additionalProperties": false,
"required": [
"schema",
"generatedAt",
"repoRoot",
"status",
"issueContext",
"continuity",
"sources",
"artifacts"
],
"properties": {
"schema": {
"const": "priority/continuity-telemetry-report@v1"
},
"generatedAt": {
"type": "string",
"format": "date-time"
},
"repoRoot": {
"type": "string",
"minLength": 1
},
"status": {
"type": "string",
"enum": [
"maintained",
"at-risk",
"stale"
]
},
"issueContext": {
"type": "object",
"additionalProperties": false,
"required": [
"mode",
"issue",
"present",
"fresh",
"observedAt",
"reason"
],
"properties": {
"mode": {
"type": "string",
"enum": [
"issue",
"queue-empty",
"missing"
]
},
"issue": {
"type": [
"integer",
"null"
]
},
"present": {
"type": "boolean"
},
"fresh": {
"type": "boolean"
},
"observedAt": {
"type": [
"string",
"null"
],
"format": "date-time"
},
"reason": {
"type": [
"string",
"null"
]
}
}
},
"continuity": {
"type": "object",
"additionalProperties": false,
"required": [
"status",
"preservedWithoutPrompt",
"promptDependency",
"unattendedSignalCount",
"quietPeriod",
"recommendation"
],
"properties": {
"status": {
"type": "string",
"enum": [
"maintained",
"at-risk",
"stale"
]
},
"preservedWithoutPrompt": {
"type": "boolean"
},
"promptDependency": {
"type": "string",
"enum": [
"low",
"medium",
"high"
]
},
"unattendedSignalCount": {
"type": "integer",
"minimum": 0
},
"quietPeriod": {
"type": "object",
"additionalProperties": false,
"required": [
"status",
"continuityReferenceAt",
"silenceGapSeconds",
"operatorQuietPeriodTreatedAsPause"
],
"properties": {
"status": {
"type": "string",
"enum": [
"covered",
"degrading",
"broken"
]
},
"continuityReferenceAt": {
"type": [
"string",
"null"
],
"format": "date-time"
},
"silenceGapSeconds": {
"type": [
"integer",
"null"
],
"minimum": 0
},
"operatorQuietPeriodTreatedAsPause": {
"type": "boolean"
}
}
},
"recommendation": {
"type": "string",
"minLength": 1
}
}
},
"sources": {
"type": "object",
"additionalProperties": false,
"required": [
"writerLease",
"router",
"noStanding",
"handoffEntrypoint",
"sessions",
"deliveryState",
"observerHeartbeat"
],
"properties": {
"writerLease": {
"$ref": "#/$defs/source"
},
"router": {
"$ref": "#/$defs/source"
},
"noStanding": {
"$ref": "#/$defs/source"
},
"handoffEntrypoint": {
"$ref": "#/$defs/source"
},
"sessions": {
"$ref": "#/$defs/sessionSource"
},
"deliveryState": {
"$ref": "#/$defs/source"
},
"observerHeartbeat": {
"$ref": "#/$defs/source"
}
}
},
"artifacts": {
"type": "object",
"additionalProperties": false,
"required": [
"runtimePath",
"handoffPath"
],
"properties": {
"runtimePath": {
"type": "string",
"minLength": 1
},
"handoffPath": {
"type": "string",
"minLength": 1
}
}
}
},
"$defs": {
"source": {
"type": "object",
"additionalProperties": true,
"required": [
"path",
"exists",
"observedAt",
"ageSeconds",
"freshnessThresholdSeconds",
"fresh",
"error"
],
"properties": {
"path": {
"type": "string",
"minLength": 1
},
"exists": {
"type": "boolean"
},
"observedAt": {
"type": [
"string",
"null"
],
"format": "date-time"
},
"ageSeconds": {
"type": [
"integer",
"null"
],
"minimum": 0
},
"freshnessThresholdSeconds": {
"type": "integer",
"minimum": 1
},
"fresh": {
"type": "boolean"
},
"error": {
"type": [
"string",
"null"
]
}
}
},
"sessionSource": {
"type": "object",
"additionalProperties": false,
"required": [
"path",
"exists",
"observedAt",
"ageSeconds",
"freshnessThresholdSeconds",
"fresh",
"count",
"latestPath"
],
"properties": {
"path": {
"type": "string",
"minLength": 1
},
"exists": {
"type": "boolean"
},
"observedAt": {
"type": [
"string",
"null"
],
"format": "date-time"
},
"ageSeconds": {
"type": [
"integer",
"null"
],
"minimum": 0
},
"freshnessThresholdSeconds": {
"type": "integer",
"minimum": 1
},
"fresh": {
"type": "boolean"
},
"count": {
"type": "integer",
"minimum": 0
},
"latestPath": {
"type": [
"string",
"null"
]
}
}
}
}
}
2 changes: 2 additions & 0 deletions docs/schemas/handoff-entrypoint-status-v1.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
"router",
"noStandingPriority",
"dockerReviewLoopSummary",
"continuitySummary",
"entrypointStatus",
"handoffGlob",
"sessionGlob"
Expand All @@ -101,6 +102,7 @@
"router": { "type": "string", "minLength": 1 },
"noStandingPriority": { "type": "string", "minLength": 1 },
"dockerReviewLoopSummary": { "type": "string", "minLength": 1 },
"continuitySummary": { "type": "string", "minLength": 1 },
"entrypointStatus": { "type": "string", "minLength": 1 },
"handoffGlob": { "type": "string", "minLength": 1 },
"sessionGlob": { "type": "string", "minLength": 1 }
Expand Down
Loading
Loading