fix(secondbrain): use canonical vault resolver for onboarding - #191
Open
levineam wants to merge 1 commit into
Open
fix(secondbrain): use canonical vault resolver for onboarding#191levineam wants to merge 1 commit into
levineam wants to merge 1 commit into
Conversation
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.
Motivation
detect-vault.jshelper duplicated vault-path resolution logic and hard-coded~/Documents/Vault v3, diverging from the hardened resolver and risking guidance that points runtimes/users at stale or incorrect vaults.--jsonmachine output were emitted before applying existence and stale-path guardrails, allowing consumers to treat invalid paths as usable.Description
modules/jarvos-secondbrain/scripts/detect-vault.jswith the canonical resolver by importingresolveConfig()anddiscoverConfigPath()from the bridge config so onboarding uses the same fail-closed guardrails.2) instead of emitting a JSON payload for nonexistent/stale vaults.modules/jarvos-secondbrain/tests/detect-vault.test.jsthat cover canonical selection, JSON-mode rejection of nonexistent vaults, and rejecting an explicitly configured stale~/Documents/Vault v3.runtimes/hermes/skills/jarvos/SKILL.mdto refer to the canonical~/Vaults/Vault v3default and instruct callers to run the validated detector rather than assuming~/Documents/Vault v3.Testing
node --test tests/detect-vault.test.js tests/config-resolution.test.jsand the added/related tests passed (detect-vault tests and config-resolution tests succeeded).npm test, where the secondbrain tests mostly passed: the run reported 417/420 tests passing and 3 pre-existing unrelated failures in other tests.Codex Task