---
title: "Plan: ALKS CLI Basic Auth Removal"
spec_source: spec-driven/alks-cli-basic-auth-removal/spec.md
spec_hash: sha256:0328ec19413e92f93dc8c534dc72576b8722e7bf5d8565ca3b250c81f016f5b3
spec_tier: 1
status: final
version: 1.0
date: 2026-07-19
total_steps: 12
total_phases: 4
estimated_effort: L
risk_level: medium
test_approach: test-after
---

# Implementation Plan: ALKS CLI Basic Auth Removal

> Spec: spec-driven/alks-cli-basic-auth-removal/spec.md | Generated: 2026-07-19 | Status: Final

## Overview

This plan removes basic (password) authentication from the ALKS CLI, leaving token-only auth (`refresh-token` + `credential-process`). The work is a deletion-heavy refactor of existing architecture — no new components, no ALKS Core change.

The single real hazard drives the ordering: collapsing `Auth = TokenAuth | PasswordAuth` to `Auth = TokenAuth` cascades TypeScript errors into every site that reads `auth.password` — `getAlks`'s basic branch, `getAuth`'s fallback, and the cache-encryption-key ternary in `getKeys.ts:16` / `addKey.ts:17` (the landmine, which is on the **token** path). Phase 1 (Foundation) therefore removes those consumers and collapses the union + fixes the landmine as one coherent slice that leaves the build green. Only then do later phases remove the now-dead command/flag/helper surface. Because a type-union collapse cannot keep every intermediate edit compiling, correctness is proven at **phase** granularity (each phase ends with `tsc` clean), not per-edit.

Phase 2 reduces the user-facing surface (auth-type picker, `configure` cases, `login`→error stub, `logout` removal, `program.ts` flags/commands, `developer info` rows). Phase 3 deletes the eight password/userId helper files (preserving `getPasswordFromPrompt.ts`, a token-flow dependency) and removes the residual `password?` type fields — it is an intentional exception to vertical slicing, since the user-facing value is fully delivered by Phase 2 and Phase 3 exists solely to complete the removal for NFR-1 (security). Phase 4 runs the full suite, a grep sweep proving no removed symbol survives, and release hygiene (changelog + major semver). Tests are written **test-after**: each behavioral step carries its own test bullet; the final step gates on the whole suite.

Per the spec's Constraints, this plan makes **no ALKS Core change** and introduces **no feature flag / phased runtime toggle** — the removal ships in a single version and adoption is gated by comms + the 2026-07-20 date, not a runtime switch. Both constraints are satisfied by design: no STEP touches Core or adds a toggle.

```mermaid
graph TD
    STEP-1 --> STEP-3
    STEP-2 --> STEP-3
    STEP-4 --> STEP-5
    STEP-6 --> STEP-7
    STEP-3 --> STEP-8
    STEP-3 --> STEP-9
    STEP-5 --> STEP-9
    STEP-6 --> STEP-9
    STEP-7 --> STEP-9
    STEP-8 --> STEP-9
    STEP-9 --> STEP-10
    STEP-10 --> STEP-11
    STEP-11 --> STEP-12
```

## Test Strategy

- **Approach**: test-after
- **Framework**: Jest 29 (`ts-jest`)
- **Pattern reference**: `src/lib/getIamKey.test.ts` (uses a `{ token }` auth fixture); `src/lib/handlers/alks-developer-configure.test.ts` (handler mock pattern)
- **Files needing tests**: `src/lib/getAuth.ts`, `src/lib/getKeys.ts` / `src/lib/addKey.ts` (landmine regression), `src/lib/handlers/alks-developer-configure.ts`, `src/lib/getCredentialsFromProcess.ts` / `src/model/developer.ts` (field removal), `src/lib/convertNetrcToIni.ts`
- **Integration/E2E**: not needed — changes are unit-level; NFR-4 (adoption decline) is verified post-deploy via Splunk, not in this plan

## Traceability

| Requirement | Priority | Steps | Status |
|-------------|----------|-------|--------|
| FR-1 | Must Have | STEP-2, STEP-3, STEP-10, STEP-12 | Covered |
| FR-2 | Must Have | STEP-1 | Covered |
| FR-3 | Must Have | STEP-4, STEP-5 | Covered |
| FR-4 | Must Have | STEP-6, STEP-7 | Covered |
| FR-5 | Must Have | STEP-7, STEP-8, STEP-9, STEP-12 | Covered |
| FR-6 | Must Have | STEP-3 | Covered |
| FR-7 | Should Have | STEP-11, STEP-12 | Covered |

---

## Phase 1: Foundation (Walking Skeleton — token-only type core)

> Prove the token-only auth model end-to-end and neutralize the landmine, leaving the build green.
> Walking-skeleton steps prioritize architectural proof (the type collapse) over user-visible value.

### STEP-1: `getAuth` throws a directed error when no token exists
[FR-2 → AC-2.1, AC-2.2] | modify `src/lib/getAuth.ts` | Effort: S

> **Intent**: This is the behavioral heart of the removal — when no refresh token exists, the CLI must stop silently falling back to basic auth and instead fail with actionable guidance. The removed fallback (lines 19-45) is the only code that constructs `{ userid, password }`, so deleting it is what makes the union collapse in STEP-3 safe.

- Remove the basic-auth fallback (lines 19-45) and the one-time deprecation banner
- When `getToken()` yields no token, `throw` an error directing the user to run `alks developer login2fa` or `alks developer configure`
- Leave the existing valid-token path untouched: when `getToken()` yields a token, still return `{ token }` exactly as before (AC-2.2)
- Drop the now-unused imports: `promptForPassword`, `getPassword`, `getUserId`
- Write tests in `src/lib/getAuth.test.ts` (create if absent): no token → throws with the directed `login2fa`/`configure` message (AC-2.1); valid refresh token → returns `{ token }` unchanged (AC-2.2)
- **Verify**: `npx jest src/lib/getAuth` passes; `npx tsc --noEmit` shows no new errors in `getAuth.ts`

> Depends on: — | Enables: STEP-3 | Parallel with: STEP-2

### STEP-2: `getAlks` accepts token props only
[FR-1 → AC-1.1] | modify `src/lib/getAlks.ts` | Effort: S

> **Intent**: Removes the second (and last) consumer of password auth — the `else` branch that casts `userid/password` into `AlksProps` with the "alks.js doesn't officially support username & password" hack. After this, nothing consumes `PasswordAuth`, unblocking the union collapse.

- Remove `PasswordProps` and the basic `else` branch (lines 84-91); set `Props = TokenProps`
- Keep the token flow intact: `create()` + `getAccessToken({ refreshToken })` → recreate with `accessToken`
- Write/adjust tests for `getAlks`: builds a client from token props; assert no code path accepts `userid`/`password` (AC-1.1)
- **Verify**: `npx jest src/lib/getAlks` passes; `npx tsc --noEmit` shows no new errors in `getAlks.ts`

> Depends on: — | Enables: STEP-3 | Parallel with: STEP-1

### STEP-3: Collapse the `Auth` union, fix the cache-key landmine, delete `isTokenAuth`
[FR-1 → AC-1.3 | FR-6 → AC-6.1, AC-6.2] | modify `src/model/auth.ts`, `src/lib/getKeys.ts`, `src/lib/addKey.ts`; delete `src/lib/isTokenAuth.ts` | Effort: M

> **Intent**: The landmine — `const enc = isTokenAuth(auth) ? auth.token : auth.password` at `getKeys.ts:16` and `addKey.ts:17` is on the token path (branch selector, not dead code). The replacement value **must stay `auth.token`** so the LokiDB cache encryption key does not change and existing token sessions keep decrypting (NFR-3 reliability). This step is kept atomic: collapsing the union in `model/auth.ts` makes `auth.password` a type error at exactly these two sites, so the model change and the landmine fix must land together for the build to compile.

- In `src/model/auth.ts`: remove `PasswordAuth`; `Auth` becomes `TokenAuth`
- In `src/lib/getKeys.ts` (:16) and `src/lib/addKey.ts` (:17): change `enc = isTokenAuth(auth) ? auth.token : auth.password` → `enc = auth.token`; drop the `isTokenAuth` import (`getKeys.ts:4`, `addKey.ts:4`)
- Delete `src/lib/isTokenAuth.ts`
- Write a regression test guarding the landmine: `getKeys`/`addKey` derive `enc = auth.token` and the local cache encrypts/decrypts under a `{ token }` session (AC-6.1). Extend the existing `{ token }` fixture in `src/lib/getIamKey.test.ts`
- **Verify**: `npx tsc --noEmit` passes across the whole project (token-only `Auth`); `npx jest src/lib/getKeys src/lib/addKey src/lib/getIamKey` passes; `grep -rn "isTokenAuth" src` returns nothing (AC-6.2)

> Depends on: STEP-1, STEP-2 | Enables: STEP-8, STEP-9

---

## Phase 2: Command & Configure Surface

> Reduce the user-facing surface to token-only: the auth-type picker, `configure`, the `login`/`logout` commands, `program.ts` flags, and `developer info`.

### STEP-4: Remove basic-auth choices from the auth-type picker
[FR-3 → AC-3.1] | modify `src/lib/promptForAuthType.ts` | Effort: S

> **Intent**: The picker is the single source of the auth-type choice list; removing the two basic entries here is what makes `configure` offer only token options. Constants must go too, since `configure`'s switch references them.

- Remove the `PASSWORD_AUTH_CHOICE` and `ALWAYS_ASK_AUTH_CHOICE` constants and their entries in the choices list; keep `REFRESH_TOKEN_AUTH_CHOICE` and `CREDENTIAL_PROCESS_AUTH_CHOICE`
- Write/adjust a test asserting exactly two choices (`refresh-token`, `credential-process`) are offered (AC-3.1)
- **Verify**: `npx jest src/lib/promptForAuthType` passes; `npx tsc --noEmit` clean

> Depends on: — | Enables: STEP-5 | Parallel with: STEP-6, STEP-8

### STEP-5: Strip password/always-ask cases from `configure`; reject removed `-A` values
[FR-3 → AC-3.2, AC-3.3, AC-3.4] | modify `src/lib/handlers/alks-developer-configure.ts` | Effort: M

> **Intent**: `configure` is the entry point where a user picks an auth type; it must no longer branch into password or always-ask, and a removed value passed via `-A/--auth-type` (e.g. `password`) must produce a clear error listing the remaining choices rather than silently no-op or prompt for a password (NFR-2).

- Remove the `PASSWORD_AUTH_CHOICE` case (lines 61-72) and the `ALWAYS_ASK_AUTH_CHOICE` case (lines 79-82)
- Drop the now-unused imports: `promptForPassword`, `promptForUserId`, `setUserId`, `setPassword`
- Ensure the switch's default/unmatched path errors on a removed/invalid `-A` value, reporting it is not a valid auth type and listing the remaining choices (AC-3.3)
- Keep `-A/--auth-type` handling for the two remaining valid types (AC-3.2)
- Update `src/lib/handlers/alks-developer-configure.test.ts`: strip password/username/always-ask cases and their mocks (`promptForPassword`, `promptForUserId`, `state/userId`, `state/password`); keep refresh-token + credential-process; add an invalid-`-A` rejection test (AC-3.3)
- **Verify**: `npx jest src/lib/handlers/alks-developer-configure` passes; `npx tsc --noEmit` clean

> Depends on: STEP-4 | Enables: STEP-9

### STEP-6: Convert `developer login` to a directed error stub
[FR-4 → AC-4.1] | modify `src/lib/handlers/alks-developer-login.ts` | Effort: S

> **Intent**: The command is kept wired but its handler becomes an error pointing to `login2fa` — this gives muscle-memory users and scripts a directed message instead of a confusing "unknown command" (AD-1, NFR-2). It also removes the last password-storing handler, a prerequisite for deleting the password helpers.

- Replace the basic-auth handler body (banner, `promptForUserId`→`setUserId`, `promptForPassword`→`setPassword`) with a `throw` of a directed error: "Basic auth has been removed; run `alks developer login2fa`"
- Remove imports of `promptForUserId`, `setUserId`, `promptForPassword`, `setPassword`
- Write a test asserting the handler throws the directed error and performs no password/userId writes (AC-4.1)
- **Verify**: `npx jest src/lib/handlers/alks-developer-login` passes; `npx tsc --noEmit` clean

> Depends on: — | Enables: STEP-7, STEP-9 | Parallel with: STEP-4, STEP-8

### STEP-7: Remove `logout`, login/logout wiring, and auth password/username flags from `program.ts`
[FR-4 → AC-4.2, AC-4.3 | FR-5 → AC-5.1] | modify `src/lib/program.ts`; delete `src/lib/handlers/alks-developer-logout.ts` | Effort: M

> **Intent**: `program.ts` is the commander wiring; this removes the password-only `logout` command entirely (its 2FA twin `logout2fa` remains) and strips the auth `-p/--password` and `-u/--username` inputs so no removed credential can be supplied on the command line. `login` stays wired to the STEP-6 error stub. `-A/--auth-type` is explicitly retained.

- Delete `src/lib/handlers/alks-developer-logout.ts`
- In `src/lib/program.ts`: remove the `developer logout` command wiring (lines 434-437) and its handler import; keep the `developer login` command wired to the (now error-stub) handler
- Remove the auth `-p/--password` options (lines 126, 149, 172, 470) and the `-u/--username` option on `configure` (lines 384-386)
- Keep `-A/--auth-type` (lines 388-391); leave `login2fa`/`logout2fa` commands untouched (AC-4.3)
- **Verify**: `npx tsc --noEmit` clean; `grep -n "developer-logout\|--password\|--username" src/lib/program.ts` shows no auth password/username flags or logout wiring remain (AC-4.2, AC-5.1)

> Depends on: STEP-6 | Enables: STEP-9

### STEP-8: Remove password/userid rows from `developer info`
[FR-5 → AC-5.4] | modify `src/lib/handlers/alks-developer-info.ts` | Effort: S

> **Intent**: `developer info` prints a diagnostic table; it must stop reading `getPassword` (a prerequisite for deleting `state/password.ts`) and stop showing the now-meaningless Password and Network Login/userid rows, while keeping server/account/role/output and the 2FA-token row.

- Remove the `getPassword` import and call, and the "Password" table row
- Remove the orphaned `userid` / "Network Login" row
- Keep the server, account, role, output, and 2FA-token rows
- Update the info handler test (if present) to assert no Password or Network Login rows render; the token row remains (AC-5.4)
- **Verify**: `npx jest src/lib/handlers/alks-developer-info` passes (or `npx tsc --noEmit` clean if no test exists); `grep -n "getPassword\|Password\|Network Login" src/lib/handlers/alks-developer-info.ts` shows none

> Depends on: STEP-3 | Enables: STEP-9 | Parallel with: STEP-4, STEP-6

---

## Phase 3: Delete Helper Surface & Residual Type Fields

> Delete the dead password/userId helpers and remove the leftover `password?` fields — now that no code imports them.

### STEP-9: Delete the password/userId helper files
[FR-5 → AC-5.2, AC-5.3, AC-5.5] | delete `src/lib/state/password.ts`, `src/lib/state/userId.ts`, `src/lib/storePassword.ts`, `src/lib/getPasswordFromKeystore.ts`, `src/lib/removePassword.ts`, `src/lib/promptForPassword.ts`, `src/lib/promptForUserId.ts`, `src/lib/getUserIdFromPrompt.ts` | Effort: M

> **Intent**: These eight files are the basic-auth helper surface; the full importer inventory confirms their only consumers are the code removed in STEP-1/5/6/8, so they are now safe to delete. The trap: **do NOT delete `getPasswordFromPrompt.ts`** — despite the name it is a generic masked-input widget still imported by `promptForToken.ts` (the token flow). Verified: after deleting `promptForPassword.ts`, `getPasswordFromPrompt.ts`'s remaining importer is `promptForToken.ts`.

- Delete the eight files listed in the header (keytar service key `alkspassword` store/get/remove; userId state; interactive password/userId prompts; the already-orphaned `getUserIdFromPrompt.ts`)
- Delete any co-located `.test.ts` files for the deleted helpers
- **Preserve** `src/lib/getPasswordFromPrompt.ts` (AC-5.3)
- **Verify**: `npx tsc --noEmit` clean (no dangling imports); `test -f src/lib/getPasswordFromPrompt.ts` (kept); `grep -rn "state/password\|state/userId\|storePassword\|getPasswordFromKeystore\|removePassword\|promptForPassword\|promptForUserId\|getUserIdFromPrompt" src` returns no non-deleted references (AC-5.2, AC-5.5)

> Depends on: STEP-3, STEP-5, STEP-6, STEP-7, STEP-8 | Enables: STEP-10

### STEP-10: Remove residual `password?` type fields
[FR-1 → AC-1.2] | modify `src/lib/getCredentialsFromProcess.ts`, `src/lib/state/credentials.ts`, `src/model/developer.ts` | Effort: S

> **Intent**: With `state/password.ts` gone (the only reader of `credential_process.password`), the `password?` fields are dead. Removing `password?` from `CredentialProcessResult` makes the contract token-only — a `credential_process` emitting a password is no longer honored (AC-1.2, AD-3). Ordered after STEP-9 so removing the field cannot break the now-deleted reader.

- In `src/lib/getCredentialsFromProcess.ts`: remove `password?` from `CredentialProcessResult` (leaving `refresh_token?`)
- In `src/lib/state/credentials.ts` and `src/model/developer.ts`: drop the `password` field; keep `refresh_token` / `credential_process`
- Update `src/lib/state/developer.test.ts` as the password/userid fields are removed
- **Verify**: `npx jest src/lib/state/developer` passes; `npx tsc --noEmit` clean; `grep -rn "password" src/lib/getCredentialsFromProcess.ts src/model/developer.ts` shows no `password` field

> Depends on: STEP-9 | Enables: STEP-11

### STEP-11: Drop the legacy `.netrc` password-migration branch
[FR-7 → AC-7.1] | modify `src/lib/convertNetrcToIni.ts`; optional tidy `src/lib/ensureConfigured.ts` | Effort: S

> **Intent**: Legacy cleanup — the `.netrc` importer should no longer migrate an `alkscli` password while keeping the `alksclitoken` token migration. Per Open Question 3, the pre-existing line-43 bug (updates the wrong netrc key) is **deferred, not fixed here** — leave a comment noting it so it is not silently "fixed" mid-refactor.

- In `src/lib/convertNetrcToIni.ts`: remove the password-migration branch (lines 30-36); keep the token migration (lines 38-44). Add a comment flagging the pre-existing line-43 bug as out of scope
- Optional: in `src/lib/ensureConfigured.ts`, tidy the `developer.userid` "configured?" guard and its `ALKS_USERID` error text now that userId state is gone (functionally unaffected)
- Update the `convertNetrcToIni` test (if present): a legacy `alkscli` password is not migrated; `alksclitoken` token migration still works (AC-7.1)
- **Verify**: `npx jest src/lib/convertNetrcToIni` passes (or `npx tsc --noEmit` clean if no test exists)

> Depends on: STEP-10 | Enables: STEP-12

---

## Phase 4: Verification & Release Hygiene

> Full suite, grep sweep proving no removed symbol survives, and release packaging.

### STEP-12: Full build, test, grep sweep, and release hygiene
[FR-1 → AC-1.3 | FR-5 → AC-5.5 | FR-7 → AC-7.2] | modify `changelog.txt`, `package.json` | Effort: S

> **Intent**: The final gate proves the removal is complete and consistent: the build and full suite are green (NFR-3), no removed symbol lingers anywhere (NFR-1), and the release signals the breaking change as a major semver bump with a changelog entry (NFR-2, repo convention: update `changelog.txt` before the PR).

- Add a `changelog.txt` entry describing the basic-auth removal and enumerating every removed input (`ALKS_PASSWORD`, `-p/--password`, `-u/--username`, `developer login`/`logout`, `credential_process` password); set the `package.json` version to a major bump (AC-7.2 — pending Open Question 1)
- Run the full build and suite; confirm zero regressions for token + credential-process flows
- Run the grep sweep for removed symbols
- **Verify**: `npm run build` completes (tsc clean); `CI=true npx jest` passes with no failures; `grep -rn "PASSWORD_AUTH_CHOICE\|ALWAYS_ASK_AUTH_CHOICE\|promptForPassword\|setPassword\|getPassword\|ALKS_PASSWORD\|isTokenAuth" src` returns no matches, and `grep -n "\-\-password" src/lib/program.ts` shows no auth password flag (AC-5.5)

> Depends on: STEP-11 (transitively gates all prior work) | Enables: —

---

## Architecture Decisions

### AD-1: `developer login` becomes an error stub, not a silent removal
- **Context**: Removing basic auth eliminates `developer login`'s reason to exist, but muscle-memory users and existing scripts still call it. Dropping the command yields a confusing "unknown command"; keeping a working command contradicts the removal.
- **Decision**: We will keep the `developer login` command wired but replace its handler with a `throw` directing the user to `alks developer login2fa`.
- **Rationale**: A directed error is the most actionable outcome for the breaking change (NFR-2) and costs almost nothing to maintain.
- **Alternatives Considered**: Delete the command outright — rejected because "unknown command" gives no migration guidance. Keep it functional with a deprecation warning — rejected because the whole point is removal.

### AD-2: Collapse the `Auth` union and fix the landmine as one atomic step
- **Context**: Removing `PasswordAuth` from `model/auth.ts` turns `auth.password` into a type error at three sites. Two (`getAlks`, `getAuth`) are removed independently; the third is the cache-key ternary in `getKeys`/`addKey`, which is on the token path and cannot simply be deleted.
- **Decision**: We will remove the `getAuth`/`getAlks` password consumers first (STEP-1, STEP-2), then collapse the union and rewrite the `getKeys`/`addKey` ternary to `enc = auth.token` in a single step (STEP-3), keeping the encryption-key value identical.
- **Rationale**: A TypeScript union collapse cascades; batching the model change with the only remaining consumer keeps the build compilable at phase boundaries and prevents the landmine from silently rotating the cache key.
- **Alternatives Considered**: Collapse the union first, then chase compile errors — rejected as error-prone (risks a naive `auth.password` deletion changing the cache key). Change the cache-key value to something derived — rejected: NFR-3 requires the key stays `auth.token`.

### AD-3: `credential-process` is token-only post-change
- **Context**: `CredentialProcessResult` currently accepts both `password?` and `refresh_token?`; the `password?` path fed basic auth via `state/password.ts`.
- **Decision**: We will remove `password?` from `CredentialProcessResult`; a `credential_process` that emits a password is no longer honored (STEP-10).
- **Rationale**: Basic auth is being removed wholesale; honoring a credential-process password would leave a backdoor into the removed path.
- **Alternatives Considered**: Keep `password?` but ignore it — rejected: silently ignoring a supplied credential is more confusing than removing the field so the contract is explicit.

---

## Risks and Mitigations

| Risk | Impact | Probability | Mitigation | Affected Steps |
|------|--------|-------------|------------|----------------|
| Cache-key landmine: a naive union collapse changes `enc` and invalidates existing token sessions | H | L (identified) | Keep `enc = auth.token`; atomic STEP-3; regression test proves stable key under `{ token }` session | STEP-3 |
| Type-union collapse leaves the build red mid-refactor | M | M | Ordering: remove consumers (STEP-1/2) before collapse; `tsc --noEmit` at each step; correctness proven at phase granularity | STEP-1, STEP-2, STEP-3 |
| Accidentally deleting `getPasswordFromPrompt.ts` (token-flow dependency) | H | L | Explicit KEEP in STEP-9; verified importer is `promptForToken.ts`; Verify asserts the file still exists | STEP-9 |
| Automation using `ALKS_PASSWORD`/`-p`/`developer login`/password `credential_process` breaks at upgrade | M | M | Intended; directed errors (STEP-6), major semver + changelog + comms aligned to 2026-07-20 | STEP-6, STEP-10, STEP-12 |
| Removing `password?` from `CredentialProcessResult` before its reader is deleted breaks the build | M | L | Order STEP-10 after STEP-9 (reader `state/password.ts` already deleted) | STEP-9, STEP-10 |

---

## Open Questions

1. Should the release be a major semver bump?
   - Affects: STEP-12
   - Default if unresolved: Yes — major bump with release notes (per FR-7 / NFR-2)
2. Is a hard server-side cutoff needed to force adoption, and how does its timing align with 2026-07-20?
   - Affects: none (no plan step)
   - Default if unresolved: Out of scope for this CLI plan — tracked as a Phase 3 / ALKS Core dependency; monitored via Splunk (NFR-4)
3. Should the pre-existing `convertNetrcToIni` line-43 bug (updates the wrong netrc key) be fixed here?
   - Affects: STEP-11
   - Default if unresolved: Defer — leave a comment flagging it; do not fix in this change

---

## Non-Functional Verification

| NFR | Target | Method | Step |
|-----|--------|--------|------|
| NFR-1: Security | Zero password-handling paths; no `ALKS_PASSWORD`/keystore password | Removal implemented in STEP-3/5/7/9/10; grep sweep in STEP-12 returns no matches for removed symbols | STEP-5, STEP-7, STEP-9, STEP-10, STEP-12 |
| NFR-2: Compatibility | Major version bump; release notes enumerate every removed input; directed errors on removed commands | `developer login` throws directed error; `package.json` major bump + `changelog.txt` entry enumerating removed inputs | STEP-6, STEP-12 |
| NFR-3: Reliability | Token/credential-process unchanged; stable cache key; green suite | Landmine regression test (`enc = auth.token`); `CI=true npx jest` green | STEP-3, STEP-12 |
| NFR-4: Operability | Basic-auth authentications trend to 0 (< 1/24h by Phase 3 review) | Post-deploy Splunk (`cai_alks_prod`, `appName=alks`) — no plan step | N/A (post-deploy) |

---

## Effort Legend

| Size | Guideline |
|------|-----------|
| XS | < 1 hour: trivial change, single function/config |
| S | 1-4 hours: small feature, single file |
| M | 4-8 hours: moderate feature, 2-3 files |
| L | 1-3 days: significant feature, multiple files |
| XL | 3+ days: complex feature, consider splitting |
