Repository navigation
feat(mantis-assistant): add constrained specialist hierarchy - #104
Merged
creatifcoding merged 4 commits intoAug 30, 2026
Merged
creatifcoding merged 4 commits into
creatifcoding merged 4 commits into
Conversation
Nine inspectable manifests, a policy dry-run delegate path, and a thread-scoped assistant-memory ledger live in assistant/hierarchy. forked true, device-command, mode elevation, self-admission, confirmed taxon, and specimen mint fail closed. Observer/reflector stays quarantined. This does not edit the A0 harness, A1 app, A3 workflows, or A5 evidence queue. Co-authored-by: digicoder <creatifcoding@users.noreply.github.com>
Remove running/timeout/cancelled variants the dry-run never constructs, drop the unused authorize policy argument, and drop the unused forbidden-tools path remap. Tests still pass 33. Co-authored-by: digicoder <creatifcoding@users.noreply.github.com>
GitHub had no check on this package. Path filters keep the job off sibling slices. No live-model secret. Co-authored-by: digicoder <creatifcoding@users.noreply.github.com>
Replace hierarchy-ci.yml with mantis-assistant-a2.yml. Same npm ci, typecheck, and test. No live-model secret. Co-authored-by: digicoder <creatifcoding@users.noreply.github.com>
creatifcoding
marked this pull request as ready for review
August 30, 2026 02:08
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Draft A2 slice for #52 (parent #49). Inspectable specialist registry, delegation policy, and thread-scoped assistant-memory ledger. Stay draft. Do not merge until
Mantis Assistant A2 / agent-tree-limitsis green.Why
MantisControllerstill only stubs hierarchy.delegaterejectsforked: trueand does nothing else. OM is not a ledger. This package puts the nine-specialist table and the memory rules behind the controller without editing the A0 harness.A keeper later gets bounded specialist choice and conversation continuity that cannot become care truth. The next engineer inherits one
openHierarchyobject instead of a second copy of the pin.GitHub had no A2-named check.
.github/workflows/mantis-assistant-a2.ymlis that check. Jobagent-tree-limitsruns the existing dry-run hierarchy tests.Scope
Write-set is
projects/biomemetics/labs/mantis/assistant/hierarchy/**plus.github/workflows/mantis-assistant-a2.yml.In:
@tmnl/mantis-assistant-hierarchywithopenHierarchymanifests/hierarchy/policies/(specialist-registry,delegation,observational-memory)imported-a0/copies so this slice verifies without merging sibling PRsdelegate, append-only OM ledger, supersession, forget/exportagent-tree-limits, that runsnpm ci,npm run typecheck, andnpm testin the hierarchy packageOut:
tooling/typescript/mantis-assistantand A0 contracts/policies (PR 100)app/**, golden-care,docs/OFFLINE.md(PR 98)mantis-workflow-lab(PR 101)runtimeUrlOPENROUTER_API_KEYDefault execution is a policy dry-run. It does not call a model. Live observer/reflector stays
QUARANTINED_UPSTREAM.Tradeoffs
We accept a dry-run in place of a Mastra subagent call so A2 can prove deny cases without the A0 package and without a CopilotKit URL.
We duplicate specialist and mode string unions in this package so we never import
@tmnl/mantis-assistant.The CI job copies the A5 path-filtered npm shape, not A0's live prove job. Last turn's
mantis-assistant-hierarchy-ci.ymlis gone so this PR has one check name.Blast Radius
Reviewers of
assistant/hierarchyand this one workflow file. Parallel A0/A1/A3/A4/A5 drafts should merge without path fights.Failed
openHierarchyrefuses the whole registry. A rejected delegate does not write OM.The new check runs only when hierarchy files or this workflow change.
Verification
From
projects/biomemetics/labs/mantis/assistant/hierarchy:npm run typecheckcleannpm test33 passed (registry, delegation denies, OM supersession/export, isolation scan, eval datasets)Isolation scan fails if src imports
@tmnl/mantis-assistant,@mastra,@copilotkit, or namesruntimeUrl/agent.generate.GitHub job
Mantis Assistant A2 / agent-tree-limitsmust be green before merge. Stay draft until then. Independent review is later.