Skip to content

docs, fix & tests: post-merge cleanup on claude-developer-1 - #23

Merged
berdanakyurek merged 5 commits into
developfrom
claude-developer-1
Mar 15, 2026
Merged

berdanakyurek merged 5 commits into
developfrom
claude-developer-1

Conversation

@berdanakyurek

Copy link
Copy Markdown
Owner

Summary

  • Fix CLAUDE.md inaccuracies (cache location, request flow, missing redact entropy commands)
  • Update README debug output examples to reflect actual per-provider format
  • Fix healthcheck: warn when no providers configured
  • Fix help output: add work dir to status description, fix config key names
  • Add 13 new tests covering previously untested paths across config, cache, redact, and llm packages

Test plan

  • go test ./... passes (CI)
  • guard-sh help shows correct status and config descriptions
  • guard-sh healthcheck with no providers shows actionable error

🤖 Generated with Claude Code

claude-developer-1 Bot and others added 5 commits March 15, 2026 23:35
- Request flow: cache is in llm.Multi, not internal/guard
- Key packages: remove "cache lookup" from guard, clarify multi.go role
- CLI subcommands: add missing redact entropy on/off

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Debug mode example now shows per-provider cache/redaction format
  (cache moved to llm.Multi in #13, redaction stage shown per provider)
- Add cache hit and redaction examples to debug section
- Healthcheck description: add fish (config.fish) to shell list
- Status example: show entropy redaction line alongside pattern
- Working directory section: remove redundant duplicate sentence

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- status: mention work dir in description
- config: fix redact_patterns → redaction, add send_working_directory

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
config:
- TestIsSendWorkingDirectoryEnabled (nil/true/false)
- TestEffectivePatternRedaction (nil provider, global fallback, per-provider override)
- TestEffectiveEntropyRedaction (nil provider, threshold override, disable)
- TestUpdateProviderPatternRedaction (enable, disable, unknown provider error)
- TestUpdateProviderEntropyRedaction (enable with default threshold/min_length)
- TestAddOllamaProvider (fresh add, upsert idempotency)

cache:
- TestCache_CorruptedFileRecovery (invalid JSON graceful recovery)
- TestCache_GetUpdatesTimestamp (LRU timestamp refresh on Get)

redact:
- TestEntropyRedactor_ThresholdBoundary (>= boundary behavior)

llm:
- TestMulti_ProviderSpecificPromptOverridesGlobal
- TestMulti_GlobalPromptUsedWhenNoOverride

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@berdanakyurek
berdanakyurek merged commit 840afbe into develop Mar 15, 2026
1 check passed
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.

1 participant