Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ jobs:
- uses: actions/checkout@v6
- uses: actions/checkout@v6
with:
repository: offendingcommit/hermes-agent
ref: d3b1cfe9a80531e0682b1e66752e04cea29d5d4a
repository: NousResearch/hermes-agent
ref: f80f453ae0679347e38abc917c7f94f717bf96c5
path: .hermes-agent-deployed
- uses: astral-sh/setup-uv@v8.2.0
with:
Expand All @@ -36,7 +36,7 @@ jobs:
HERMES_AGENT_PATH: ${{ github.workspace }}/.hermes-agent-deployed
run: |
test "$(git -C "$HERMES_AGENT_PATH" rev-parse HEAD)" = \
"d3b1cfe9a80531e0682b1e66752e04cea29d5d4a"
"f80f453ae0679347e38abc917c7f94f717bf96c5"
uv run python -m unittest tests.test_context_engine_contract -v

# Track forward drift against upstream main without making Amber depend on
Expand Down
14 changes: 11 additions & 3 deletions tests/test_context_engine_contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,22 @@ def handle_tool_call(self, name, args, **kwargs):

self.assertIs(manager._context_engine, engine)
self.assertEqual(summary.context_engine, "continuity-contract")
self.assertEqual(summary.context_engine_registration, "accepted")
# Stock v2026.8.13 returns no acceptance value from the public
# registrar, so the kit must not overstate the lifecycle receipt.
self.assertEqual(
summary.context_engine_registration, "declared/submitted"
)
activated = copy.deepcopy(manager._context_engine)
self.assertIsNot(activated, engine)
self.assertEqual(activated.name, engine.name)
self.assertNotIn("continuity_recover", manager._plugin_tool_names)

with self.assertRaisesRegex(RuntimeError, "context engine.*registered"):
hpk.register_plugin(ctx, (), context_engine=ContractEngine())
second_summary = hpk.register_plugin(
ctx, (), context_engine=ContractEngine()
)
self.assertEqual(
second_summary.context_engine_registration, "declared/submitted"
)
self.assertIs(manager._context_engine, engine)


Expand Down