Skip to content

docs(design): add LOG_ONLY mode design doc - #310

Merged
akujane merged 6 commits into
strands-agents:mainfrom
akujane:log-only-design
Nov 6, 2026
Merged

akujane merged 6 commits into
strands-agents:mainfrom
akujane:log-only-design

Conversation

@akujane

@akujane akujane commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Description

Adds the design doc for a box-wide LOG_ONLY mode: team/designs/0005-log-only-mode.md.

Today a policy in Box either enforces right away or isn't used, so there's no safe way to trial a generated policy. LOG_ONLY evaluates the policy on every action as if enforced, but its denials don't block. Box records what would have happened, so a builder can watch the results and then switch to enforcement. It matches AgentCore's LOG_ONLY.

The doc proposes the behavior, six key decisions (including the setting on the policy key and the record fields), and an implementation sketch. Review on this PR is the design review.

Type of Change

Documentation update

Testing

Docs-only change; no code touched, so just check doesn't apply. main CI is currently red for an unrelated reason (#266).

Checklist

  • I have read the CONTRIBUTING document
  • I have reviewed and understand every line of code in this PR, including any generated by AI tools, and I can explain why it works
  • My change is focused and reasonably small; I have split unrelated work into separate PRs
  • I have added any necessary tests that prove my fix is effective or my feature works
  • I have updated the documentation accordingly
  • My changes generate no new warnings

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@github-actions github-actions Bot added documentation Improvements or additions to documentation Area - policy-engine labels Nov 4, 2026
Comment thread team/designs/0005-log-only-mode.md Resolved
Comment thread team/designs/0005-log-only-mode.md Resolved
Comment thread team/designs/0005-log-only-mode.md Resolved
Comment thread team/designs/0005-log-only-mode.md Resolved
Comment thread team/designs/0005-log-only-mode.md Resolved
Comment thread team/designs/0005-log-only-mode.md Resolved
Comment thread team/designs/0005-log-only-mode.md Resolved
Comment thread team/designs/0005-log-only-mode.md Resolved
@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown

Assessment: Request Changes

I reviewed the design at a159e32 against the code it names and the written decisions. The main problem: log-only mode turns off more than the doc says, because on the interpreter and metadata paths the policy is the only protection. Two parts of the implementation sketch also don't match how decisions and records flow today.

Review Categories
  • Scope of what relaxes: Lines 12, 21 and 116 assume protections that sit outside the policy. For the interpreters and cloud metadata, those protections don't exist (inline on L116).
  • Implementation sketch accuracy: A per-tool MCP call skips decide_request. Records are written by each enforcement point through EffectiveDecision, not by the observer, so KD 3 needs changes at each point (inline on L122 and L125).
  • Written rules: Three policy-crate and decisions.md rules beyond the named premise need to be part of the approval (inline on L60).

Assumptions and rules I checked that held:

  • The string policy = "..." form stays backward compatible, and the table form refuses unknown fields.
  • PolicyPending and InternalFault stay fail-closed (KD 5 matches DenyReason).
  • An ordinary Dogwood deny returns a RequestId, so a flipped action can still record ::response (KD 4).
  • reload() swaps only the policy text, so the mode stays fixed for the run (KD 6).
  • The RECORD_VERSION bump is named.

The per-decision enforced design and the policy_installed mode both answer the earlier review threads well.

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown

Assessment: Request Changes

I re-reviewed at 576d307. All four earlier findings are addressed. One new defect remains: in multi-leg attempts the not-enforced record is lost, so a trial can report zero flips for an action that enforce mode refuses (inline on L156).

Earlier findings, status at 576d307
  • Floors and exposure (was Critical): Resolved. The doc took option (b). The success criteria, the diagram, Proposed behavior, the stderr line and Limitations now name the reachable-paths-only floor and the exposure of credentials, cloud metadata, exfiltration and credential-bound destinations.
  • refine_tool_call bypass: Resolved. The flip now goes after conclude on both paths. Degraded-tool denials with no request id are excluded in KD 5.
  • Records come from EffectiveDecision: Resolved, except for the multi-leg case in the new inline comment.
  • Written rules: Resolved. The four rules and the frozen-façade builder method are listed, and a decisions.md entry is committed.

Assumptions and rules I checked that held:

  • refine_tool_call returns only a Decision, so pairing a per-tool flip with the mcp:call admission's request id is consistent.
  • The reachable-paths floor runs after the engine in ReachFloor, so it still refuses in log-only mode.
  • Single-leg Shell, Monty and host gates read one observation, so gate_permit can tell a flip from the captured Deny.
  • KD 2 through KD 6 are unchanged from my earlier review and still hold.

Comment thread team/designs/0005-log-only-mode.md Resolved
@akujane
akujane requested a review from ferdingler November 6, 2026 19:17
@github-actions github-actions Bot mentioned this pull request Nov 6, 2026
8 tasks done
@akujane
akujane merged commit 028b2ff into strands-agents:main Nov 6, 2026
12 checks passed
@akujane akujane mentioned this pull request Nov 23, 2026
8 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area - policy-engine documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants