Skip to content

feat: move session file to .git directory to prevent tracking#80

Merged
elasticdotventures merged 1 commit into
mainfrom
feature/move-session-file-to-git-dir
Aug 8, 2025
Merged

feat: move session file to .git directory to prevent tracking#80
elasticdotventures merged 1 commit into
mainfrom
feature/move-session-file-to-git-dir

Conversation

@elasticdotventures

Copy link
Copy Markdown
Owner

Summary

  • Move session file location from ._b00t_.toml (repo root) to _b00t_.toml (.git/ directory)
  • Remove leading dot from filename since .git/ is automatically ignored by git
  • Simplify gitignore logic since file is now in untracked .git/ directory

Test plan

  • Verified session commands work with new file location
  • Confirmed session data is stored in .git/_b00t_.toml
  • Updated and validated all tests pass
  • Confirmed file is no longer tracked by git

Changes

  • Modified SessionMemory::get_config_path() to return .git/ directory path
  • Updated file references from ._b00t_.toml to _b00t_.toml
  • Simplified ensure_gitignore_entry() since file is now automatically ignored
  • Updated documentation and help text to reflect new location
  • Fixed test assertions to expect file in .git/ directory

This ensures session data is never accidentally committed to version control.

🤖 Generated with Claude Code

- 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 elasticdotventures merged commit 7c51cfa into main Aug 8, 2025
11 of 12 checks passed
@elasticdotventures elasticdotventures deleted the feature/move-session-file-to-git-dir branch August 8, 2025 08:07
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
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