Add Goblin control primitive (docs + minimal runtime helper)#7
Add Goblin control primitive (docs + minimal runtime helper)#7louspringer wants to merge 3 commits into
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2c5cc2ea3d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| return { | ||
| "type": "GoblinEvent", | ||
| "severity": max(severity, 2), | ||
| "action": "block" if severity >= 3 else "gate" |
There was a problem hiding this comment.
Block irreversible actions on Goblin detection
The new runtime helper emits "action": "gate" for severity 2 (including the default detect_goblin(True) path), which conflicts with the contract added in docs/goblin-control-primitive.md (IF inconsistency_detected ... block irreversible actions). If downstream code relies on the action field to enforce safeguards, the default inconsistency case will not block irreversible operations, weakening the control primitive exactly when it should fail safe.
Useful? React with 👍 / 👎.
Implements Issue #6 as an initial operational binding.
Includes:
Goal: move Goblin from concept → executable signal.
Next steps: