Stage339 integrates earlier QSP decision capabilities into the Stage338 behavior decision layer.
Stage339 connects:
- Stage338: Behavior Decision
- Stage268: Trust Score
- Stage269: Trust Decision
- Stage284: Deterministic Protocol Decision
- Stage299: Signature-Aware Gate
- Stage305: Policy Engine
- Stage306: Action Gate
- Stage328: Evidence Match Gate
Expected Behavior
↓
Actual Behavior
↓
pass / fail / unknown
↓
trust score
↓
evidence match
↓
signature gate
↓
policy result
↓
action
Decision Output
Stage339 outputs:
accept
pending
reject
and maps them to:
allow
warn
block
Public Files
docs/behavior/behavior_decision.json
docs/behavior/unified_qsp_policy.json
docs/behavior/unified_qsp_input.json
docs/behavior/unified_qsp_behavior_policy_action_result.json
docs/index.html
Private Files
The following are intentionally excluded from GitHub:
core/
private/
private_core/
.venv/
venv/
.env
secret keys
Safety Boundary
Stage339 does not publish:
attack code
dangerous prompts
exploit payloads
bypass procedures
automated attack logic
Meaning
Stage338 produced a behavior decision:
pass / fail / unknown
Stage339 turns that behavior decision into a unified QSP policy action:
pass → accept → allow
fail → reject → block
unknown → reject → block
error → reject → block
This stage is fail-closed.
License
MIT License
Copyright (c) 2025 Motohiro Suzuki
## Deterministic Protocol Proof
Stage339 strengthens the Stage284 integration.
Instead of only declaring:
```json
{
"deterministic": true
}
Stage339 verifies deterministic behavior by evaluating the same canonical input twice.
same canonical input
↓
first decision hash
↓
second decision hash
↓
same_input_same_output
If both decision hashes match, the result is deterministic.
Public output:
docs/behavior/unified_qsp_behavior_policy_action_result.json