Skip to content

Add a project-local verification skill for Open Pstack #90

Closed

Description

@arjitj2

Add a Codex project skill with a maintained feature map for installed skill invocation, model setup, and the shipped CLI tools. Ground the commands in this checkout, run one mapped feature end to end in isolated state, and retain action/output evidence after cleanup. Keep local CLI proof distinct from the installed-harness release gate.

Activity

  1. ericlitman commented on Oct 1, 2026

    @ericlitman
    Owner

    Reopening. There's no project verification skill on main (checked at 1c91e65) or in the maintainer checkout. Factory build sandboxes don't have bun, claude, codex, or grok, so the installed-candidate gate in AGENTS.md has to run on the Mac.

    Acceptance criteria:

  2. ericlitman commented on Oct 2, 2026

    @ericlitman
    Owner

    Scope update, 2026-10-02 (supersedes the 10-01 acceptance list where they differ)

    The Mergify queue from #100 (PR #107, on main) admits a PR only when it is not a draft and verify, Unfret, and live-gate all pass. Today the operator posts live-gate by hand. This skill replaces that manual step.

    What the skill does, run by the operator on the Mac:

    1. It takes a PR number and resolves the exact head SHA. It refuses if the head moves during the run.
    2. It installs that head of the pstack plugin into Claude Code and Codex in isolated state, not the operator's daily install. It records each harness's installed version.
    3. It runs the changed behavior from each affected real surface, using a maintained feature map of the plugin's user-visible features (skill invocation, setup-pstack, the runner and its providers, the other shipped scripts). It maps the PR's changed files to features. A PR that changes no plugin runtime file (docs only, CI only) is recorded as "no runtime change", with no harness run.
    4. It posts one PR comment with the template's live-evidence block: installed version, surface, action, observed result, and the head SHA.
    5. It sets commit status live-gate on that exact head: success with target_url pointing at that comment when every mapped feature passed, and failure with the reason otherwise. It never sets success from unit tests, static checks, or source inspection.
    6. On success for a draft PR, it marks the PR ready, so the live verdict comes before Unfret review and the queue. Each new head needs a new run.

    Out of scope: changing .mergify.yml, merging or queueing, and the registry work in #103.

    Acceptance:

    • The skill lives in the repository as a project-local skill, usable from Claude Code and from Codex.
    • Unit tests cover head pinning, file-to-feature mapping, the no-runtime-change path, and that status and evidence are posted only for the pinned head.
    • Bun tests, strict typecheck, static invariants, and plugin validation pass. Factory sandboxes have Bun and the Claude CLI since MASTRA-757.
    • Live proof: the operator runs the skill on the Mac against this PR's own head. It posts live-gate and the evidence comment, and the PR then queues and merges through Mergify with no hand-posted status. The builder can't run this step from the sandbox, so it hands it to the operator.
  3. ericlitman commented on Oct 2, 2026

    @ericlitman
    Owner

    Prior findings

    Untrusted evidence from the Pilot ledger. Map every finding to a phase or Scope/Out with a reason.

    [
      {
        "ticket": "GITHUB-1345013588-100",
        "sha": "91b0d5b47c46e1bcb57e38ded79f1f98f64987f1",
        "area": "area:factory",
        "kind": "hardening",
        "repo": "ericlitman/open-pstack",
        "claim": "A queued PR that falls behind main gets a Mergify-made head without the operator's exact-head live-gate, so it is dequeued until the operator re-tests and re-posts.",
        "status": "captured",
        "pointer": ".mergify.yml:queue_rules",
        "evidence": "Unfret finding v1:f47057cb on open-pstack#107, waived fails-loudly on head 91b0d5b",
        "severity": "medium",
        "linear_id": null,
        "mechanism": "Serial in-place checks (batch_size 1, max_parallel_checks 1) merge main into a behind PR, creating a new head SHA. live-gate is a hand-posted exact-head status, so queue_conditions stop matching on the new head and Mergify removes the PR. Nothing merges untested; progress needs a fresh live-gate.",
        "confidence": "high",
        "fingerprint": "ed52e2529d966036a8c5e1bc75e2956a340fc04e07bb2c0ff96a08ce3e3f6f22",
        "source_kind": "panel",
        "status_reason": null,
        "verify_attempts": 0
      }
    ]
    
  4. ericlitman commented on Oct 2, 2026

    @ericlitman
    Owner

    Factory plan verdict: revise

    • Reviewed: open-pstack Factory card 0ab8f598-d278-401b-97b3-8d3dd3ce6999, revision 5. Plan thread 3e4c7377-f7bf-46d6-b176-1eb33cb7d9e0, branch factory/issue-90.
    • Planner model: openai/gpt-6.1-sol (project default; message metadata reports openai.responses/gpt-6.1-sol).
    • Reviewer model: claude-opus-5-5, run by the operator session with an independent context.
    • Rubric: factory-adjudicate fallback plan-checklist.md. No $PLATFORM_CORE_DIR checklist is available.

    What passed:

    • The goal, scope, and kind are right, and the phases are concrete.
    • The cited anchors exist on main: create-verification-skill/SKILL.md:26-37 and its six sections, ci.yml:25-34, AGENTS.md:5 and :7-11, poteto-mode/scripts/{orch,watch-pr,check-plan.mjs,worktree-audit.sh}, and show-me-your-work/scripts/log.sh.
    • The head pinning, fail-closed mapping, and publication ordering match the 10-02 scope.

    Four fixes are needed.

    1. Gates 2 and 3: the plan changes a shipped plugin file while saying it doesn't

    The plan says "No planned .mergify.yml, registry, plugin-version, or plugin-content changes". It also lists, under Modified: "plugins/pstack/skills/poteto-mode/scripts/package.json — include helper tests and strict typecheck." That package.json ships inside the plugin to every user, so a repository-only tool would leak into the distributed package.

    Passing looks like: the helper's tests and typecheck run from a package that doesn't ship. For example, a root-level or skill-local package.json and tsconfig.json, plus one added step in .github/workflows/ci.yml (listed under Modified, with a reason). Alternatively, the plan states and justifies why the plugin package must carry it. plugins/pstack/** stays unchanged.

    2. Section structure and gate 4: no diff budget

    The section is titled "Expected files" and states no budget. The plan adds five TypeScript modules with tests, a feature map with several documents, a shell entrypoint, and invariant extensions. That is likely well over 400 added lines.

    Passing looks like: a "Diff budget & expected files" section with an estimated gross added non-generated line count, split into code, tests, and docs. If the code and tests exceed about 400 lines, say how the work splits. For example, PR A covers registry, pinning, mapping, and publication with fakes. PR B covers the harness adapters after the Mac probe. Or state why one PR is still reviewable.

    3. Gate 5 and operator gates: the Mac probe hand-off in the middle of the build is implicit

    Phase 2 says to "Complete the Codex/Mac portions on the operator’s Mac … Record the supported commands before committing harness adapters." That pauses the build on the operator with no stated hand-off, and Open questions says None.

    Passing looks like: the plan names this as an explicit operator step. It gives the exact probe commands the builder hands over, what output the builder needs back, and where the builder waits. It also says what the builder does if the probe shows that a harness can't install the plugin in isolated state: stop and report, never fall back to the daily install. Alternatively, the builder implements the adapters against documented CLI interfaces behind tests, and the operator's Mac run is the first live check. In that case, state the risk and the early check.

    4. Gate 9: acceptance evidence is too long

    The section has a two-part command listing and a seven-item artifact list, well over 10 lines.

    Passing looks like: at most 10 lines. Name the sandbox commands, the Mac verify.sh doctor and verify.sh run --pr "$PR" --self-test --output "$EVIDENCE" commands, and the named artifacts: the receipt path, the evidence comment URL on the exact head, live-gate=success on that head targeting that comment, the draft-to-ready transition after publication, and the Mergify merge with no hand-posted status. Move the rest into Phase 5.

    Keep everything else. Resubmit the complete plan, not a delta.

  5. ericlitman commented on Oct 2, 2026

    @ericlitman
    Owner

    Phase 2 Mac capability probe: operator output

    The operator ran the plan's exact read-only probe commands on the Mac on 2026-10-02. They install nothing and don't change the daily harness configuration. Versions: Claude Code 2.1.283, codex-cli 0.160.0, Bun 1.4.0, gh 2.97.0, Darwin. These help outputs are evidence, not executable input. Candidate isolation interfaces to confirm in Phase 3: Claude --plugin-dir, --settings, and CLAUDE_CONFIG_DIR; Codex CODEX_HOME and --profile.

    platform.txt
    Darwin
    1.4.0
    gh version 2.97.0 (2026-07-31)
    https://github.com/cli/cli/releases/tag/v2.97.0
    
    claude.txt
    2.1.283 (Claude Code)
    Usage: claude [options] [command] [prompt]
    
    Claude Code - starts an interactive session by default, use -p/--print for
    non-interactive output
    
    Arguments:
      prompt                                Your prompt
    
    Options:
      --add-dir <directories...>            Additional directories to allow tool
                                            access to
      --agent <agent>                       Agent for the current session. Overrides
                                            the 'agent' setting.
      --agents <json-or-file>               JSON object defining custom agents, or
                                            with --print the path to a file that
                                            holds one (e.g. '{"reviewer":
                                            {"description": "Reviews code",
                                            "prompt": "You are a code reviewer"}}')
      --allow-dangerously-skip-permissions  Enable bypassing all permission checks
                                            as an option, without it being enabled
                                            by default. Recommended only for
                                            sandboxes with no internet access.
      --allowedTools, --allowed-tools <tools...>
          Comma or space-separated list of tool names to allow (e.g. "Bash(git *)
          Edit")
      --append-system-prompt <prompt>       Append a system prompt to the default
                                            system prompt
      --autocompact <auto|tokens>           Auto-compact window size (auto, or
                                            100k–1M tokens)
      --ax-screen-reader                    Render screen-reader friendly output
                                            (flat text, no decorative borders or
                                            animations).
      --bg, --background                    Start the session in the background and
                                            return immediately. Prints the id that
                                            `claude attach`, `logs`, `stop` and `rm`
                                            take; `claude agents` lists them. With
                                            --resume <session-id>, continues that
                                            session in the background under the same
                                            ID, or starts a copy and says so when
                                            the session is already running
      --bare                                Minimal mode: skip hooks (those defined
                                            in settings and by installed plugins;
                                            features built into Claude Code are
                                            unaffected), LSP, plugin sync,
                                            attribution, auto-memory, background
                                            prefetches, keychain reads, and
                                            CLAUDE.md auto-discovery. Sets
                                            CLAUDE_CODE_SIMPLE=1. Anthropic auth is
                                            strictly ANTHROPIC_API_KEY or
                                            apiKeyHelper via --settings (OAuth and
                                            keychain are never read). 3P providers
                                            (Bedrock/Vertex/Foundry) use their own
                                            credentials. Skills still resolve via
                                            /skill-name. Explicitly provide context
                                            via: --system-prompt[-file],
                                            --append-system-prompt[-file], --add-dir
                                            (CLAUDE.md dirs), --mcp-config,
                                            --settings, --agents, --plugin-dir.
      --betas <betas...>                    Beta headers to include in API requests
                                            (API key users only)
      --brief                               Enable SendUserMessage tool for
                                            agent-to-user communication
      --chrome                              Enable Claude in Chrome integration
      --client-data-url <url>               URL for a signed configuration document.
                                            Claude Code exits if it cannot load it
                                            or it does not cover the selected model.
                                            Setting CLAUDE_CODE_CLIENT_DATA_URL
                                            instead keeps the URL out of the process
                                            list
      --cloud [description|session_id|url]  Create a cloud session with the given
                                            description, or attach to an existing
                                            one by session ID or claude.ai/code URL
      -c, --continue                        Continue the most recent conversation in
                                            the current directory
      --dangerously-skip-permissions        Bypass all permission checks.
                                            Recommended only for sandboxes with no
                                            internet access.
      -d, --debug [filter]                  Enable debug mode with optional category
                                            filtering (e.g., "api,hooks" or
                                            "!1p,!file")
      --debug-file <path>                   Write debug logs to a specific file path
                                            (implicitly enables debug mode)
      --disable-slash-commands              Disable all skills
      --disallowedTools, --disallowed-tools <tools...>
          Comma or space-separated list of tool names to deny (e.g. "Bash(git *)
          Edit")
      --effort <level>                      Effort level for the current session
                                            (low, medium, high, xhigh, max)
      --environment <environment_id>        Create a new cloud session that runs on
                                            the given self-hosted environment
                                            (ccpool_...).
      --exclude-dynamic-system-prompt-sections
          Move per-machine sections (cwd, env info, memory paths, git status) from
          the system prompt into the first user message. Improves cross-user
          prompt-cache reuse. Only applies with the default system prompt (ignored
          with --system-prompt). (default: false)
      --fallback-model <model>              Enable automatic fallback to specified
                                            model(s) when the default model is
                                            overloaded or not available. Accepts a
                                            comma-separated list to try each in
                                            order. Re-tries the primary at the start
                                            of each user turn.
      --file <specs...>                     File resources to download at startup.
                                            Format: file_id:relative_path (e.g.,
                                            --file file_abc:doc.txt
                                            file_def:img.png)
      --fork-session                        When resuming, create a new session ID
                                            instead of reusing the original (use
                                            with --resume or --continue)
      --forward-subagent-text               Forward subagent text and thinking
                                            blocks as assistant/user messages with
                                            parent_tool_use_id set (only works with
                                            --print and --output-format=stream-json)
      --from-pr [value]                     Resume a session linked to a PR by PR
                                            number/URL, or open interactive picker
                                            with optional search term
      -h, --help                            Display help for command
      --ide                                 Automatically connect to IDE on startup
                                            if exactly one valid IDE is available
      --include-hook-events                 Include all hook lifecycle events in the
                                            output stream (only works with
                                            --output-format=stream-json)
      --include-partial-messages            Include partial message chunks as they
                                            arrive (only works with --print and
                                            --output-format=stream-json)
      --input-format <format>               Input format (only works with --print):
                                            "text" (default), or "stream-json"
                                            (realtime streaming input) (choices:
                                            "text", "stream-json")
      --json-schema <schema>                JSON Schema for structured output
                                            validation. Example:
                                            {"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}
      --max-budget-usd <amount>             Maximum dollar amount to spend on API
                                            calls (only works with --print)
      --mcp-config <configs...>             Load MCP servers from JSON files or
                                            strings (space-separated)
      --model <model>                       Model for the current session. Provide
                                            an alias for the latest model (e.g.
                                            'fable', 'opus', or 'sonnet') or a
                                            model's full name (e.g.
                                            'claude-fable-5').
      -n, --name <name>                     Set a display name for this session
                                            (shown in the prompt box, /resume
                                            picker, and terminal title)
      --no-chrome                           Disable Claude in Chrome integration
      --no-session-persistence              Disable session persistence - sessions
                                            will not be saved to disk and cannot be
                                            resumed (only works with --print)
      --output-format <format>              Output format (only works with --print):
                                            "text" (default), "json" (single
                                            result), or "stream-json" (realtime
                                            streaming) (choices: "text", "json",
                                            "stream-json")
      --permission-mode <mode>              Permission mode to use for the session
                                            (choices: "acceptEdits", "auto",
                                            "bypassPermissions", "manual",
                                            "dontAsk", "plan")
      --permission-prompts <target>         Who answers permission prompts with
                                            --print: "host" (the SDK host or
                                            --permission-prompt-tool) or "none"
                                            (nobody: anything that would prompt is
                                            denied automatically; the permission
                                            mode still decides everything else)
                                            (choices: "host", "none", default:
                                            "host")
      --plugin-dir <path>                   Load a plugin from a directory or .zip
                                            for this session only; a folder of
                                            plugins loads each child (repeatable:
                                            --plugin-dir A --plugin-dir B.zip)
                                            (default: [])
      --plugin-url <url>                    Fetch a plugin .zip from a URL for this
                                            session only (repeatable: --plugin-url A
                                            --plugin-url B) (default: [])
      -p, --print                           Print response and exit (useful for
                                            pipes). Note: The workspace trust dialog
                                            is skipped when Claude is run in
                                            non-interactive mode (via -p, or when
                                            stdout is not a TTY, e.g. piped or
                                            redirected output). Only use this in
                                            directories you trust. Settings files
                                            that fail validation are silently
                                            ignored in this mode (no error dialog is
                                            shown).
      --prompt-suggestions [value]          Enable prompt suggestions. In print/SDK
                                            mode, emits a prompt_suggestion message
                                            after each turn with a predicted next
                                            user prompt (choices: "true", "false",
                                            "1", "0", "yes", "no", "on", "off",
                                            preset: "true")
      --remote-control [name]               Start an interactive session with Remote
                                            Control enabled (optionally named)
      --remote-control-session-name-prefix <prefix>
          Prefix for auto-generated Remote Control session names (default: hostname)
      --replay-user-messages                Re-emit user messages from stdin back on
                                            stdout for acknowledgment (only works
                                            with --input-format=stream-json and
                                            --output-format=stream-json)
      --restricted                          Restricted mode: removes the built-in
                                            tools that run commands or code (Bash,
                                            PowerShell, REPL and the other
                                            code-running tools) and WebFetch unless
                                            --tools names them, and ignores user,
                                            project and local settings files
                                            (managed settings and --settings still
                                            apply; add --strict-mcp-config to skip
                                            MCP servers too). Also confines the file
                                            tools to the working directories
                                            (--add-dir included), refuses
                                            bypassPermissions, and lets only a
                                            person or the configured permission
                                            handler approve writes to settings, git
                                            and tool-configuration files.
      -r, --resume [value]                  Resume a conversation by session ID, or
                                            open interactive picker with optional
                                            search term
      --safe-mode                           Start with all customizations
                                            (CLAUDE.md, skills, installed plugins,
                                            hooks, MCP servers, custom commands and
                                            agents, output styles, workflows, custom
                                            themes, keybindings, and more) disabled
                                            — useful for troubleshooting a broken
                                            configuration. Admin-managed (policy)
                                            settings still apply. Auth, model
                                            selection, built-in tools and plugins,
                                            and permissions work normally. Sets
                                            CLAUDE_CODE_SAFE_MODE=1.
      --session-id <uuid>                   Use a specific session ID for the
                                            conversation (must be a valid UUID)
      --setting-sources <sources>           Comma-separated list of setting sources
                                            to load (user, project, local).
      --settings <file-or-json>             Path to a settings JSON file or a JSON
                                            string to load additional settings from
      --strict-mcp-config                   Only use MCP servers from --mcp-config,
                                            ignoring all other MCP configurations
      --system-prompt <prompt>              System prompt to use for the session
      --system-prompt-snapshot <on|off>     Record the system prompt once per
                                            conversation and reuse it verbatim on
                                            every request and resume. on (the
                                            default): the prompt is rendered on the
                                            conversation's first request — a
                                            --system-prompt or
                                            --append-system-prompt included — sent,
                                            and recorded; every later request and
                                            resume sends the record as-is, even when
                                            a later launch passes different text,
                                            until the conversation is compacted.
                                            off: never record; the prompt is
                                            rendered fresh every request (for
                                            iterating on prompt text). No effect
                                            where system-prompt recording is not yet
                                            enabled. (choices: "on", "off")
      --teleport [session]                  Resume a teleport session, optionally
                                            specify session ID
      --tmux                                Create a tmux session for the worktree
                                            (requires --worktree). Uses iTerm2
                                            native panes when available; use
                                            --tmux=classic for traditional tmux.
      --tools <tools...>                    Specify the list of available tools from
                                            the built-in set. Use "" to disable all
                                            tools, "default" to use all tools, or
                                            specify tool names (e.g.
                                            "Bash,Edit,Read").
      --verbose                             Override verbose mode setting from
                                            config
      -v, --version                         Output the version number
      -w, --worktree [name]                 Create a new git worktree for this
                                            session (optionally specify a name)
    
    Commands:
      agents [options]                      Manage background agents
      attach <id>                           Open a background session in this
                                            terminal. <id> is the short id that
                                            `claude --bg` prints and `claude agents`
                                            lists
      auth                                  Manage authentication
      auto-mode                             Inspect or reset auto mode classifier
                                            configuration
      doctor                                Check the health of your Claude Code
                                            installation. Reads settings files in
                                            the current directory without a trust
                                            prompt. For a full checkup that can also
                                            fix issues, run /doctor in a session.
      gateway [options]                     Run the enterprise auth/telemetry
                                            gateway
      import [options] [source]             Import config from another AI coding
                                            agent into Claude Code
      install [options] [target]            Install Claude Code native build. Use
                                            [target] to specify version (stable,
                                            latest, or specific version)
      logs <id>                             Print a background session's recent
                                            terminal output
      mcp                                   Configure and manage MCP servers
      plugin|plugins                        Manage Claude Code plugins
      project                               Manage Claude Code project state
      respawn [options] [id]                Restart a background session, or all of
                                            them with --all, so it runs the current
                                            Claude Code version
      rm <id>                               Delete a background session, and its
                                            worktree when that is safe. Works on
                                            sessions that have already exited
      setup-token                           Set up a long-lived authentication token
                                            (requires Claude subscription)
      stop|kill <id>                        Stop a background session. Its
                                            conversation is kept: `claude attach
                                            <id>` opens it again, `claude --resume`
                                            works once it is stopped
      ultrareview [options] [target]        Run a cloud-hosted multi-agent code
                                            review of the current branch (or a PR
                                            number / base branch) and print the
                                            findings
      update|upgrade                        Check for updates and install if
                                            available
    Usage: claude plugin|plugins [options] [command]
    
    Manage Claude Code plugins
    
    Options:
      -h, --help                           Display help for command
    
    Commands:
      details [options] <name>             Show a plugin's component inventory and
                                           projected token cost
      disable [options] [plugin]           Disable an enabled plugin
      enable [options] <plugin>            Enable a disabled plugin
      eval [options] [target]              Run eval cases (<eval dir>/**/case.yaml
                                           or prompt.md + graders/*.md; the eval dir
                                           is evals/ unless --eval-dir or the
                                           manifest says otherwise) against a plugin
                                           and report scored results. Target is a
                                           path, a plugin name, or a
                                           `plugin@marketplace` id — installed and
                                           skills-dir plugins both resolve (and add
                                           a no-plugin baseline arm). It loads the
                                           plugin and runs its eval suite (prompts,
                                           graders; scaffold scripts and real MCP
                                           servers only when you opt in) on your
                                           machine, as you: only evaluate plugins
                                           you trust — the run's sandboxing limits
                                           what a malicious plugin can reach but is
                                           not a guarantee, and a bundled suite
                                           passing is not a security vetting. The
                                           first run in an untrusted plugin
                                           directory asks you to confirm
                                           (--trust-plugin answers for CI)
      help [command]                       display help for command
      init|new [options] <name>            Scaffold a new plugin at
                                           ~/.claude/skills/<name>/ (auto-loads next
                                           session as <name>@skills-dir)
      install|i [options] <plugin>         Install a plugin from available
                                           marketplaces (use plugin@marketplace for
                                           specific marketplace)
      list [options]                       List installed plugins
      marketplace                          Manage Claude Code marketplaces
      prune|autoremove [options]           Remove auto-installed dependencies that
                                           are no longer needed
      tag [options] [path]                 Create a {name}--v{version} git tag for a
                                           plugin release, validating that
                                           plugin.json and any enclosing marketplace
                                           entry agree
      uninstall|remove [options] <plugin>  Uninstall an installed plugin
      update [options] <plugin>            Update a plugin to the latest version
                                           (restart required to apply)
      validate [options] <path>            Validate a plugin or marketplace
                                           manifest, or the skills, agents, and
                                           commands in a directory
    Usage: claude plugin marketplace add [options] <source>
    
    Add a marketplace from a URL, path, or GitHub repo
    
    Options:
      --claudeai           Add the marketplace of this name that claude.ai hosts for
                           you, by its listed name or its local name (see: claude
                           plugin marketplace list)
      -h, --help           Display help for command
      --scope <scope>      Where to declare the marketplace: user (default),
                           project, or local
      --sparse <paths...>  Limit checkout to specific directories via git
                           sparse-checkout (for monorepos). Example: --sparse
                           .claude-plugin plugins
    Usage: claude plugin install|i [options] <plugin>
    
    Install a plugin from available marketplaces (use plugin@marketplace for
    specific marketplace)
    
    Options:
      --accept-command <sha256>  Accept the marketplace-declared command (a
                                 command-source install, or the headersHelper that
                                 fetches the archive) whose sha256 a previous --json
                                 run reported as shownCommand.sha256; counts as -y
                                 for exactly that command, for that plugin and
                                 marketplace catalog, and nothing else. If either
                                 changed (a refresh that moved the catalog counts),
                                 the run refuses and reports the command again, to
                                 be shown to a person again
      --config <key=value>       Set a userConfig option declared in the plugin's
                                 manifest (repeatable). Values are validated against
                                 the schema and stored via the same path as the
                                 interactive /plugin configure flow.
      -h, --help                 Display help for command
      --json                     Print one machine-readable result line on stdout
                                 instead of the human message (same exit codes; a
                                 marketplace-declared command is still shown and
                                 must be confirmed — pass -y when not interactive)
      --registry <url>           For a <package>@npm install: resolve and download
                                 from this npm registry instead of the one your npm
                                 configuration selects
      -s, --scope <scope>        Installation scope: user, project, or local
                                 (default: "user")
      -y, --yes                  Accept the displayed marketplace-declared command
                                 without the confirmation prompt — a plugin
                                 installed by running a command, or one whose
                                 archive is fetched through a headersHelper command
                                 (required when stdin or stdout is not a TTY)
    
    codex.txt
    codex-cli 0.160.0
    Codex CLI
    
    If no subcommand is specified, options will be forwarded to the interactive CLI.
    
    Usage: codex [OPTIONS] [PROMPT]
           codex [OPTIONS] <COMMAND> [ARGS]
    
    Commands:
      agents            Browse all agent sessions on the shared local app-server daemon
      exec              Run Codex non-interactively [aliases: e]
      review            Run a code review non-interactively
      login             Manage login
      logout            Remove stored authentication credentials
      mcp               Manage external MCP servers for Codex
      plugin            Manage Codex plugins
      app-server        [experimental] Run the app server or related tooling
      remote-control    [experimental] Manage the app-server daemon with remote control enabled
      app               Launch the Desktop app (opens the app installer if missing)
      completion        Generate shell completion scripts
      update            Update Codex to the latest version
      doctor            Diagnose local Codex installation, config, auth, and runtime health
      sandbox           Run commands within a Codex-provided sandbox
      debug             Debugging tools
      apply             Apply the latest diff produced by Codex agent as a `git apply` to your local
                        working tree [aliases: a]
      resume            Resume a previous interactive session (picker by default; use --last to continue
                        the most recent)
      queue             Queue a message for an existing session
      archive           Archive a saved session by id or session name
      delete            Permanently delete a saved session by id or session name
      migrate-rollouts  Inspect or migrate legacy local sessions to paginated thread history
      unarchive         Unarchive a saved session by id or session name
      fork              Fork a previous interactive session (picker by default; use --last to fork the
                        most recent)
      cloud             [EXPERIMENTAL] Browse tasks from Codex Cloud and apply changes locally
      exec-server       [EXPERIMENTAL] Run the standalone exec-server service
      features          Inspect feature flags
      help              Print this message or the help of the given subcommand(s)
    
    Arguments:
      [PROMPT]
              Optional user prompt to start the session
    
    Options:
      -c, --config <key=value>
              Override a configuration value that would otherwise be loaded from `~/.codex/config.toml`.
              Use a dotted path (`foo.bar.baz`) to override nested values. The `value` portion is parsed
              as TOML. If it fails to parse as TOML, the raw string is used as a literal.
              
              Examples: - `-c model="o3"` - `-c 'sandbox_permissions=["disk-full-read-access"]'` - `-c
              shell_environment_policy.inherit=all`
    
          --enable <FEATURE>
              Enable a feature (repeatable). Equivalent to `-c features.<name>=true`
    
          --disable <FEATURE>
              Disable a feature (repeatable). Equivalent to `-c features.<name>=false`
    
          --remote <ADDR>
              Connect the TUI to a remote app server endpoint.
              
              Accepted forms: `ws://host:port`, `wss://host:port`, `unix://`, or `unix://PATH`.
    
          --remote-auth-token-env <ENV_VAR>
              Name of the environment variable containing the bearer token to send to a remote app
              server websocket
    
          --strict-config
              Error out when config.toml contains fields that are not recognized by this version of
              Codex
    
      -i, --image <FILE>...
              Optional image(s) to attach to the initial prompt
    
      -m, --model <MODEL>
              Model the agent should use
    
          --oss
              Use open-source provider
    
          --local-provider <OSS_PROVIDER>
              Specify which local provider to use (lmstudio or ollama). If not specified with --oss,
              will use config default or show selection
    
      -p, --profile <CONFIG_PROFILE_V2>
              Layer $CODEX_HOME/<name>.config.toml on top of the base user config
    
      -s, --sandbox <SANDBOX_MODE>
              Select the sandbox policy to use when executing model-generated shell commands
              
              [possible values: read-only, workspace-write, danger-full-access]
    
          --approve-for-me
              Route approval requests through automatic review using the workspace-write sandbox
    
          --dangerously-bypass-approvals-and-sandbox
              Skip all confirmation prompts and execute commands without sandboxing. EXTREMELY
              DANGEROUS. Intended solely for running in environments that are externally sandboxed
    
          --dangerously-bypass-hook-trust
              Run enabled hooks without requiring persisted hook trust for this invocation. DANGEROUS.
              Intended only for automation that already vets hook sources
    
      -C, --cd <DIR>
              Tell the agent to use the specified directory as its working root
    
          --worktree
              Run the session in a new managed Git worktree
    
          --add-dir <DIR>
              Additional directories that should be writable alongside the primary workspace
    
      -a, --ask-for-approval <APPROVAL_POLICY>
              Configure when the model requires human approval before executing a command
    
              Possible values:
              - on-request: The model decides when to ask the user for approval
              - never:      Never ask for user approval Execution failures are immediately returned to
                the model
    
          --search
              Enable live web search. When enabled, the native Responses `web_search` tool is available
              to the model (no per‑call approval)
    
          --no-alt-screen
              Disable alternate screen mode
              
              Runs the TUI in inline mode, preserving terminal scrollback history.
    
          --no-daemon
              Run without the shared background server, even if it is already running
    
      -h, --help
              Print help (see a summary with '-h')
    
      -V, --version
              Print version
    Manage Codex plugins
    
    Usage: codex plugin [OPTIONS] <COMMAND>
    
    Commands:
      add          Install a plugin from a configured or remote marketplace
      list         List plugins available from configured and remote marketplaces
      marketplace  Add, list, upgrade, or remove configured plugin marketplaces
      remove       Uninstall a plugin and remove its local cache
      help         Print this message or the help of the given subcommand(s)
    
    Options:
      -c, --config <key=value>
              Override a configuration value that would otherwise be loaded from `~/.codex/config.toml`.
              Use a dotted path (`foo.bar.baz`) to override nested values. The `value` portion is parsed
              as TOML. If it fails to parse as TOML, the raw string is used as a literal.
              
              Examples: - `-c model="o3"` - `-c 'sandbox_permissions=["disk-full-read-access"]'` - `-c
              shell_environment_policy.inherit=all`
    
          --enable <FEATURE>
              Enable a feature (repeatable). Equivalent to `-c features.<name>=true`
    
          --disable <FEATURE>
              Disable a feature (repeatable). Equivalent to `-c features.<name>=false`
    
      -h, --help
              Print help (see a summary with '-h')
    Add a local or Git marketplace to the configured marketplace sources
    
    Usage: codex plugin marketplace add [OPTIONS] <SOURCE>
    
    Arguments:
      <SOURCE>
              Marketplace source: a local path, owner/repo[@ref], HTTPS Git URL, or SSH Git URL
    
    Options:
      -c, --config <key=value>
              Override a configuration value that would otherwise be loaded from `~/.codex/config.toml`.
              Use a dotted path (`foo.bar.baz`) to override nested values. The `value` portion is parsed
              as TOML. If it fails to parse as TOML, the raw string is used as a literal.
              
              Examples: - `-c model="o3"` - `-c 'sandbox_permissions=["disk-full-read-access"]'` - `-c
              shell_environment_policy.inherit=all`
    
          --ref <REF>
              Git ref to fetch for Git marketplace sources
    
          --enable <FEATURE>
              Enable a feature (repeatable). Equivalent to `-c features.<name>=true`
    
          --sparse <PATH>
              Sparse checkout path for Git marketplace sources. Can be repeated
    
          --disable <FEATURE>
              Disable a feature (repeatable). Equivalent to `-c features.<name>=false`
    
          --json
              Output add result as JSON
    
      -h, --help
              Print help (see a summary with '-h')
    
    Examples:
      codex plugin marketplace add ./path/to/marketplace
      codex plugin marketplace add owner/repo --ref main
      codex plugin marketplace add https://github.com/owner/repo --sparse plugins/foo
    Install a plugin from a configured or remote marketplace.
    
    Pass either `PLUGIN@MARKETPLACE` or pass `PLUGIN` with `--marketplace MARKETPLACE`.
    
    Usage: codex plugin add [OPTIONS] <PLUGIN[@MARKETPLACE]>
    
    Arguments:
      <PLUGIN[@MARKETPLACE]>
              Plugin selector to install: either PLUGIN@MARKETPLACE or PLUGIN with --marketplace
    
    Options:
      -c, --config <key=value>
              Override a configuration value that would otherwise be loaded from `~/.codex/config.toml`.
              Use a dotted path (`foo.bar.baz`) to override nested values. The `value` portion is parsed
              as TOML. If it fails to parse as TOML, the raw string is used as a literal.
              
              Examples: - `-c model="o3"` - `-c 'sandbox_permissions=["disk-full-read-access"]'` - `-c
              shell_environment_policy.inherit=all`
    
      -m, --marketplace <MARKETPLACE>
              Marketplace name to use when PLUGIN does not include @MARKETPLACE
    
          --enable <FEATURE>
              Enable a feature (repeatable). Equivalent to `-c features.<name>=true`
    
          --json
              Output install result as JSON
    
          --disable <FEATURE>
              Disable a feature (repeatable). Equivalent to `-c features.<name>=false`
    
      -h, --help
              Print help (see a summary with '-h')
    
    Examples:
      codex plugin add sample@debug
      codex plugin add sample --marketplace debug
    
  6. ericlitman commented on Oct 2, 2026

    @ericlitman
    Owner

    Factory plan verdict: approve

    • Reviewed: open-pstack Factory card 0ab8f598-d278-401b-97b3-8d3dd3ce6999, revision 7. Plan thread 3e4c7377-f7bf-46d6-b176-1eb33cb7d9e0, branch factory/issue-90.
    • Planner model: openai/gpt-6.1-sol (the project default, confirmed in plan-thread metadata).
    • Reviewer model: claude-opus-5-5, run by the operator session with an independent context.
    • Rubric: factory-adjudicate fallback plan-checklist.md.

    The four revision-5 fixes are resolved:

    1. plugins/pstack/** is explicitly unchanged. Helper tests and typecheck move to a skill-local package with one added CI step.
    2. The diff budget is stated: about 1,500 gross added lines, split into 650 code, 500 tests, and 350 docs and registry. It stays one PR with a stated reason, and stops to re-budget past about 1,800 lines.
    3. The Mac probe is an explicit operator step with named commands, a wait point, and a stop-without-fallback rule.
    4. Acceptance evidence is 8 lines, with named commands, artifacts, and environments.

    Anchors spot-checked on main at 6c44500:

    • AGENTS.md:5 and :7-11
    • UPSTREAM.md:50-52
    • create-verification-skill/SKILL.md:26-37
    • .github/workflows/ci.yml:22-34
    • .github/pull_request_template.md:8-16
    • .mergify.yml: workflow-file changes are excluded from automatic queueing.
    • claude plugin validate --strict exists.

    Gate 7: the only open question was the Phase 2 operator probe. The operator ran the plan's exact commands on the Mac and posted all three outputs at #90 (comment). The question is resolved, and no other operator input remains before build.

    Build conditions

    • Use the posted probe outputs as the Phase 2 evidence. Don't wait for another probe. Confirm the isolation interface choice in Phase 3. If neither harness supports isolated installation, stop and report it. Never fall back to the daily install.
    • No file under plugins/pstack/** may appear in the diff. Show git diff --stat origin/main -- plugins/pstack empty in the hand-off.
    • The builder doesn't post live-gate, mark the PR ready, queue, or merge. The operator runs verify.sh doctor and verify.sh run --pr <PR> --self-test on the Mac. Because the PR changes .github/workflows/ci.yml, the operator queues it by hand.
    • Open a new draft PR from factory/issue-90 that closes Add a project-local verification skill for Open Pstack #90.
  7. added 3 commits that reference this issue on Oct 2, 2026
  8. ericlitman commented on Oct 2, 2026

    @ericlitman
    Owner

    Amended build condition (operator, 2026-10-02)

    This supersedes the plan's Phase 5 CI step and the "Modified: .github/workflows/ci.yml" line in the revision-7 approval. Every other approved condition still applies.

    Why: the Factory builder pushes as the Mastra Platform GitHub App, which mastra-ai owns. That App has no workflows permission, so GitHub rejects any push that changes .github/workflows/. The rejected commit was 0b6d7f9.

    Condition:

    • Don't change any file under .github/workflows/.
    • Run the helper's checks from tests/skill-collision-repro.sh, which CI already runs with Bun 1.4.0 at ci.yml:31-34. Add a step that runs bun install --frozen-lockfile, bun run test, and bun run typecheck in .claude/skills/verify-open-pstack. The step must fail the script on any failure, and it must also run under PSTACK_STATIC_ONLY=1.
    • Amend or replace 0b6d7f9 so that git diff --stat origin/main -- .github plugins/pstack .mergify.yml is empty. Then push to factory/issue-90 and open the draft PR closing Add a project-local verification skill for Open Pstack #90.
    • Because the PR no longer changes a workflow file, Mergify queues it automatically once verify, Unfret, and live-gate pass. Remove the "operator queues it by hand" hand-off text.
  9. added 2 commits that reference this issue on Oct 2, 2026
  10. 4 remaining items

  11. added 11 commits that reference this issue on Oct 3, 2026
  12. added a commit that references this issue on Oct 4, 2026
  13. added 2 commits that reference this issue on Oct 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions