Skip to content

docs: unslop docs/design and docs/dev - #335

Merged
ferdingler merged 9 commits into
strands-agents:mainfrom
ferdingler:box-unslop-docs
Nov 6, 2026
Merged

ferdingler merged 9 commits into
strands-agents:mainfrom
ferdingler:box-unslop-docs

Conversation

@ferdingler

@ferdingler ferdingler commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

Description

The design and developer guides use dense sentences, metaphors, and shorthand that make their constraints hard to follow. The existing writing workflow also lacks some of the editing rules used here.

I reworded all 27 Markdown pages while preserving technical conclusions, code examples, and link anchors. The shared voice guide now holds the adapted unslop rules. The writer and reviewer apply those rules and compare reworded text with the original.

Examples

Here are some examples of the wording before and after this change. I think they read much better.

1. Broker routing

This replaces "legs" with the actual routing behavior and removes repetition.

Before

The broker accepts the alias's connections on run/box.sock, in the box directory, and it authorizes nothing itself. It has three legs, one for each kind of request: Strands Shell takes a shell command, Monty takes a Python script, and the MCP broker takes a request to a local MCP server. The broker checks the protocol version, reads which leg the request named, and hands the request over.

After

The broker accepts connections from the alias on run/box.sock in the box directory. It checks the protocol version and routes each request by type. Strands Shell handles shell commands, Monty handles Python scripts, and the MCP broker handles requests to local MCP servers. The broker does not authorize requests itself.

2. Shutdown

This states the sequence directly and explains why the lock stays held. It also corrects the original's confusing claim about when the workload remains alive.

Before

Teardown runs in the reverse direction, and the order is the point. The workload is reaped first, so nothing contained is alive while the box's authority is still up. Then the broker unbinds, the gateway finishes, the record that names the running box is withdrawn, and the lock releases last among the box's own authority, so no second run takes the box while any of it is still serving. The collector drains after that, and the drain is what exports, so the export outlives the lock.

After

During shutdown, Box stops and reaps the workload before closing the broker and gateway. It then removes the record that identifies the running box and releases the run lock. Holding the lock until this point prevents a second run from taking over while the first still serves requests. The collector drains and exports its queued records after the lock is released.

3. Harness checks

This paragraph is slightly longer, but clearer. It replaces "a floor and never a wall" with the process boundary that explains the distinction.

Before

Many harnesses ship an allow list and an approval prompt of their own. Box neither relies on one nor reads one, because a check inside the agent's own process is a floor and never a wall, and because it judges the tool call rather than its effect (Box decides outside the harness).

After

A harness may have its own allowlist and approval prompt. Those checks run inside the untrusted agent process and judge tool calls. Box checks the resulting operations in the trusted process, where the agent cannot change the checks. This is why Box decides outside the harness and does not read or rely on the harness's approval rules.

Related Issues

None.

Type of Change

Documentation update

Testing

I checked the rewritten pages and rewording guidance with independent reviewers and fixed their findings. Local links, anchors, code blocks, and skill metadata pass their checks, and all 22 diagrams compile. Example reviews rejected changed meaning and unclear prose that the prose script missed, accepted a faithful rewrite, and withheld approval when the original was missing. I did not run Rust suites because this change only edits Markdown.

  • I ran the relevant suites (just check, or cargo test --workspace --all-features)
  • If I touched Rust, I ran cargo fmt --all and cargo clippy --workspace --all-targets --all-features -- -D warnings

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.

## Problem

The design and developer guides use dense sentences, metaphors, and shorthand.
Readers must decode that wording to understand the documented constraints.

## Solution

Reword all 27 Markdown pages in docs/design and docs/dev with direct descriptions
and shorter sentences. Preserve the decisions, examples, and existing anchors.
Add legacy anchors where a heading changes. Clarify the shutdown sequence and
remove the claim that a local test pass proves the code is correct.
No product interface or executable example changes.

## Tests

The docs-reviewer check-prose.sh check passes for all 27 pages. A comparison with
the base commit confirms that fenced blocks are unchanged, every old heading
anchor still resolves, and local links have no missing targets. All 22 Mermaid
blocks compile, and their final source matches the compiled source.

