docs-v2/test
Jason Stirnaman 0a37d652cb
chore: add hooks and guidelines to reduce agent friction (#6999)
* chore: add hooks and guidelines to reduce agent friction

Add prompt hooks to .claude/settings.json to enforce:
- Worktree path safety (reject reads from main clone)
- Local-first search (reject WebFetch for repo content)
- Shared content awareness (remind about content/shared/)

Add agent and documentation guidelines:
- doc-triage-agent: search rules for local-first, worktree-aware,
  shared content, and parallel search
- AGENTS.md: worktree awareness and search patterns sections
- influxdb3-test-setup skill: Enterprise unavailable troubleshooting
- init-influxdb3.sh: placeholder email validation and startup health check

Addresses friction points identified in session analysis for #6991.

* chore: replace prompt hook with deterministic worktree path check

Replace the prompt-based worktree path hook with a command hook that
uses git plumbing (rev-parse --git-dir vs --git-common-dir) to detect
worktrees and block reads targeting the main clone. Works regardless
of where the worktree is located on disk.

Also add git, fzf, and common shell utilities to project allow list,
and clean up settings.local.json (remove phantom tools, duplicates).

* chore: add yarn install hooks for worktree and session start

WorktreeCreate: always install deps (new worktree needs them)
SessionStart: install only if node_modules missing (async, non-blocking)

Both skip Cypress binary and use --frozen-lockfile.
2026-03-27 20:28:10 -05:00
..
influxdb3 Revert "chore(test): Untrack influxdb3 data and plugins used in Docker configurations and testing" 2025-07-07 12:13:36 -05:00
pytest refactor(test): parameterize container paths for host-runner support (#6992) 2026-03-26 14:50:24 -05:00
scripts chore: add hooks and guidelines to reduce agent friction (#6999) 2026-03-27 20:28:10 -05:00
.dockerignore
.gitignore chore: Modify AI instructions build script to optimize and reduce instructions size. Add test examples for later 2025-07-01 12:45:51 -05:00
Dockerfile.test-oss.centos chore: always verify GPG fingerprint 2025-07-09 10:13:29 -05:00
Dockerfile.test-oss.ubuntu chore: always verify GPG fingerprint 2025-07-09 10:13:29 -05:00
env.test.example fix(ci): Lefthook config typo. Update management token variable name in env.test.example 2024-07-23 15:34:42 -05:00