security: projection apply ignores secret/gate warnings (warnings do not block writes) #54

Open
opened 2026-05-10 14:19:30 +02:00 by pdurlej · 2 comments
Owner

Source

3+3 review on PR #50 (feat: add controlled leviathan projection apply), merged 2026-05-10 via chain drain #52.

"secret/gate warnings do not block writes"

Problem

Projection apply path emits warnings when secret/gate-relevant conditions trip (e.g. missing approved scope, partial drift, etc.) — but the write proceeds anyway. Warnings without enforcement = security theater.

Scope

  • Identify all warning paths in applyProjection that should be hard blockers.
  • Convert them from log-only to result: blocked returns.
  • Add --allow-warnings opt-in flag for explicit operator override (with audit).
  • Document which warnings are blocking vs advisory in docs/agent-mcp-contract.md.

Non-goals

  • No removal of warnings — keep emit, change enforcement.
  • No new scope (separate p0 issue tracks projection scope).

Acceptance criteria

  • Default behavior: warnings tied to security/gate checks block the write.
  • --allow-warnings only respected if caller has elevated scope.
  • Audit event records warning + override decision.
  • Tests cover blocking, override, and replay scenarios.

Refs

  • PR #50 (chain drain via #52)
  • 3+3 review comment id 3200

Owner gates

  • --allow-warnings enabling for production: Piotr only.
## Source 3+3 review on PR #50 (`feat: add controlled leviathan projection apply`), merged 2026-05-10 via chain drain #52. > "secret/gate warnings do not block writes" ## Problem Projection apply path emits warnings when secret/gate-relevant conditions trip (e.g. missing approved scope, partial drift, etc.) — but the write proceeds anyway. Warnings without enforcement = security theater. ## Scope - Identify all warning paths in `applyProjection` that should be hard blockers. - Convert them from log-only to `result: blocked` returns. - Add `--allow-warnings` opt-in flag for explicit operator override (with audit). - Document which warnings are blocking vs advisory in `docs/agent-mcp-contract.md`. ## Non-goals - No removal of warnings — keep emit, change enforcement. - No new scope (separate p0 issue tracks projection scope). ## Acceptance criteria - Default behavior: warnings tied to security/gate checks block the write. - `--allow-warnings` only respected if caller has elevated scope. - Audit event records warning + override decision. - Tests cover blocking, override, and replay scenarios. ## Refs - PR #50 (chain drain via #52) - 3+3 review comment id 3200 ## Owner gates - `--allow-warnings` enabling for production: Piotr only.
Collaborator

Deployment evidence (Codex, 2026-06-04):

  • Deployed Kan-ductor sha-98f70e7e0cce on RS2000 using platform release compose and kan-migrate.
  • Runtime smoke passed: kan-web and kan-mcp are healthy; /mcp/health returns ok: true and upstream kanApi: "ok".
  • Code evidence at deployed commit: projection apply computes blocking warnings via getBlockingProjectionWarnings(...).
  • Non-dry-run writes with blocking warnings require the explicit override path: allowWarnings: true, confirmOverride: "allow_projection_warnings", and token scope projection:override_warnings.
  • Audit payload records warning state, including warning codes and whether warning override was used.

Recommendation: #54 is truly closed.

Deployment evidence (Codex, 2026-06-04): - Deployed Kan-ductor `sha-98f70e7e0cce` on RS2000 using platform release compose and `kan-migrate`. - Runtime smoke passed: `kan-web` and `kan-mcp` are healthy; `/mcp/health` returns `ok: true` and upstream `kanApi: "ok"`. - Code evidence at deployed commit: projection apply computes blocking warnings via `getBlockingProjectionWarnings(...)`. - Non-dry-run writes with blocking warnings require the explicit override path: `allowWarnings: true`, `confirmOverride: "allow_projection_warnings"`, and token scope `projection:override_warnings`. - Audit payload records warning state, including warning codes and whether warning override was used. Recommendation: #54 is truly closed.
Collaborator

{
"confidence": 5,
"effort_hint": "medium",
"escalation": {
"kind": "none",
"reason": ""
},
"evidence_refs": [
{
"note": "Issue reports projection apply warnings tied to secret or gate checks do not block writes.",
"type": "forgejo",
"value": "issue-title-body-labels-and-target-snapshot"
},
{
"note": "Body states warning-only enforcement lets security or gate-relevant conditions proceed anyway.",
"type": "forgejo",
"value": "issue-body-problem"
},
{
"note": "Scope converts blocking warning paths to blocked results and adds audited elevated override documentation.",
"type": "forgejo",
"value": "issue-body-scope"
}
],
"impact": 5,
"judge_actor": {
"name": "iskra",
"runtime": "openclaw"
},
"judged_at": "2026-06-08T01:14:00Z",
"labels_to_apply": [
"judge/p0",
"judge/codex-candidate"
],
"piotr_fit": "high",
"priority": "p0",
"rationale_summary": "This is P0 Codex-ready security work because gate and secret warnings must fail closed instead of allowing projection writes by default.",
"reach": 5,
"recommended_next_action": "codex_candidate",
"rerun_reason": "no_prior_judgment",
"schema": "openclaw.judge.v0",
"target": {
"kind": "issue",
"number": 54,
"repo": "pdurlej/kan-ductor"
},
"target_snapshot": {
"body_hash": "sha256:616a6bc8a32329848a6ccb6a9404d11f22b62db5e1a7e126b48668e18053807b",
"commit_count": null,
"evidence_hash": "sha256:32b5d83b152635b08b81c41b4ba5b2167f45df08eb06c86e108ec5f422944459",
"head_sha": null,
"labels": [
"3plus3-followup",
"priority:p0",
"security"
],
"labels_hash": "sha256:108b6261a9fa1681b7fbb2dafb7d389589e1dd87303b23bbb3bebb919f917115",
"state": "open",
"title_hash": "sha256:fdb6a42d27addd92a050f38db30037ac3d7e4fb283e54cfece0dc9d5db624236",
"updated_at": "2026-06-04T01:33:53+02:00"
},
"top_caveat": "Require elevated audited override for allow-warnings and keep advisory warnings clearly separate from blockers."
}