An independent agent reviewed all 27 pages. Its final verdict is Ship it after
the reported wording and meaning-preservation findings were fixed.

Rust builds, tests, and clippy were not run because only Markdown prose changed.
Existing inconsistencies between historical design statements remain outside
this wording change.
@ferdingler ferdingler changed the title docs: clarify the design and developer guides docs: unslop docs/design and docs/dev Nov 5, 2026
@github-actions github-actions Bot added documentation Improvements or additions to documentation Area - Release labels Nov 5, 2026
@ferdingler
ferdingler marked this pull request as ready for review November 6, 2026 00:56
Comment thread docs/design/decisions.md Resolved
@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown

Assessment: Comment

I reviewed head f82a211 against main at 2abcf9f. I found one rewording that changes a security claim: the credential-store floor now reads as an exclusion, but Box refuses the grant (inline comment). Every other claim I checked kept its meaning.

Checks that held
  • Fenced blocks and diagrams: The content of every fenced block, Mermaid included, is byte-identical in all 27 files.
  • Anchors: Every renamed heading in decisions.md, binaries.md, tenets.md, and debug-os-specific-ci-failures.md keeps its old slug as an <a id>. That satisfies "do not rename one" in the decisions.md header. No Markdown link or docs/design|dev/*.md#anchor reference in code anywhere in the repo is broken.
  • Technical tokens: Every backticked identifier, test name, and number in each file is still present. The only differences are line-wrap artefacts.
  • Site manifest: Manifest pages are all under docs/user/, so the changed H1 in tenets.md does not affect the H1 check.
  • Shutdown order (architecture.md): The described order matches the HostedBox field drop order and collector.drained() after hosted() in command/run.rs.
  • Shell actions: The shell:exec/shell:spawn split matches decision_subject in broker/shell.rs.
  • Other spot checks: These kept their meaning: the ::response/::error rules, the MCP URI normalization list, hardening read-back refusing startup, the telemetry relay slot and size caps, and the requestId text merged from fix(policy): preserve request identifiers across history events #297.
  • Frozen surfaces: No frozen surface changed. docs/dev/site-manifest.md changes wording only, not rules.

Two process notes. At about 6,900 changed lines, this is hard to check claim by claim, so splitting future passes by page group would make review easier. Also, the Testing checklist ticks "I ran the relevant suites", but the description says the Rust suites were not run.

The rewrite is careful, and keeping the legacy anchors makes it safe to merge.

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown

Assessment: Approve (comment only)

Re-review at 126b51e. Since f82a211 there are two commits: a merge of main at #343, and the credential-store fix. I have no new findings.

Checks that held
  • Credential-store floor: The new wording in decisions.md and containment.md matches validate_grant for every operation and scope pair I ran. Read and write grants on a store or a path inside it are accepted with a disclosure. Exec, list, and metadata grants there are refused. Every entry that encloses a store is refused at load.
  • Merge of fix(box): allow startup while protecting inaccessible executable aliases #343: The binaries.md resolution keeps all three of fix(box): allow startup while protecting inaccessible executable aliases #343's claims: accessible identities, protecting a possible alias that permissions hide, and refusing other errors and unstable inventories. docs/user/config.md matches main.
  • Scope: Against main at e39544d, the PR still touches only the 27 files under docs/design and docs/dev.
  • Prose check: check-prose.sh passes on both edited files. The #one-forbidden-path-list-and-each-row-states-its-rule anchor still resolves.

@ferdingler ferdingler changed the title docs: unslop docs/design and docs/dev docs: clarify guides and improve the writing workflow Nov 6, 2026
@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown

Assessment: Comment

Re-review at e9aa747. This commit changes eight files under .agents/ (+242/−149) and no docs pages. Since 126b51e, there is one new finding: the new ban on status lines (inline comment).

Checks that held
  • Register vs. AGENTS.md:225: The voice guide now says user and design pages use plain English, and docs/dev/ and crate READMEs use Simplified Technical English. That matches the root rule and does not create a second owner for it.
  • Test-name rule: The claim-verification.md step 3 now points to the voice guide, which still says a design page names no test (voice-guide.md:212-215). docs-audit still reports a test name on a design page. docs-reviewer lets developer pages name the paths and tests a task needs. These three agree.
  • Rules removed from the self-check: The ban on em-dashes and emoji, the mmdc compile step, and the anchor rules are all still in the guide body (lines 251, 259, 286, 328). check-prose.sh is unchanged and still enforces the mechanical subset.
  • Rewrite workflow: In docs-writer, docs-reviewer, and Tier 3 of claim-verification.md, a wording-only rewrite keeps an unverified original claim, and the reviewer cannot give "Ship it" without the original to compare against. These rules line up across the three files.
  • Earlier checks: The scope, anchors, and credential-store wording from 126b51e are unchanged.

Comment thread .agents/references/voice-guide.md Resolved
@ferdingler ferdingler changed the title docs: clarify guides and improve the writing workflow docs: clarify guides and share rewording rules Nov 6, 2026
@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown

Assessment: Approve (comment only)

Re-review at bb8dcbf. Against 126b51e, the PR's .agents/ changes are now limited to voice-guide.md, docs-reviewer, and docs-writer. claim-verification.md, doc-updates.md, page-templates.md, docs-audit, and docs-sync match main again. The status-line finding is resolved, and I have no new findings.

Checks that held
  • Status line: User-guide rule 4 once more allows one > **Status.** line, so the seven docs/user/ pages and crates/policy/README.md conform.
  • Wording-only path vs. Tier 3: docs-writer routes a wording-only rewrite through its own section, which keeps unverified original claims and reports them. Step 6 ("Remove each claim you can't verify") and Tier 3 of claim-verification.md apply only to new content and corrections, so the two rules do not conflict.
  • docs/dev/ register: The voice guide, docs-reviewer, and docs-writer all limit docs/dev/ to wording-only rewrites. All three keep the page structure, the source and test references, and Simplified Technical English. That matches AGENTS.md:225, and user/design citation rules are not applied to developer pages.
  • Rules removed from the self-check: The em-dash and emoji rules, the mmdc compile step, anchor preservation, and "design page names no test" are all still in the guide body.
  • Reviewer gate: "Ship it" for a rewrite still needs the original as a baseline and no unresolved change in meaning, and docs-writer Step 9 now passes that baseline.
  • Docs pages: The 27 rewritten pages are unchanged since 126b51e, so the earlier checks still hold: anchors, fenced blocks, and credential-store wording.

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown

Assessment: Approve (comment only)

Re-review at 0961522, which merges main at cd61396 (#327, tool grammars connected to the shell) into bb8dcbf. I have no new findings. The merge resolution keeps all of #327's documentation claims in the two files that both branches touched.

Checks that held
  • Scope: Against cd61396, the PR still touches only the same 30 files under docs/design/, docs/dev/, and .agents/. feat(shell): connect the shell to tool grammars #327's code and docs/user/ changes come in unchanged.
  • architecture.md startup step 4: The reworded text keeps each part of feat(shell): connect the shell to tool grammars #327's claim: binding on the opened file identity, declaring stdio [mcp.<name>] programs, one stderr line per covered entry, and no shell:spawn rule applying. It matches write_grammar_disclosures in command/run.rs and its test. The old "cannot take effect yet" sentence is gone and does not appear on any other design or dev page.
  • policy.md inert-rule list: The group-temporal-predicate refusal and the schema-staging refusal are both kept. The new wording "If the rule is provably inert, Box refuses the schema" says the same thing as feat(shell): connect the shell to tool grammars #327's "meets the same checks... refuses the schema". The history paragraph for bound and refused spawns is identical to main.
  • Prose check: check-prose.sh passes on both merged files.
  • Earlier checks: The .agents/ changes, the status-line rule, the anchors, and the credential-store wording are unchanged since bb8dcbf.

@ferdingler ferdingler changed the title docs: clarify guides and share rewording rules docs: unslop docs/design and docs/dev Nov 6, 2026
@ferdingler
ferdingler merged commit 6bd1b2f into strands-agents:main Nov 6, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area - Release documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants