Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
c8690e7
feat(biomemetics): A0 pin Mastra/CopilotKit and prove the assistant h…
cursoragent Aug 21, 2026
b383dfe
fix(biomemetics): prove A0 evals offline and typecheck the adapter
cursoragent Aug 21, 2026
c5f1b88
feat(biomemetics): prove in-process CopilotKit AG-UI bind
cursoragent Aug 21, 2026
13f968c
feat(biomemetics): add gated Mastra Luna consume lane
cursoragent Aug 21, 2026
f472510
fix(biomemetics): quarantine unpinned Codex OAuth lane
cursoragent Aug 21, 2026
12893f0
feat(biomemetics): enable gated Codex Luna consume lane
cursoragent Aug 21, 2026
ab3345e
fix(biomemetics): remove duplicate Luna pin
cursoragent Aug 21, 2026
a1a90e5
feat(biomemetics): prove A0 through OpenRouter Luna
cursoragent Aug 21, 2026
ebe0772
feat(biomemetics): gate OpenRouter Luna behind fake CI
cursoragent Aug 21, 2026
50a0856
feat(biomemetics): prove A0 through OpenRouter Luna
cursoragent Aug 21, 2026
6647b8b
test(biomemetics): require OpenRouter CareAdvice text
cursoragent Aug 21, 2026
a39b7ba
feat(biomemetics): prove A0 through Mastra OpenRouter gateway
cursoragent Aug 21, 2026
bd6e39c
feat(biomemetics): restore OpenRouter Luna at reasoning max
cursoragent Aug 21, 2026
a02d73e
feat(biomemetics): prove A0 through OpenRouter DeepSeek
cursoragent Aug 21, 2026
6cf3a9a
ci(biomemetics): run mantis-assistant prove on lab branch
cursoragent Aug 25, 2026
4a7f897
test(biomemetics): split unit fixture from live OpenRouter prove
cursoragent Aug 25, 2026
1968979
fix(biomemetics): keep CopilotKit session auth off OpenRouter
cursoragent Aug 25, 2026
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
73 changes: 73 additions & 0 deletions .github/workflows/mantis-assistant-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: mantis-assistant CI

on:
push:
branches: [feat/mantis-biomemetics-lab]
paths:
- 'projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/**'
- 'projects/biomemetics/labs/mantis/assistant/evals/**'
- 'projects/biomemetics/labs/mantis/assistant/fixtures/**'
- '.github/workflows/mantis-assistant-ci.yml'
pull_request:
branches: [feat/mantis-biomemetics-lab]
paths:
- 'projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/**'
- 'projects/biomemetics/labs/mantis/assistant/evals/**'
- 'projects/biomemetics/labs/mantis/assistant/fixtures/**'
- '.github/workflows/mantis-assistant-ci.yml'

permissions:
contents: read

env:
WORKING_DIR: projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant

jobs:
unit:
name: Unit
runs-on: ubuntu-latest
timeout-minutes: 10
defaults:
run:
working-directory: ${{ env.WORKING_DIR }}
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: '22.18.0'
cache: npm
cache-dependency-path: ${{ env.WORKING_DIR }}/package-lock.json

- name: Install
run: npm ci

- name: Typecheck
run: npm run typecheck

- name: Unit
run: npm run test:unit

prove:
name: OpenRouter DeepSeek prove
runs-on: ubuntu-latest
timeout-minutes: 20
defaults:
run:
working-directory: ${{ env.WORKING_DIR }}
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: '22.18.0'
cache: npm
cache-dependency-path: ${{ env.WORKING_DIR }}/package-lock.json

- name: Install
run: npm ci

- name: Prove
env:
OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }}
run: npm run test:live
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "urn:specimendb:biomemetics:mantis:assistant:contracts:actuation-command:v1",
"title": "Mantis actuation command",
"description": "Executable local-edge command. Distinct from ActuationIntent. Never produced by an LLM, CopilotKit action, replay, or recovered durable run. v1 live actuation remains disabled.",
"type": "object",
"additionalProperties": false,
"required": [
"schemaVersion",
"kind",
"commandId",
"intentId",
"issuedAt",
"expiresAt",
"action",
"executable",
"issuer",
"liveActuation"
],
"properties": {
"$schema": { "type": "string" },
"schemaVersion": { "const": "1.0.0" },
"kind": { "const": "ActuationCommand" },
"commandId": {
"type": "string",
"pattern": "^cmd\\.[a-z][a-z0-9.-]*$"
},
"intentId": {
"type": "string",
"pattern": "^intent\\.[a-z][a-z0-9.-]*$"
},
"issuedAt": { "type": "string", "format": "date-time" },
"expiresAt": { "type": "string", "format": "date-time" },
"action": { "type": "string", "minLength": 1 },
"executable": { "const": true },
"liveActuation": { "const": false },
"issuer": {
"enum": ["edge-supervisor", "human-local-service"],
"description": "Commands may be issued only by the local edge or a human/local service. The assistant is excluded."
},
"nonce": { "type": "string", "minLength": 1 }
},
"unevaluatedProperties": false
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "urn:specimendb:biomemetics:mantis:assistant:contracts:actuation-intent:v1",
"title": "Mantis actuation intent",
"description": "Non-executable proposed action emitted by the assistant. Distinct from ActuationCommand. Live actuation is disabled in v1.",
"type": "object",
"additionalProperties": false,
"required": [
"schemaVersion",
"kind",
"intentId",
"proposedAt",
"capabilityClass",
"action",
"executable",
"expiresAt"
],
"properties": {
"$schema": { "type": "string" },
"schemaVersion": { "const": "1.0.0" },
"kind": { "const": "ActuationIntent" },
"intentId": {
"type": "string",
"pattern": "^intent\\.[a-z][a-z0-9.-]*$"
},
"runId": {
"type": "string",
"pattern": "^run\\.[a-z][a-z0-9.-]*$"
},
"proposedAt": { "type": "string", "format": "date-time" },
"expiresAt": { "type": "string", "format": "date-time" },
"capabilityClass": { "enum": ["P3", "P4", "P5"] },
"action": { "type": "string", "minLength": 1 },
"executable": { "const": false },
"rationale": { "type": "string" }
},
"unevaluatedProperties": false
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "urn:specimendb:biomemetics:mantis:assistant:contracts:actuation-receipt:v1",
"title": "Mantis actuation receipt",
"description": "Result of an ActuationCommand. Distinct from intent and command. Absence of a receipt is not success.",
"type": "object",
"additionalProperties": false,
"required": [
"schemaVersion",
"kind",
"receiptId",
"commandId",
"recordedAt",
"disposition"
],
"properties": {
"$schema": { "type": "string" },
"schemaVersion": { "const": "1.0.0" },
"kind": { "const": "ActuationReceipt" },
"receiptId": {
"type": "string",
"pattern": "^rcpt\\.[a-z][a-z0-9.-]*$"
},
"commandId": {
"type": "string",
"pattern": "^cmd\\.[a-z][a-z0-9.-]*$"
},
"intentId": {
"type": "string",
"pattern": "^intent\\.[a-z][a-z0-9.-]*$"
},
"recordedAt": { "type": "string", "format": "date-time" },
"disposition": {
"enum": ["accepted", "rejected", "expired", "faulted", "not-run"]
},
"detail": { "type": "string" }
},
"unevaluatedProperties": false
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "urn:specimendb:biomemetics:mantis:assistant:contracts:assistant-run:v1",
"title": "Mantis assistant run receipt",
"description": "Pinned package, model, config, tool, memory, and workflow versions for one assistant run. Observational memory on this receipt is assistant-memory, never observation or evidence.",
"type": "object",
"additionalProperties": false,
"required": [
"schemaVersion",
"kind",
"runId",
"startedAt",
"mode",
"resourceId",
"threadId",
"versions",
"memoryRecordClass"
],
"properties": {
"$schema": { "type": "string" },
"schemaVersion": { "const": "1.0.0" },
"kind": { "const": "AssistantRun" },
"runId": {
"type": "string",
"pattern": "^run\\.[a-z][a-z0-9.-]*$"
},
"traceId": { "type": "string", "minLength": 1 },
"startedAt": { "type": "string", "format": "date-time" },
"endedAt": { "type": "string", "format": "date-time" },
"mode": {
"enum": [
"care",
"observe",
"research",
"terrarium-read",
"review",
"service-sim"
]
},
"resourceId": { "type": "string", "minLength": 1 },
"threadId": {
"type": "string",
"pattern": "^care:[a-z][a-z0-9.-]*:[a-z][a-z0-9.-]*$"
},
"careSubjectId": {
"type": "string",
"pattern": "^care\\.[a-z][a-z0-9.-]*$"
},
"agentId": { "type": "string", "minLength": 1 },
"workflowId": { "type": "string", "minLength": 1 },
"memoryRecordClass": { "const": "assistant-memory" },
"versions": {
"type": "object",
"additionalProperties": false,
"required": [
"mastraCore",
"copilotkitRuntime",
"aguiMastra",
"effect",
"typescript",
"model",
"controllerConfig",
"tools",
"memory",
"workflow"
],
"properties": {
"mastraCore": { "type": "string", "minLength": 1 },
"copilotkitRuntime": { "type": "string", "minLength": 1 },
"aguiMastra": { "type": "string", "minLength": 1 },
"effect": { "type": "string", "minLength": 1 },
"typescript": { "type": "string", "minLength": 1 },
"model": { "type": "string", "minLength": 1 },
"controllerConfig": { "type": "string", "minLength": 1 },
"tools": { "type": "string", "minLength": 1 },
"memory": { "type": "string", "minLength": 1 },
"workflow": { "type": "string", "minLength": 1 }
}
},
"cost": {
"type": "object",
"additionalProperties": false,
"properties": {
"inputTokens": { "type": "integer", "minimum": 0 },
"outputTokens": { "type": "integer", "minimum": 0 }
}
}
},
"unevaluatedProperties": false
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "urn:specimendb:biomemetics:mantis:assistant:contracts:care-advice:v1",
"title": "Mantis care advice",
"description": "Non-executable sourced guidance. Numerical prescriptions require a reviewed source and applicability, otherwise they are withheld.",
"type": "object",
"additionalProperties": false,
"required": [
"schemaVersion",
"kind",
"adviceId",
"careSubjectId",
"issuedAt",
"expiresAt",
"capabilityClass",
"statements",
"confidence",
"executable"
],
"properties": {
"$schema": { "type": "string" },
"schemaVersion": { "const": "1.0.0" },
"kind": { "const": "CareAdvice" },
"adviceId": {
"type": "string",
"pattern": "^advice\\.[a-z][a-z0-9.-]*$"
},
"careSubjectId": {
"type": "string",
"pattern": "^care\\.[a-z][a-z0-9.-]*$"
},
"runId": {
"type": "string",
"pattern": "^run\\.[a-z][a-z0-9.-]*$"
},
"issuedAt": { "type": "string", "format": "date-time" },
"expiresAt": { "type": "string", "format": "date-time" },
"capabilityClass": { "enum": ["P0", "P1", "P2"] },
"executable": { "const": false },
"confidence": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"statements": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"additionalProperties": false,
"required": ["text", "kind", "numerical", "withheld"],
"properties": {
"text": { "type": "string", "minLength": 1 },
"kind": {
"enum": ["do-now", "buy", "offer-amount", "warning", "reminder"]
},
"numerical": { "type": "boolean" },
"withheld": { "type": "boolean" },
"sources": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": ["id", "applicability"],
"properties": {
"id": { "type": "string", "minLength": 1 },
"applicability": {
"enum": ["applies", "partial", "unknown"]
}
}
}
}
},
"allOf": [
{
"if": {
"properties": { "numerical": { "const": true }, "withheld": { "const": false } },
"required": ["numerical", "withheld"]
},
"then": {
"required": ["sources"],
"properties": {
"sources": { "type": "array", "minItems": 1 }
}
}
}
]
}
}
},
"unevaluatedProperties": false
}
Loading
Loading