K8: add explicit provider policy selection diagnostics - #3
Merged
Conversation
added 7 commits
August 1, 2026 19:10
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
K8 product enforcement now fails closed when a worker-scoped Kanban task has no
HERMES_KANBAN_PROVIDER_POLICYartifact. The worker CLI raises before provider routing instead of allowing a policy-bound execution to bypass enforcement.This preserves the existing behavior for malformed, inactive, non-routable, unknown, and disallowed-model routes, while adding an explicit regression for the missing-artifact boundary.
Validation
python3 -m pytest -q tests/hermes_cli/test_kanban_provider_policy.py tests/hermes_cli/test_kanban_policy_runtime.py— 17 passed.py_compileandgit diff --checkpassed.Senior gate
09597eb0f3df7a0f1581f1d65980eb6f2c300a79.codex-senior-consultv3 execution:02d8dead-3306-4b42-b53a-4f3bfc1d0a61.accept;safe_to_merge=true; blocking findings: none.arumihsnek/my-hermes-config#23is merged as3b850fe356a4bfd6c9ae466164c8959a9aaf87be, with the accepted config tree verified equivalent to9acd7893b8f4462a0ccb04c62d62b80d0ad226ef.747e6a7b-9f41-4681-98f2-d9351b958c57—accept,safe_to_merge=true.Evidence boundary
The validation is offline/synthetic. No new provider live test was performed and no credentials were read. Historical live evidence remains limited to
openai-codex/gpt-5.6-luna; unproven routes remain inactive and non-routable in configuration.Post-config offline verification passed against the merged configuration tree: policy preflight ready, inactive routes blocked, missing/malformed policy blocked, and provider calls/protected-value reads/lifecycle mutations all zero.