<!-- openclaw.judge.v0 --> { "confidence": 5, "effort_hint": "medium", "escalation": { "kind": "none", "reason": "" }, "evidence_refs": [ { "note": "Issue reports projection apply warnings tied to secret or gate checks do not block writes.", "type": "forgejo", "value": "issue-title-body-labels-and-target-snapshot" }, { "note": "Body states warning-only enforcement lets security or gate-relevant conditions proceed anyway.", "type": "forgejo", "value": "issue-body-problem" }, { "note": "Scope converts blocking warning paths to blocked results and adds audited elevated override documentation.", "type": "forgejo", "value": "issue-body-scope" } ], "impact": 5, "judge_actor": { "name": "iskra", "runtime": "openclaw" }, "judged_at": "2026-06-08T01:14:00Z", "labels_to_apply": [ "judge/p0", "judge/codex-candidate" ], "piotr_fit": "high", "priority": "p0", "rationale_summary": "This is P0 Codex-ready security work because gate and secret warnings must fail closed instead of allowing projection writes by default.", "reach": 5, "recommended_next_action": "codex_candidate", "rerun_reason": "no_prior_judgment", "schema": "openclaw.judge.v0", "target": { "kind": "issue", "number": 54, "repo": "pdurlej/kan-ductor" }, "target_snapshot": { "body_hash": "sha256:616a6bc8a32329848a6ccb6a9404d11f22b62db5e1a7e126b48668e18053807b", "commit_count": null, "evidence_hash": "sha256:32b5d83b152635b08b81c41b4ba5b2167f45df08eb06c86e108ec5f422944459", "head_sha": null, "labels": [ "3plus3-followup", "priority:p0", "security" ], "labels_hash": "sha256:108b6261a9fa1681b7fbb2dafb7d389589e1dd87303b23bbb3bebb919f917115", "state": "open", "title_hash": "sha256:fdb6a42d27addd92a050f38db30037ac3d7e4fb283e54cfece0dc9d5db624236", "updated_at": "2026-06-04T01:33:53+02:00" }, "top_caveat": "Require elevated audited override for allow-warnings and keep advisory warnings clearly separate from blockers." } <!-- /openclaw.judge.v0 -->
Sign in to join this conversation.
No labels
3plus3-followup
agent/claude-code
agent/codex
agent/hermes
agent/iskra
agent/ollama
agent/patchwarden
analytics
api
cockpit
dependency/blocked
dependency/blocks-others
dependency/cross-repo
dependency/needs-confirmation
docs
domain:agents
domain:ci
domain:docs
domain:forgejo
domain:infra
domain:memory
domain:runtime
domain:signal
domain:ux
flow/architecture
flow/blocked
flow/deployed
flow/done
flow/implementation
flow/intake
flow/maintained
flow/observed
flow/ready
flow/refining
flow/retired
flow/review
gemini-flash
judge/codex-candidate
judge/hermes-candidate
judge/low-confidence
judge/needs-refinement
judge/operator-needed
judge/p0
judge/p1
judge/p2
judge/p3
judge/park
judge/patchwarden-candidate
judge/stale-priority
kind/adr
kind/bug
kind/chore
kind/feature
kind/infra
kind/ops
kind/refactor
kind/research
leviathan
mcp
merge/auto
merge/manual
merge/manual-dependency-conflict
merge/manual-failing-tests
merge/manual-merge-conflict
merge/manual-missing-review
merge/manual-operator-preference
merge/manual-red-zone
merge/manual-security-sensitive
merge/manual-unclear-scope
merge/manual-unknown
mode:operator-only
mode:patchwarden-iskra-approved
mode:safe-auto
observed/erroring
observed/needs-followup
observed/pending
observed/retire-candidate
observed/unused
observed/used
ops
priority:p0
priority:p1
priority:p2
priority:p3
review:claude-reviewed
review:codex-reviewed
review:dziadek-reviewed
review:needs-human
safety
safety:external-write
safety:no-prod-mutation
safety:prod-impact
safety:secret-touch
scout
security
size/large
size/medium
size/small
size/tiny
size/unknown
small-task
source/adr
source/agent-generated
source/manual
source/operator-chat
source/voice-note
status:blocked
status:codex-ready
status:merged:pending-evidence
status:needs-evidence
status:operator-needed
status:parked
tests
tier:0-platform-substrate
tier:1-iskra-value-layer
tier:2-tools-products-modules
type:bug
type:chore
type:docs
type:feat
type:policy
type:research
ui
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pdurlej/kan-ductor#54
No description provided.