Repository navigation
Hide Claude Code attribution in factory sessions - #1069
Merged
Merged
Conversation
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
factory Claude session (opening, Repair, review or Resume) + --settings '{"attribution":{"commit":"","pr":""}}' thirdshift's Built with lineHide Claude Code's commit and PR attribution for factory sessions. Preserve the release-summary invocation. Regenerate the guide and prompt examples, with shell quoting that preserves the inline JSON.
Closes #937
Evidence
cargo test --bin thirdshift harness::claude::tests::factory_sessions_and_resumes_hide_claudes_commit_and_pr_attribution -- --exactfailed because--settingswas absent.After: passes across ordinary sessions, code reviews, Security reviews and their Resumes. The release-summary argument regression also passes.
cargo test --bin thirdshift prompts_page::tests::prompts_page_claude_commands_preserve_attribution_settings_as_one_shell_argument -- --exactfailed withkey must be a stringafter Bash parsed the unquoted JSON.After: generated examples preserve the settings as one valid JSON argument for both new sessions and Resumes.
cargo check,cargo fmt --check,UPDATE_PROMPTS=1 cargo test prompts_pageandcargo test prompts_pagepassed./usr/bin/time -p scripts/affected-tests mainpassed: 36 site browser tests and the fullcargo nextest runsuite, 2,249 Rust tests passed, 51 skipped. Total wall time: 1,285.68 s, including compilation and site checks; nextest execution: 1,234.304 s, with 0.28 s of cached compilation before it.claude --versionandclaude --help). The official settings reference specifies empty strings for both keys; the CLI reference documents inline JSON and per-session precedence. The official changelog records attribution support since 2.0.62.Test seams
Unaddressed findings
Standards
src/harness/claude.rs:212,src/prompts_page.rs:669). Declined extraction: keep the short lookup and decoding local to each test seam, following the documented codebase-design locality principle. The adapter test exercises invocations directly (src/harness/claude.rs:208); the documentation test executes Bash (src/prompts_page.rs:660) and checks the complete settings object, rather than only attribution (src/prompts_page.rs:676,src/harness/claude.rs:219). A shared helper would couple these independent proofs for a small reduction in mechanics. This is a design decision within this change; nothing is deferred to the Spec or Day shift. The finding alleges no wrong behavior and supplies no reproduction command.Spec
None.
Security
None.
Security review outcome
No unaddressed introduced findings.
Review coverage
Independent Standards and Spec reviews used
git diff main...HEAD(mainat4580603). Both read all six changed files, including generated hunks. Unread changed files: none. Generated-output exclusions: none. Final reports, with supporting files-read lists, are saved at.thirdshift-review-GGWRjQ/standards.mdand.thirdshift-review-GGWRjQ/spec.mdin the worktree.Merge Danger
Door: two-way
Revert to restore the previous session arguments; existing commits and PR bodies are untouched.
Blast Radius: narrow
Claude factory session arguments and their documentation. Other Harnesses and manually launched Claude sessions keep their existing behavior.
Built with codex · gpt-6.1-sol · xhigh