Repository navigation
feat(claude): render the work host's planwright overlay from its own work-account item - #230
Merged
Merged
Conversation
…work-account item A host in claude_planwright_overlay_work_hosts (work) renders the overlay from dotfiles-planwright-overlay-<alias>, read with op-render.sh --work-account from the account and vault op-work-item names, and fails rather than fall back to the shared item. Every other host renders the shared item exactly as before. A new Ansible-driven suite pins both, and the renderer suite covers --work-account.
…dotfiles-ad-hoc-2d5798df
…bound its CI step
Owner
Author
|
@cubic-dev-ai review this PR |
@inkatze cubic can't start this review because your workspace has reached its free monthly review limit. cubic has reviewed 40,041 of the 40,000 allowed lines of code this month. Reviews resume on 2 December 2026 (in 23 days). Paid plans include much higher monthly review limits. Upgrade now to resume reviews. To help optimise your usage, you can tune cubic to get the most out of your usage limits:
|
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.
The work host now renders its planwright overlay from its own 1Password item in the work account, so it never picks up the program settings the other hosts share. Every other host renders exactly what it did before.
roles/claude/defaults/main.yml:claude_planwright_overlay_work_hosts(work) picks the itemdotfiles-planwright-overlay-<alias>for listed hosts; everyone else keepsdotfiles-planwright-overlay.roles/claude/tasks/op-render.yml: on a listed host the overlay render passesscripts/op-render.sh --work-account, which reads the item from the account and vaultop-work-itemnames and refuses to run without them instead of falling back to the shared item.scripts/op-render-test.shcovers--work-account; the newscripts/claude-overlay-render-test.shruns the real Ansible tasks as each inventory host against a fakeopand checks thatpersonal,altandserverrender the shared item byte-for-byte as before, thatworkrenders only its own item, and thatworkwithoutop-work-itemfails with no read and nothing written. It runs in CI's lint job.docs/machine-local-files.md,README.md,CLAUDE.md.Before the work host's next playbook run after merge: the item
dotfiles-planwright-overlay-workmust exist in the work account and vault, withflight_pr_hostsandmission_controlfields; until then that run fails, by design.Open items
lefthook.ymlentry for the new suite is not in this PR: editing that file was denied by permission settings in the worker session.scripts/claude-overlay-render-test.shhung whenever its stdin was an open pipe, and the sibling suites never close stdin either (recorded as an observation, not fixed here).maintwice by merge commits; the latest brings in fix(test): stop the lint job's ansible suites spending a minute per play on fact gathering #232's lint-job speedups. This suite now follows the same pattern: only theenvfacts, pipelining, a 10-minute step bound, plus</dev/nullon its play. CI then caught a bash 3.2set -ufailure on an empty argument array in the suite, fixed in 90e66cb.000003:/polish --nestedapplied one fix (the stdin hang),/panel-review --nested(Gemini, in place of cubic while its quota is reserved) declined one sibling-suite finding as out of scope; no pending sign-off, no open fork. Run000004covered the bash 3.2 fix: polish found nothing, Gemini's two findings were false positives. Run000005: the cubic review was requested and refused on the monthly quota (resumes 2 December 2026), and dotfiles has no PR-Agent workflow yet, so bot-review is recorded skipped. Run000002's convergence start times were entered by hand; later runs' were captured before each step ran.Step records
Steps at
pre-implementation(run000001)Ended on
f64bcc0e5dbc.Steps at
pre-ci(run000002)Ended on
feca78791206.Steps at
convergence(run000002)Ended on
feca78791206.Steps at
pre-pr(run000002)Ended on
feca78791206.Steps at
post-pr(run000002)Ended on
feca78791206.Steps at
pre-implementation(run000003)Ended on
433d66d021b4.Steps at
pre-ci(run000003)Ended on
f7443942f59c.Steps at
convergence(run000003)Ended on
400457528201.Steps at
pre-pr(run000003)Ended on
400457528201.Steps at
post-pr(run000003)Ended on
400457528201.Steps at
pre-implementation(run000004)Ended on
90e66cb55f93.Steps at
pre-ci(run000004)Ended on
90e66cb55f93.Steps at
convergence(run000004)Ended on
90e66cb55f93.Steps at
pre-pr(run000004)Ended on
90e66cb55f93.Steps at
post-pr(run000004)Ended on
90e66cb55f93.Steps at
post-pr(run000005)Ended on
90e66cb55f93.Audit record
Convergence: /polish --nested (self-review passes inline, nested; base origin/main @ 0dcc648)
Mode: nested. Discovery walked inline (declared scoping: 9 files, ~270 changed lines, mostly a fixture suite, config and prose). No active kickoff brief (flight branch), so Agent-resolvable was unavailable. Iterations: 2; converged (iteration 2 produced no new disposition).
--work-accountarg parse,work_refs/work_set/work_onsplit, and the item/argv Jinja agree with every fixture case--work-account, where "not at all" also fails (declined 2)lefthook.yml(declined 1)Auto-applicable
Agent-resolvable
Needs sign-off
Needs human judgment
Declined log
scripts/claude-overlay-render-test.shhas nolefthook.ymlentrylefthook.yml, present in.github/workflows/test.ymllefthook.ymlwas denied by permission settings earlier; CI runs the suite; the prepared entry is in the PR's open items--work-accountwith a partial work source says "must be set together or not at all"scripts/op-render.sh--work-account needs ...message namingop-work-item; no wrong action resultsclaude_planwright_overlay_work_hostscarries its existingplanwright-overlay.supplement.ymlinto its first own-item renderPending sign-off
none
Pass summary
Tooling: lefthook pre-commit fast hooks green on the merge head (gitleaks, yamllint, shellcheck, ansible-lint, skill-contracts, instruction-budget, op-render, op-token, op-key-sync, playbook-alias, osx-offload-guard, fish-functions-ignore);
scripts/op-render-test.sh260 passed, 0 failed;scripts/claude-overlay-render-test.shall assertions hold. Excluded locally per the standing rule (CI runs them): skill-contracts-suite, claude-skills-link, copilot-retirement, claude-steps-catalog, syntax-check, git-unattended-auth, cubic-instructions, credential-path-guard, planwright-marketplace. No reverts. Merge resolution:scripts/op-render-test.shkeeps main's overlay-supplement section as 28 and this branch's--work-accountsection as 29.Convergence: /panel-review --nested (backend: gemini; base origin/main @ 0dcc648)
Iterations: 1; converged (nothing to apply, no forks; discovery ran on the converging iteration). Gemini wall-clock 182s; outbound prompt gitleaks-scanned clean.
failed_when: falseis by design: the later "Fail on any 1Password render or key sync that failed" task stops the play, and the fixture asserts itscripts/op-render.sh; both suites pass; the second grep short-circuits behind the first--work-accountand work-reference templatesAuto-applicable
Agent-resolvable
none (no active kickoff brief)
Needs sign-off
none
Needs human judgment
none
Declined log
scripts/claude-overlay-render-test.shruns ansible-playbook once per case, adding CI latency (gemini)Dropped as false positives after three-pass validation (gemini): op-render.sh "none is set" message; docs "fails the play" claim; op-render-test expecting "must be set together"; overlay test expecting a failed play; op-render.yml
failed_when: falsebreaking the invariant; op-render-test second grep stderr; removed partial-variable guard. Each was checked against the current code and both suites' passing runs.Test command:
scripts/op-render-test.sh(260 passed, 0 failed);LC_ALL=C.UTF-8 scripts/claude-overlay-render-test.sh(all assertions hold); lefthook pre-commit fast hooks green. No commits.Run 000003: /polish --nested (scope 433d66d...4004575, base origin/main @ e296c92)
Discovery inline (2 files, under 20 changed lines). No kickoff brief, so Agent-resolvable was unavailable. Iterations: 2; converged.
</dev/null(e370e63)env, the only facts op-render reads; pipelining on, matching the sibling suitesAuto-applicable: 1 applied (e370e63). Needs sign-off: none. Needs human judgment: none. Declined: none. Tooling: lefthook fast hooks green; ansible-lint's one jinja[spacing] warning is main's.
Run 000003: /panel-review --nested (gemini, 27s; converged in 1 iteration)
</dev/nullDeclined log:
scripts/claude-overlay-render-test.sh:113Run 000004: bash 3.2 fix (4004575...90e66cb)
/polish --nested: 1 iteration, no findings (the suite has no other bash 3.2 or BSD-only constructs;
check-bash32.sh lintclean). /panel-review --nested (gemini, 52s): 2 findings dropped as false positives. Gemini said the unquoted outer${extra[@]+"${extra[@]}"}word-splits and globs elements; a run with elementsB=Work VaultandC=*kept both whole, and an empty array expands to nothing underset -u.Summary by cubic
The work host now renders its planwright overlay from its own 1Password item in the work account, so it never picks up the program settings the other hosts share. Every other host renders exactly what it did before. A new Ansible-driven suite pins both behaviors; it gathers only the env facts, runs bounded in CI, and passes
</dev/nullso an open stdin cannot hang the play.Migration
dotfiles-planwright-overlay-workin the account and vaultop-work-itemnames, with theflight_pr_hostsandmission_controlfields; until then that run fails, by design.Written for commit 90e66cb. Summary will update on new commits.