Artifact f509839d51ad26a1032c1e28bb6b196b840e95f045d9ca0c2133fda2bb5911e1:
- File
test/pic/docs.allow
— part of check-in
[bcb82b941e]
at
2026-11-23 11:55:36
on branch keysource
— Keep the credential store's key in the Keychain or a key file, not behind a passphrase
A new store gets a random 32-byte master key kept in the login Keychain (macOS, /usr/bin/security run as a child with the command on stdin) or the keyring (secret-tool), else ~/.pic/master.key at 0600. The source is recorded in picu_credential_key.source; a passphrase store keeps working as before. pic auth rekey keychain|file|passphrase reseals every sealed row in one transaction, and a typed passphrase is followed once by the offer to stop asking. --passphrase-fd and PIC_PASSPHRASE_COMMAND (setting passphraseCommand) give a passphrase with no terminal. pic remote opens a keychain or file store with no prompt. Every OS service stays in platform.c behind secret_key, secret_keep and secret_drop. (user: dmestas, size: 4808) [annotate] [blame] [check-ins using]
# Names in src/ that docs/reference/ deliberately leaves out: NAME, then why. # test/pic/docs.sh fails when a line here names nothing in src/ any more. PIC_CRASH_AT test seam: the crash suite's fault points (dev builds only) PIC_INBOX_FAIL_SETTLE test seam: an inbox delivery whose settle fails after its command ran (dev builds only) PIC_TEST_RC test seam: /remote-control's host lookups, TAILSCALE_NAME|LOCAL_NAME|SSH[|TAILSCALE_IP] (dev builds only) PIC_TEST_PAIR_TTL test seam: a pairing offer's lifetime in seconds instead of 600 (dev builds only) PIC_NO_KEY_CHECKS test seam: the terminal interface starts no free check of a key on its own (pty_drive sets it; empty turns the checks on) PIC_PROBE_DEADLINE test seam: seconds a free check of a key may take, to test one that gets no answer PIC_NO_WATCH test seam: stands in for a platform with no file watch, so the inbox's stat fallback runs PIC_RUN_AT test seam: runs a command at a fault point, a change made at an exact moment (dev builds only) PIC_TEST_PASSPHRASE test seam: the credential store's passphrase without a terminal; a new store then takes a passphrase (dev builds only) PIC_TEST_KEYCHAIN test seam: a program standing in for the keystore (security on macOS, secret-tool elsewhere), so no test touches the real one cred.offer internal setting: "declined" once the offer to stop asking for the passphrase was answered no PIC_TEST_OPENAI_AUTH test seam: Sign in with ChatGPT's authorization server (dev builds only) PIC_TEST_OPENAI_API test seam: where a Sign in with ChatGPT token may be sent (dev builds only) PIC_TEST_OPENROUTER_SITE test seam: OpenRouter's sign-in site (dev builds only) PIC_TEST_OAUTH_PORT test seam: the sign-in's callback port, 0 for a free one (dev builds only) --pipe internal: the terminal interface runs pic auth login through pipes (JSON lines out, a pasted redirect in) PIC_TEST_BROWSER test seam: the program that opens a sign-in address (dev builds only) PIC_KEY_FD internal: the terminal hands the sealing key to its request children through this pipe PIC_SKILLS_NOW_MS test seam: the clock for skill use and its decay, in ms since the epoch PIC_IDLE_SECONDS test seam: shortens how long a stream may pause (120 s) PIC_LAUNCH_DELAY_MS test seam: delays a spawned command (dev builds only) PIC_CLIPBOARD_FILES_FILE test seam: a file standing in for the clipboard's file list PIC_CLIPBOARD_IMAGE_FILE test seam: a file standing in for the clipboard's image PIC_CLIPBOARD_TEXT_FILE test seam: a file standing in for the clipboard's text ps.noticed_ms internal setting: when pic last printed the running-processes notice ALACRITTY_WINDOW_ID terminal detection (whether links are clickable), set by the terminal itself GHOSTTY_RESOURCES_DIR terminal detection (whether links are clickable), set by the terminal itself ITERM_SESSION_ID terminal detection (whether links are clickable), set by the terminal itself KITTY_WINDOW_ID terminal detection (whether links are clickable), set by the terminal itself WARP_SESSION_ID terminal detection (whether links are clickable), set by the terminal itself WEZTERM_PANE terminal detection (whether links are clickable), set by the terminal itself WT_SESSION terminal detection (whether links are clickable), set by the terminal itself TERM terminal detection (whether links are clickable), set by the terminal itself TERM_PROGRAM terminal detection (whether links are clickable), set by the terminal itself VTE_VERSION terminal detection (which desktop notification a VTE terminal understands), set by the terminal itself TMUX terminal detection (no links inside tmux), set by tmux STY terminal detection (no links inside screen), set by screen SSH_CLIENT session detection, set by ssh: whether the terminal already accelerates the wheel SSH_CONNECTION session detection, set by ssh: whether the terminal already accelerates the wheel SSH_TTY session detection, set by ssh: whether the terminal already accelerates the wheel DBUS_SESSION_BUS_ADDRESS keystore choice (Linux): whether secret-tool can reach a Secret Service, set by the desktop session PATH where secret-tool is found (Linux), set by the shell DISPLAY clipboard tool choice, set by the desktop session WAYLAND_DISPLAY clipboard tool choice, set by the desktop session XDG_SESSION_TYPE clipboard tool choice, set by the desktop session text not an event: the content block type inside a message PIC_TEST_RC_IDLE test seam: pic remote's dead-stream timeout in seconds, for the soak test (dev builds only) PIC_TEST_RC_REKEY_MS test seam: how old a remote session is before bye asks it to start again, and the grace after (dev builds only) --new-session internal: pic remote's pic submit for a new conversation with the id it chose --detached internal: /rc starts pic remote with the key on an inherited pipe