Adds detailed reference for all 21 subcommands with arguments,
options, and usage examples. Agents can run `miyabi-gate gate guide`
to get both the workflow overview and per-command documentation.
Closes#113
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Prints a complete workflow guide that any AI agent can read to
understand how to use Polaris: rules, step-by-step workflow,
context attachments, emergency commands, exit codes, and
quality checks.
Closes#111
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
F1: Add depth limit (max 5) to find_note_by_name and
collect_obsidian_matches to prevent stack overflow on large vaults
F2: Fix bus_enqueue to use store_path parent instead of cwd
F3: Fix update_skill_md_from_patterns to preserve sections after
the auto-generated marker instead of truncating them
F4: Fix extract_wikilinks to consume chars after | in [[Note|Display]]
so subsequent links parse correctly
Tests added:
- extract_wikilinks: basic, display text, empty/broken
- find_note_by_name: depth limit enforcement
- resolve_wikilink: direct, nested, non-existent
- build_rejection_section: empty, sorted by count desc
- update_skill_md_from_patterns: append, replace preserving following sections
955 tests GREEN, clippy zero.
Closes#109
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
When attaching Obsidian notes, extract [[wikilinks]] from the note
content and resolve them to actual vault files. Linked notes are
attached as "obsidian_wikilink" type, bounded by remaining_tokens.
Supports both [[Note]] and [[Note|Display]] syntax.
Closes#102
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Adds proptest to dev-dependencies and 6 property-based tests:
- lock: acquire→release always clears, two tasks can't lock same file,
wrong owner renew always fails
- store: CAS rejects stale version, upsert is idempotent,
event replay is deterministic
945 tests all GREEN.
Closes#100
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
θ6 self-improving: When dream detects gate rejections, automatically
appends/refreshes a "Common Rejection Patterns" section in
polaris-ops/SKILL.md with gate names, counts, and remedies.
This closes the feedback loop: agents learn from their own mistakes
without human intervention.
Closes#96
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Adds a Completion Stats panel to the Polaris web dashboard showing:
- Completion percentage with large display
- Visual progress bar (green)
- Breakdown of done/active/pending/total tasks
Closes#97
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
After successful task registration, automatically append a queued
entry to skill-runs.jsonl. This connects the Polaris gate workflow
to the skill-bus tracking system.
Use --no-bus to skip auto-enqueue when not needed.
Closes#93
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
When reading Obsidian vault notes or source files, non-UTF-8 bytes
caused a hard error. Now gracefully breaks on invalid UTF-8 lines
and returns whatever was read so far.
Closes#91
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
When build_context_attachments runs, it now also includes files from
TaskImpact.depth1 as "impact_depth1" attachments. Files already
attached via locked_files are skipped to avoid duplication.
This improves context accuracy by giving agents visibility into
direct callers/importers that may be affected by their changes.
Closes#89
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>