Skip to content

feat(agentstack): add @logicsrc/agentstack coordination module#5

Open
ralyodio wants to merge 2 commits into
masterfrom
agentstack-module
Open

feat(agentstack): add @logicsrc/agentstack coordination module#5
ralyodio wants to merge 2 commits into
masterfrom
agentstack-module

Conversation

@ralyodio

@ralyodio ralyodio commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

What

Adds @logicsrc/agentstack — the LogicSRC module for portable agent, task, payment, and reputation coordination across Profullstack apps (sh1pt, uGig, qaaas.dev, crawlproof, commandboard.run, coinpayportal, logicsrc, intr0s).

It is the reference implementation of the agentstack capability in the Profullstack Shared AppKit OpenSpec (profullstack-web/openspec/specs/agentstack, see profullstack-web PR #4).

Module surface

  • DID helpersuserDid / agentDid / makeDid / parseDid (did:coinpay:user:123, did:coinpay:agent:abc).
  • DidTask — portable task model with lifecycle pending → queued → running → blocked → complete | failed | cancelled, bindable to paymentIntentId / escrowId / reputationEventId.
  • AgentStack — in-memory coordinator: registerAgent, createTask, assignTask, updateTaskStatus, delegate/revokeDelegation, listTasks, snapshot, on (event listeners).
  • agentStackPlugin — a LogicSRC PluginDefinition validated against the plugin manifest schema (routes, events, permissions, TUI panel).

Wiring

  • Added to the root build chain right after @logicsrc/plugin-core (its only dependency).
  • docs/agentstack.md + a mention in docs/openspec-comparison.md.

Verification

  • npm --workspace @logicsrc/agentstack run build ✅ (clean tsc)
  • npm --workspace @logicsrc/agentstack test9/9 vitest cases pass (DID helpers, manifest validity, task lifecycle, terminal-status guard, delegation events, filters).

🤖 Generated with Claude Code

AgentStack is the LogicSRC module for portable agent, task, payment, and
reputation coordination across Profullstack apps. Reference implementation of
the `agentstack` capability in the Profullstack Shared AppKit OpenSpec.

- packages/agentstack: DID helpers (did:coinpay:user/agent), DidTask model +
  lifecycle, AgentStack in-memory coordinator (agents, tasks, delegation,
  events), and a validated LogicSRC plugin definition. 9 vitest cases.
- Wire @logicsrc/agentstack into the root build chain (after plugin-core).
- docs/agentstack.md + mention in openspec-comparison.md.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

vu1nz Security Review

0 finding(s) in PR #?

No security issues found.

…+ browser)

Matches the revised Shared AppKit PRD's Runtime Compatibility Strategy.
AgentStack is runtime-neutral (no Bun/Node-only APIs; time is injected).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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