homelab v0.8.1: frame browser as escalation (default headless), match CLAUDE.md
Make `homelab browser --help` and chrome-service.md state the same tiered rule now in ~/code/CLAUDE.md: default to the Playwright MCP/headless browser for all routine automation; reach for `homelab browser` ONLY when headless is blocked (loads-but-submit-fails / one request errors while siblings 200 / explicit bot wall). Removes the "co-equal choice" framing so agents have one non-conflicting instruction. Adds a test asserting the tiered wording so it can't regress. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
f96cde35bd
commit
7dbbb74163
4 changed files with 29 additions and 10 deletions
|
|
@ -137,6 +137,18 @@ func TestBrowserHelpHasDiagnosticCheatSheet(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
func TestBrowserHelpIsTiered(t *testing.T) {
|
||||
// --help must frame this as the ESCALATION path (default to headless first),
|
||||
// matching ~/code/CLAUDE.md and chrome-service.md — non-conflicting agent
|
||||
// instructions. Guard against a regression to "co-equal choice" wording.
|
||||
h := browserHelp()
|
||||
for _, want := range []string{"Default to the", "escalation"} {
|
||||
if !strings.Contains(h, want) {
|
||||
t.Errorf("browser --help must carry the tiered/default-headless framing; missing %q", want)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestStealthJSEmbeddedMatchesCanonical(t *testing.T) {
|
||||
// The embedded copy must never drift from the source of truth that the
|
||||
// in-cluster callers use, else the CLI's stealth and the cluster's diverge.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue