Skip to content

Read and write channel_names_trimmed as a strict manifest flag - #45

Merged
guijacquemet merged 1 commit into
mainfrom
claude/trimmed-flag-strict
Oct 30, 2026
Merged

guijacquemet merged 1 commit into
mainfrom
claude/trimmed-flag-strict

Conversation

@guijacquemet

Copy link
Copy Markdown
Contributor

Summary

Part of #39 (follow-up to the strict manifest flags in #44 and the trimming in #37/#42).

Tests

  • test_flags_must_be_json_booleans and test_the_writer_refuses_flags_that_are_not_booleans now include channel_names_trimmed: 8 new cases, all 8 fail on main.
  • pytest: 1129 passed, 1 skipped (test_discovery.py:472, root ignores file modes). ruff check . and ruff format --check . are clean.

Generated by Claude Code

channel_names_trimmed (from #42) was read with bool(), so "false" or 1 in a
manifest's file entry was turned into a boolean instead of refused, and the
writer wrote any value it was given. It now goes through the same strict
_flag as the other manifest flags (#44): a value that is not a JSON boolean
makes the manifest malformed, and write_manifest refuses to write one.
Regression tests: test_flags_must_be_json_booleans and
test_the_writer_refuses_flags_that_are_not_booleans, extended with
channel_names_trimmed (8 cases, all fail on main).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VbytvBRB9CmKQ5AAkhEFcv

Copy link
Copy Markdown
Contributor Author

This branch was cut from the current main and had no conflicts. channel_names_trimmed now goes through the strict _flag on read and write; the 8 new test cases fail on main. 1129 passed, 1 skipped (test_discovery.py:472, root), ruff clean, CI 7/7 green on 7acf8e0. Merging.


Generated by Claude Code

@guijacquemet
guijacquemet merged commit 496c80e into main Oct 30, 2026
7 checks passed
@guijacquemet
guijacquemet deleted the claude/trimmed-flag-strict branch November 1, 2026 18:05
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