feat: move session file to .git directory to prevent tracking#80
Merged
Merged
Conversation
- Change session file location from `._b00t_.toml` (repo root) to `_b00t_.toml` (.git/ directory) - Remove leading dot from filename since .git/ is automatically ignored - Simplify gitignore logic since file is now in untracked .git/ directory - Update documentation and help text to reflect new location - Fix tests to expect file in .git/ directory - Ensure session data is never accidentally committed to version control 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
elasticdotventures
added a commit
that referenced
this pull request
Apr 1, 2026
- Change session file location from `._b00t_.toml` (repo root) to `_b00t_.toml` (.git/ directory) - Remove leading dot from filename since .git/ is automatically ignored - Simplify gitignore logic since file is now in untracked .git/ directory - Update documentation and help text to reflect new location - Fix tests to expect file in .git/ directory - Ensure session data is never accidentally committed to version control 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Claude <noreply@anthropic.com>
elasticdotventures
added a commit
that referenced
this pull request
May 4, 2026
#373) * feat: guard escalation, parser stages, b00t-ast CLI, b00t-py bindings, violation persistence - Guard violation counter with JSONL persistence (~/.b00t/guard-violations.jsonl) - 🦨→💩 escalation: Warn→Block when violation_count >= repeat_threshold - check_guards() auto-persists violations on every match - K0mmand3rStage guards: pattern = { stage = "pre_parse" } in hive-guards.hive.toml - parser_stages wired into KmdLine::parse() at 7 phases - b00t-ast CLI binary: b00t-ast dir <path> [--format json|mcp|counts] - b00t-py: guard_check, emoji_lookup, register_stage_guard bindings - KmdLine fields made pub for serde serialization - Schema datums moved to _b00t_/schema/ (uppercase convention) - k0mmand3r crate edition 2024, clean lints - Rust 2024: #![allow]→removed, set_var unsafe wrappers - b00t_env_backend.py promoted from DESIGN to working Python backend - Hermes backend symlinked: just hermes-backend-enable * chore: add hermes-agent-b00t vendor submodule with pre_tool_call rewrite patch Vendor submodule pointing to PromptExecution/hermes-agent-b00t on feat/pre-tool-rewrite-hook branch. Contains the get_pre_tool_call_directives() patch required for b00t guard interposition via Hermes plugin hooks. Upstream PR: NousResearch/hermes-agent#19305 Internal PR: PromptExecution/hermes-agent-b00t#1 * feat: add SCM convention guards — branch naming, main protection, conventional commits New hive guards block or warn before git commands reach the shell: - BLOCK: git checkout main/master — use feature branches - BLOCK: git push origin main — use PRs instead - BLOCK: git merge main — use gh pr merge - WARN: git checkout -b without type/ — use feat/fix/chore/ prefix - WARN: git commit -m without colon — use Conventional Commits format * feat: add regex_match() to Rhai engine + SCM convention guards - Registered regex_match(cmd, pattern) on Rhai engine in hive.rs for future guard pattern matching - Added 5 SCM guards to hive-guards.hive.toml: BLOCK: git checkout main/master, git push origin main, git merge main WARN: branch without type/ prefix, commit without conventional format - All guards use simple cmd.contains() — readable, no escaping hell * crypto-sign: ed25519 signing for peer_facts in IrontologyPeerStore * chore: update vendor/l3dg3rr submodule to ledgrrr (rebranded upstream) - Submodule URL: https://github.com/PromptExecution/l3dg3rr → git@github.com:PromptExecution/ledgrrr - Submodule pointer: 1ed3b3d → 2168595 (includes PR #80, dashboard-generated-panels-51-rebased) - Remote changed from HTTPS to SSH for consistent auth
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
._b00t_.toml(repo root) to_b00t_.toml(.git/ directory)Test plan
.git/_b00t_.tomlChanges
SessionMemory::get_config_path()to return.git/directory path._b00t_.tomlto_b00t_.tomlensure_gitignore_entry()since file is now automatically ignored.git/directoryThis ensures session data is never accidentally committed to version control.
🤖 Generated with Claude Code