feat(plugin): devagentic-vertical-preamble — auto-load vertical context on session boot (#55, G1 of devagentic#203)#59
Merged
Conversation
…+ grafted-context + worker-guardrails on session boot (closes #55, G1 of devagentic#203)
This was referenced May 24, 2026
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.
Closes #55. G1 of TechDevGroup/devagentic#203 (canonical fusion contract).
Depends on TechDevGroup/devagentic#205 (verticalContext GraphQL query). Merge that first.
Summary
plugins/devagentic-vertical-preamble/with the same shape as the existingdevagentic-canvasplugin.pre_llm_callhook auto-loads the active hermes profile's vertical context —kind:vertical-spec+kind:grafted-context+kind:worker-guardrailsdocs — and injects them as ephemeral preamble on the first LLM call of the process.user_idis loaded (or returns empty), no re-injection or re-fetch. Vertical docs are session-stable; paying token cost per turn would be waste.Why
Under NousResearch#203 §1.2, worker sessions must not read
genesis/doc.jsonldirectly or shell out topython api.py. This plugin is the hermes-native path that lands the vertical's manifest + grafted material + guardrails in the worker's context on session boot.Plugin shape
__init__.py— entrypoint + module docstringplugin.yaml— registerspre_llm_callhookclient.py— thin GraphQL client mirroringagent/devagentic_memory.pytransport (same env vars, same X-User-Id resolution, same fail-soft contract)preamble.py— the hook + renderer (caps: 2KB per graft, 8 grafts shown, 32KB total)README.md— operator docsTest plan
tests/plugins/devagentic-vertical-preamble/).Notes
None; turn proceeds without preamble. Same contract as the canvas preamble.