2.4 KiB
2.4 KiB
id, title, status, wave, depends_on, plan, spec
| id | title | status | wave | depends_on | plan | spec |
|---|---|---|---|---|---|---|
| 01-profile-selector-contract | Separate debug profile selector | done | 1 | plan.md | ../../specs/dev-preview-title-prefixes/spec.md |
Task 01: Separate debug profile selector
Acceptance
KANDEV_DEBUG_PPROF_ENABLED=truewithoutKANDEV_DEBUG_DEV_MODE=trueselectsprodand does not receive theDevprofile prefix.KANDEV_DEBUG_DEV_MODE=truestill selectsdevand supplies theDevtitle prefix.- The native and direct backend
start-debuglaunchers supply theDebugprefix by default, while preserving an explicit prefix. - A supervised backend restart preserves the configured title prefix.
- The direct backend
devtarget exportsKANDEV_DEBUG_DEV_MODE=true, whilestart-debugretains pprof and debug logging without that selector. - The profile ADR and its index describe the corrected boundary.
Verification
make test-backendmake lint-backendmake build-backendmake check-make-shellsgit diff --check
Files likely touched
apps/backend/internal/profiles/profiles.goapps/backend/internal/profiles/profiles_test.goapps/backend/internal/launcher/env.goapps/backend/internal/launcher/start_test.goapps/backend/internal/launcher/supervisor.goapps/backend/internal/launcher/supervisor_test.goapps/backend/Makefilescripts/check-make-shellsdocs/decisions/0007-runtime-feature-flags.mddocs/decisions/2026-08-10-debug-launcher-profile-selection.mddocs/decisions/INDEX.md
Dependencies
None.
Parallelism
Sequential. The profile selector and launcher environment are one shared startup contract.
Inputs
- The
What, API surface, failure modes, and scenarios in the repair spec. - The confirmed root cause in
plan.md. profiles.DetectEnvironment,profiles.ApplyProfile, and the existing shell dispatch harness.
Output contract
Report the changed files, exact test commands and results, any risks, and the updated task and plan statuses in the same conversation. Do not delegate this task to a subagent without explicit user authorization.
Results
make test-backend— passed (full backend test suite).make lint-backend— passed (0 issues).make build-backend— passed (backend binaries built).make check-make-shells— passed (Unix, native Windows, and Git Bash/MSYS dispatch, including explicit prefixes with spaces).git diff --check— passed.