From 71fcf6065af5eeeef2ffb985c761d7529e404e2a Mon Sep 17 00:00:00 2001 From: Kjell Tore Guttormsen Date: Sat, 9 May 2026 09:38:36 +0200 Subject: [PATCH] =?UTF-8?q?feat(voyage):=20document=20--profile=20flag=20i?= =?UTF-8?q?n=20all=206=20commands=20=E2=80=94=20SC=20#4=20+=20arv-policy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Step 7 av v4.1-execute (Wave 3, Session 4). Legg ny "## Profile (v4.1)"-seksjon i hver kommando-fil rett før "## Hard rules": - trekbrief.md: --profile + VOYAGE_PROFILE + premium default - trekresearch.md: + economy/balanced auto-disable external_research_enabled - trekplan.md: + plan.md frontmatter recording for inheritance - trekexecute.md: + 4-step resolution (flag > env > inheritance > default) - trekreview.md: + opus-default for review-deepening - trekcontinue.md: spesiell — INHERITANCE er default (ikke premium), --profile overstyr emitter stderr-advarsel Tester (13 nye, baseline 432 → 445): - 6 commands × 2 (--profile + VOYAGE_PROFILE) - trekcontinue.md "inheritance"-keyword Co-Authored-By: Claude Opus 4.7 --- plugins/voyage/commands/trekbrief.md | 19 +++++++++ plugins/voyage/commands/trekcontinue.md | 30 ++++++++++++++ plugins/voyage/commands/trekexecute.md | 23 +++++++++++ plugins/voyage/commands/trekplan.md | 25 +++++++++++ plugins/voyage/commands/trekresearch.md | 21 ++++++++++ plugins/voyage/commands/trekreview.md | 22 ++++++++++ .../tests/lib/profile-flag-coverage.test.mjs | 41 +++++++++++++++++++ 7 files changed, 181 insertions(+) create mode 100644 plugins/voyage/tests/lib/profile-flag-coverage.test.mjs diff --git a/plugins/voyage/commands/trekbrief.md b/plugins/voyage/commands/trekbrief.md index a9d7406..8ee392c 100644 --- a/plugins/voyage/commands/trekbrief.md +++ b/plugins/voyage/commands/trekbrief.md @@ -675,6 +675,25 @@ Append one record to `${CLAUDE_PLUGIN_DATA}/trekbrief-stats.jsonl`: If `${CLAUDE_PLUGIN_DATA}` is not set or not writable, skip silently. Never let stats failures block the workflow. +## Profile (v4.1) + +Accepts `--profile ` where `` is one of `economy`, `balanced`, +`premium`, or a custom profile under `voyage-profiles/`. Default: `premium`. + +Resolution order (per `lib/profiles/resolver.mjs`): +1. `--profile` flag (source: `flag`) +2. `VOYAGE_PROFILE` environment variable (source: `env`) +3. `premium` default (source: `default`) + +Examples: +``` +/trekbrief --profile economy +VOYAGE_PROFILE=balanced /trekbrief +``` + +Stats records emit `profile`, `phase_models`, and `profile_source` so operators +can audit which profile drove which session. + ## Hard rules 1. **Interactive only.** This command requires user input. There is no diff --git a/plugins/voyage/commands/trekcontinue.md b/plugins/voyage/commands/trekcontinue.md index 1d9fee3..f71f947 100644 --- a/plugins/voyage/commands/trekcontinue.md +++ b/plugins/voyage/commands/trekcontinue.md @@ -293,6 +293,36 @@ if the env var is set; silently skip otherwise. {"ts":"","project":"","next_session_label":"