Skip to content

fix(test-workload): preserve strings in generated TOML - #59

Closed
rudycelekli wants to merge 1 commit into
strands-agents:mainfrom
rudycelekli:codex/box40-boxgen-toml-strings
Closed

rudycelekli wants to merge 1 commit into
strands-agents:mainfrom
rudycelekli:codex/box40-boxgen-toml-strings

Conversation

@rudycelekli

Copy link
Copy Markdown

Description

The workload generator writes a quote or backslash from a path directly into TOML. A quote stops parsing. A backslash changes the path.

Encode each TOML string with the JSON string encoder. Keep all keys and the policy text unchanged. No product interface changes. AI assisted this change.

Related Issues

None.

Type of Change

Bug fix

Testing

python3.12 test-workload/common/boxgen-test.py fails against the base and passes with this change. No Rust change. Workspace just check was not run. No model or containment run.

  • I ran the relevant suites (just check, or cargo test --workspace --all-features)
  • If I touched Rust, I ran the Rust format and lint gates

Checklist

  • I have read the CONTRIBUTING document
  • I have reviewed and understand every line of code in this PR
  • My change is focused and reasonably small
  • I have added tests that prove this fix
  • I have updated the documentation accordingly
  • My changes generate no new warnings

Independent review: no product interface, premise, or permission change. The focused Python regression fails before and passes after this fix. Baseline Rust build, formatting, and lint passed. Full workspace tests and 8 containment compiler cases hit ENOSPC; 113 containment cases passed and 8 were declared platform skips. No full-suite or hosted CI pass is claimed.

## Problem
The workload generator writes a quote or backslash from a path directly into TOML. A quote stops parsing. A backslash changes the path.

## Solution
Encode each TOML string with the JSON string encoder. Keep all keys and the policy text unchanged. No product interface changes.

## Tests
The new Python regression fails on unchanged source and passes with this fix. Root independently repeated both runs. The baseline Rust build, format check, and clippy pass. Full workspace tests and eight containment compilation cases stop with ENOSPC; this change contains no Rust edits. The containment run has 113 passes and 8 declared platform skips. No live model run was made.
@ferdingler

Copy link
Copy Markdown
Collaborator

Thanks for looking into this. We're closing this batch of PRs under our AI usage policy. The PR template has a checkbox "I have reviewed and understand every line", which is unchecked, and 40 PRs at once is more than we can review. We welcome external contributions and we're okay with AI-written code, but a human has to review and deeply understand the changes. A good way to start is to pick the one fix you think matters most, open an issue that explains the bug in your own words, and follow up with a small PR you've reviewed yourself. That's how we build trust with new contributors, and we'd be glad to work with you that way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants