feat(harness): add managed runtime readiness#72
Merged
Conversation
Move acceptance scenarios out of the mnemon-harness product command into a test-only mnemon-acceptance binary, and add command-boundary guardrails so product code does not regain acceptance semantics. Validation: go test ./harness/cmd/mnemon-harness ./harness/cmd/mnemon-acceptance ./harness/internal/coreguard; go build -o /tmp/mnemon-harness ./harness/cmd/mnemon-harness && go build -o /tmp/mnemon-hub ./harness/cmd/mnemon-hub && go build -o /tmp/mnemond ./harness/cmd/mnemond && go build -o /tmp/mnemon-acceptance ./harness/cmd/mnemon-acceptance
Replace unconditional profile rendering with a rule-derived lifecycle policy and soften derived teamwork cue wording so presentation surfaces facts and affordances instead of forcing event writes. Validation: go test ./harness/internal/mnemond/presentation; go test ./harness/internal/hostagent ./harness/internal/coreguard
Add a local managed-agent driver contract that sends only the [mnemon:wake] sentinel, records wake attempts, rejects non-local principals, and exposes a minimal mnemond agent run front door for contract validation. Validation: go test ./harness/internal/driver ./harness/cmd/mnemond ./harness/internal/coreguard
Add a mnemon-acceptance managed-runtime scenario shell that records seed-and-observe report metadata, asserts raw managed wakes stay at [mnemon:wake], and blocks real GitHub runs unless a token file is supplied. Validation: go test ./harness/cmd/mnemon-acceptance
Extend the managed wake contract with render-derived candidates, persistent local wake ledgers, and a codex-appserver turn client. Wire mnemond agent run so it can read local render context by rule, wake only the local runtime with [mnemon:wake], and record local audit evidence. Validation: go test ./harness/internal/driver ./harness/cmd/mnemond
Upgrade mnemon-acceptance managed-runtime from a dry-run shell to a real topology path for mnemonhub and GitHub mesh. The scenario seeds once through an entry agent, then records local driver wakes that use only [mnemon:wake] while hook-rendered context supplies work and integration cues. Validation: go test ./harness/cmd/mnemon-acceptance ./harness/cmd/mnemond ./harness/internal/driver
Use absolute run roots for managed acceptance and initialize managed-runtime appserver threads with generic wake instructions that render teamwork context and payload contracts before acting. This keeps [mnemon:wake] context-free while making accepted progress events reliable in both exchange modes. Validation: go test ./harness/cmd/mnemon-acceptance; go test ./harness/cmd/... ./harness/internal/driver ./harness/internal/coreguard ./harness/internal/mnemond/presentation ./harness/internal/hostagent; built mnemon-harness, mnemond, mnemon-hub, and mnemon-acceptance; live managed-runtime acceptance passed for mnemonhub and GitHub mesh.
Remove managed-runtime acceptance developer instructions and pass standard Codex prime/remind hook output through app-server additionalContext while keeping the raw managed query as [mnemon:wake]. The local env, GUIDE, and control CLI now agree on the projected Local Mnemon endpoint, and bridge stamping narrows read sets to written refs so disjoint coordination writes from one turn do not reject each other. Validation: go test ./harness/...; make harness-validate; go build -o /tmp/mnemon .; real managed-runtime acceptance passed for mnemonhub and github exchanges.
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.
Summary
[mnemon:wake]queryValidation
go test ./harness/...make harness-validatego build -o /tmp/mnemon .mnemon-acceptance managed-runtime --agent-turns --exchange mnemonhub --agents 5mnemon-acceptance managed-runtime --agent-turns --exchange github --agents 5 --github-repo mnemon-dev/mnemon-teamwork-example