feat(agentos): registry ObjectId addressing, cascade delete, session-…#24
Merged
Conversation
…transcript fix
Registry data model + addressing
- agent_registry/_id is now a Mongo ObjectId with `name` as a separate
unique-indexed field (chat_pins/agent_policies likewise → agentName).
- Public API + SPA address agents by ObjectId (/agents/:id, agentId params);
a resolve-by-id helper maps id → registry doc → name for the name-keyed
cross-collection FKs (sessions, logs, messages, schedules, S3 prefix).
- Boot migration converts legacy string-_id rows + ensures unique indexes.
- Python/library telemetry ingest stays name-addressed (server mints _id).
Cascade delete
- Deleting an agent removes its sessions, live sandboxes, S3 snapshots,
logs, messages, schedules, and pins; per-session delete mirrors it.
Session transcript display fix
- Rebuild runtime-local harness-bundle.mjs so the pinSessionStoreKey wrapper
is actually shipped — the running harness was writing sessions._id under
the derived engine UUID instead of the harness sessionId, so the dashboard
couldn't find transcripts ("Resumed — no stored transcript").
- Harden the projectKey-suffix fallback (looseProjectKeySuffix) so agent
names with spaces match the CLI's hyphen-sanitized projectKey; recovers
transcripts orphaned under the engine UUID.
SPA
- Sidebar items are real routed pages (/agents/:id); modal legibility +
auto-close; observability default range 15m; register shows typed name.
scripts/
- drop-collections.mjs: guarded clean-slate admin tool (requires CONFIRM_DROP
to echo the DB name; dry-run otherwise).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
# Conflicts: # agentos/src/App.tsx # packages/agentos-server/src/mongo.ts
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.
…transcript fix
Registry data model + addressing
nameas a separate unique-indexed field (chat_pins/agent_policies likewise → agentName).Cascade delete
Session transcript display fix
SPA
scripts/
Summary
Type of change
Verification
pnpm -r buildcleanpnpm -r typecheckcleanpnpm -r testclean (note any flaky tests in the comment)runConformanceSuite()passes (paste report below)Versioning
pnpm changesetwas run for any change to a published packageNotes for the reviewer