Skip to content

Update sagents#4

Closed
nelsonkopliku wants to merge 17 commits into
scaffolded-sagentsfrom
update-sagents
Closed

Update sagents#4
nelsonkopliku wants to merge 17 commits into
scaffolded-sagentsfrom
update-sagents

Conversation

@nelsonkopliku

@nelsonkopliku nelsonkopliku commented May 7, 2026

Copy link
Copy Markdown
Member

This PR highlights the changes made to the scaffolded base content from sagents to make it a library consumable by elixir projects.

@nelsonkopliku nelsonkopliku changed the base branch from main to scaffolded-sagents May 7, 2026 12:12
@nelsonkopliku nelsonkopliku changed the base branch from scaffolded-sagents to main May 7, 2026 12:12
@nelsonkopliku nelsonkopliku changed the base branch from main to scaffolded-sagents May 7, 2026 12:24
nelsonkopliku and others added 9 commits May 8, 2026 09:09
Introduces ServerAdapter and SupervisorAdapter behaviours so tests can swap
the Sagents call sites for Mox doubles, and replaces the placeholder test
with 14 contract tests pinning the eight delegations exposed from
`AgenticRuntime`. Adds Mox + Faker, an Ecto Sandbox-backed `TestRepo`,
`TestPubSub`/`TestPresence` stubs, and migrations under `priv/test_repo/`
so the rest of the suite can be built on top.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…sistence

Brings the Conversations Ecto context, Coordinator session lifecycle,
IntegrationHelpers state machine, Factory middleware composition, and the
two Sagents persistence callbacks under test. Extends ServerAdapter with
`resume`, `get_status`, and `get_info` so IntegrationHelpers can route the
last few direct `Sagents.AgentServer` calls through a behaviour Mox can
swap. Ships a `docker-compose.yml` with a Postgres service so the suite
runs without ambient dependencies.

92 new tests; full suite is 106 tests, 0 failures.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Replaces the one-line README with a getting-started guide covering
installation, configuration, the Scope protocol, supervisor wiring, a
minimal end-to-end example, Phoenix Channel integration, the consumer
testing story, and known limitations. Adds a CI workflow that runs
formatter, compile-with-warnings-as-errors, migrations, and the test
suite against a Postgres service container on every push and PR.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant