Skip to content

v0.2.0: Semantic DAG integration#37

Merged
ApiliumDevTeam merged 7 commits intomainfrom
dev
Mar 13, 2026
Merged

v0.2.0: Semantic DAG integration#37
ApiliumDevTeam merged 7 commits intomainfrom
dev

Conversation

@ApiliumDevTeam
Copy link
Collaborator

Summary

  • Semantic DAG: full audit trail, time-travel, and verifiable history for the knowledge graph
  • 10 MCP tools + 2 resources + dag-audit prompt — enabled by default, opt-out via config
  • 10 CLI subcommands (mayros dag) with interactive prune confirmation
  • 12 CortexClient DAG methods with typed DTOs
  • Production hardening: authToken consistency across all MCP tools, 30s request timeouts, client lifecycle cleanup in all CLI modules
  • Default port fix: 8080 → 19090 across 12 CLI modules
  • postinstall binary rename: handles platform-suffixed binaries from GitHub Releases
  • Requires AIngle Cortex >= 0.6.1

Test plan

  • 149/149 MCP server tests passing
  • 11855 total tests, 0 failures
  • All 10 DAG CLI commands verified against live Cortex v0.6.1
  • Verified postinstall binary rename with real GitHub Release tarball
  • Prune confirmation flow verified (interactive + --yes)

ApiliumDevTeam and others added 7 commits March 13, 2026 18:27
12 CortexClient DAG methods, 10 MCP tools, 10 CLI subcommands,
2 DAG resources, and dag-audit prompt for full audit trail,
time-travel, and verifiable history on the knowledge graph.

Production hardening: request timeouts on all MCP fetches,
parallel triple/stats operations, client lifecycle cleanup
in all 7 CLI modules, prune confirmation prompt, input
validation fixes, and Cortex offline resilience.

Requires AIngle Cortex >= 0.6.0.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Remove unused imports (getWorkflowDef, ErrorCodes, CortexClient)
and cast params to String in dag-tools template literals.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
v0.6.0 release binaries did not include the `dag` feature.
v0.6.1 ships with DAG endpoints enabled by default.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Default port was 8080 in cortex-resolution.ts but Cortex runs on
19090 since v0.1.6. All 12 CLI help strings now show 19090.

postinstall.mjs now renames platform-suffixed binaries
(e.g. aingle-cortex-macos-aarch64 → aingle-cortex) matching
the logic already in cortex-update-check.ts.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
DAG tools and resources register automatically unless explicitly
disabled via cortex.dag.enabled = false in config.

- DagConfig type + parseDagConfig() in cortex-config.ts
- Conditional DAG tool registration in MCP server (10 tools)
- Conditional DAG resource wiring (tips, stats) in service lifecycle
- Pass authToken to all MCP tool factories (memory, cortex, DAG)
  — fixes silent auth failure for memory/cortex tools

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
MockCortexClient was missing destroy(), causing 7 test failures
after the client lifecycle cleanup in the CLI refactor.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
## Summary

- **12 CortexClient DAG methods**: tips, action, history, chain, stats,
prune, at, diff, export, sync, syncPull, verify
- **10 MCP tools** with 30s timeouts, auth support, and Cortex-offline
resilience — enabled by default, opt-out via `cortex.dag.enabled =
false`
- **10 CLI subcommands** (`mayros dag
tips|action|history|chain|stats|export|diff|at|verify|prune`) with
interactive prune confirmation
- **2 MCP resources** (`dag/tips`, `dag/stats`) wired in service
lifecycle
- **dag-audit prompt** for guided audit workflows
- **Default port fix**: 8080 → 19090 across 12 CLI modules and
`cortex-resolution.ts`
- **postinstall binary rename**: handles platform-suffixed binaries from
GitHub Releases
- **authToken consistency**: all MCP tool factories (memory, cortex,
DAG) now receive auth token
- **Requires AIngle Cortex >= 0.6.1** (DAG compiled in by default)
- **sync-cli test fix**: 7 broken tests from missing `destroy()` in mock

## Test plan

- [x] 149/149 MCP server tests passing (dag-tools: 28 tests)
- [x] 7/7 sync-cli tests passing (was 0/7)
- [x] 11855 total tests, 0 failures
- [x] TypeScript type check — no new errors in modified files
- [x] Verified all 10 DAG CLI commands against live Cortex v0.6.1
- [x] Verified postinstall binary rename with real GitHub Release
tarball
- [x] Verified DAG tools register by default, skip when `dag.enabled =
false`
- [x] Verified prune confirmation flow (interactive + `--yes` flag)
@ApiliumDevTeam ApiliumDevTeam merged commit 7f9deca into main Mar 13, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant