Skip to content

harness-ops: audit-mod-posture checks for unasked mod enablement and noun overrides (2.1.321, 2.1.323) #17892

Description

@kyle-sexton

Refs: #14843, #15693

Split from the changelog release issue(s) above under the owner's decision of 2026-11-21 (melodic-software/architecture#148): one issue per handoff row, rows that edit the same file grouped.

Route: lane work. Basis: adopt: the mod posture audit is the consumer, and both checks read state it already reads; no trust change.

Problem

harness-ops: audit-mod-posture has no check for Claude-written mods turning on unasked or mod calls skipping ask prompts (2.1.321)

Row 7 of #14843 (key changelog:2.1.321..2.1.321:adopt:plugins/harness-ops/skills/audit-mod-posture/SKILL.md). Required sentence: the mod-posture audit has no check for mods Claude writes turning on without asking in auto and bypass modes (even under managed strict-sandbox settings) and not loading in dontAsk, nor for mods' tool and MCP calls raising no prompt under ask rules. Defer pending probe, since no fetched docs page states either behavior.

On main, plugins/harness-ops/skills/audit-mod-posture/reference/checklist.md has M1-M4 (guard seated, tool.call, prompt.submit/session.append, calls). None covers permission mode or ask-rule exemption. The 2.1.323 adopt row on the same skill (noun overrides, from #15693) is a separate ask.

harness-ops: audit-mod-posture could list the $ nouns a mod's engine.create hook adds, withholds or replaces (2.1.323)

Row 11 of #15693 (key changelog:2.1.323..2.1.323:adopt:plugins/harness-ops/skills/audit-mod-posture/SKILL.md). Required sentence: the mod-posture audit cannot see which $ nouns a mod's engine.create hook adds, withholds or replaces. validate now reports them, so the audit could list noun overrides without loading the mod.

On main: plugins/harness-ops/skills/audit-mod-posture/SKILL.md:61-62 reads only the hooks: and calls: lines of claude plugin validate. The skill never mentions engine.create or nouns. A separate adopt row on the same skill (2.1.321, Claude-written mods turning on unasked, from #14843) is its own issue.

Done when

  • A behavior probe (or a docs page) settles both behaviors on current Claude Code, and audit-mod-posture adds a check for each behavior the probe confirms.
  • If adopted: a checklist row and an eval case cover a Claude-written mod enabled in auto or bypass mode, and mod $.tool.call/$.mcp.call skipping ask prompts.
  • Once the mods create page or cli-reference documents validate's noun output (or a probe captures it), audit-mod-posture lists the $ nouns each mod adds, withholds or replaces.
  • If adopted: mod-posture.sh carries a noun-override column, and the checklist scores it, with a test fixture.

Activity

  1. added
    needs-triage
    on Nov 21, 2026
  2. github-actions commented on Nov 21, 2026

    @github-actions
    Contributor

    Size: Medium
    Complexity: Medium
    Uncertainty: Known
    Flags: none
    Blocked by: none
    Blast radius: the audit-mod-posture skill in harness-ops (mod-posture.sh, checklist, eval case, test fixture); read by whoever runs the mod posture audit.
    Reversible: yes; revert the script, checklist and fixture changes.
    Open questions: none
    Decision comment, quoted verbatim (link):

    Decision recorded. This restates the 2026-11-22 15:56Z decision above in the form intake reads, with the host-run result it rests on.

    • Done-when item 1 is met by the host-run comment of 2026-11-22 05:11Z: docs pages settle both 2.1.321 behaviors (Create a mod, "Ask Claude for a mod"; Manage mods, "Know what happens by default"), and claude plugin validate on 2.1.330 prints the adds to $:, withholds from $: and replaces on $: lines. Nothing is left to probe, so the item is ticked in the body.
    • Check 1's input (owner, hub session, 2026-11-22, "go with recommendations" on hub Q265): defaultMode set to auto or bypass, plus disableSideloadFlags unset, both read by mod-posture.sh, which reads neither today. Dev mods being present alone is not the trigger.

    What is left is lane work:

    • mod-posture.sh reads defaultMode and disableSideloadFlags, and the checklist scores check 1 on them as decided above.
    • A checklist row and an eval case cover a Claude-written mod loading in auto or bypass mode, and a mod's $.tool.call/$.mcp.call skipping ask prompts.
    • mod-posture.sh reads validate's adds to $:, withholds from $: and replaces on $: lines into a noun-override column, the checklist scores it, and a test fixture covers it.

    This decision settles the open question about what check 1 scores, and the probe step is done. The remaining items are lane-checkable. No duplicate or merged fix found among the listed issues and pulls.

    Automated triage. A maintainer reviews it.

  3. removed
    needs-triage
    on Nov 21, 2026
  4. melodic-automation-lanes commented on Nov 21, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane: Uncertainty unknown is not one of known, knowable; its done-when asks for what an unattended lane run cannot perform: item 1 (live-cc-probe: "A behavior probe (or a docs page) settles both behaviors on current Claude Co..."); recommended split: keep the other items here as the admissible issue and move these to a child issue for the host queue (host-run). Admission takes the issue once each of those is met, when intake triages it again (.github/actions/resolve-config/admission-rules.json).

  5. kyle-sexton commented on Nov 22, 2026

    @kyle-sexton
    MemberAuthor

    This was generated by AI.

    Host-run part (Done-when item 1 and the noun-output precondition of item 3), on claude --version = 2.1.330 (Claude Code), Linux, 2026-11-22. Both 2.1.321 behaviors are now on docs pages, and a static probe captures the 2.1.323 noun output.

    1. Claude-written mods loading unasked (docs settle it). Create a mod: Ask Claude for a mod: in auto and bypassPermissions modes Claude Code can load the mod without asking ("Sessions that load a mod without asking"); it does not load in dontAsk, in the claude -p run that writes it in default/acceptEdits, in an untrusted workspace, or with --safe-mode, --bare, disableAllHooks or a managed block ("Sessions where a mod Claude writes can't load"). Mods Claude writes go under ~/.claude/dev-mods/<session-id>/. Manage mods: Choose how much to allow: disableSideloadFlags keeps them from loading; a marketplace allowlist without skills-dir does too. No page mentions strict-sandbox settings, so that part of the changelog row stays unconfirmed. Not probed live: a live probe would let a model write and enable a mod in bypass mode on this host, and these pages already settle the behavior.

    2. Mod tool and MCP calls skipping prompts (docs settle it). Manage mods: Know what happens by default: calls such as $.tool.call and $.mcp.call can skip permission rules, permission prompts, a hook's ask, and the auto mode classifier. The $.mcp.call row of "Review what a mod can do" says it calls an MCP tool with no permission prompt.

    3. Noun output (probe). A scratch mod in .work/ whose engine.create hook is in the form validate requires (const { process, ...beneath } = await next(e); return { ...beneath, probeNoun: probeOf(), store: storeOf() }), run through claude plugin validate <dir> (static; runs no mod code):

      ❯ ./register.js hooks: engine.create
      ❯ ./register.js calls: nothing on $
      ❯ ./register.js adds to $: probeNoun
      ❯ ./register.js withholds from $: process (in the user or builtin tier, the fold refuses this and unloads the module)
      ❯ ./register.js replaces on $: store (the fold refuses this and unloads the module)
    ✔ Validation passed with warnings
    

    A hook written in another shape fails validate with this engine.create hook is outside its form ... It can't say what this module adds to or withholds from $.

    What is left is lane work: the checklist rows, the eval case, and the mod-posture.sh noun column with its fixture. It reads the adds to $:, withholds from $: and replaces on $: lines next to hooks: and calls:. One question is open for the build: what state check 1 scores. Options are dev-mods under ~/.claude/dev-mods/, defaultMode auto/bypass, and disableSideloadFlags. The skill reads no settings file itself (SKILL.md "Reading mods"), so the input has to come through the script.

  6. kyle-sexton commented on Nov 22, 2026

    @kyle-sexton
    MemberAuthor

    Decision recorded (owner, hub session, 2026-11-22, "go with recommendations" on hub Q265): check 1's input is defaultMode set to auto or bypass, plus disableSideloadFlags unset, both read by mod-posture.sh (it reads neither today). Dev mods being present alone is not the trigger.

  7. kyle-sexton commented on Nov 22, 2026

    @kyle-sexton
    MemberAuthor

    Decision recorded. This restates the 2026-11-22 15:56Z decision above in the form intake reads, with the host-run result it rests on.

    • Done-when item 1 is met by the host-run comment of 2026-11-22 05:11Z: docs pages settle both 2.1.321 behaviors (Create a mod, "Ask Claude for a mod"; Manage mods, "Know what happens by default"), and claude plugin validate on 2.1.330 prints the adds to $:, withholds from $: and replaces on $: lines. Nothing is left to probe, so the item is ticked in the body.
    • Check 1's input (owner, hub session, 2026-11-22, "go with recommendations" on hub Q265): defaultMode set to auto or bypass, plus disableSideloadFlags unset, both read by mod-posture.sh, which reads neither today. Dev mods being present alone is not the trigger.

    What is left is lane work:

    • mod-posture.sh reads defaultMode and disableSideloadFlags, and the checklist scores check 1 on them as decided above.
    • A checklist row and an eval case cover a Claude-written mod loading in auto or bypass mode, and a mod's $.tool.call/$.mcp.call skipping ask prompts.
    • mod-posture.sh reads validate's adds to $:, withholds from $: and replaces on $: lines into a noun-override column, the checklist scores it, and a test fixture covers it.
  8. melodic-automation-lanes commented on Nov 22, 2026

    @melodic-automation-lanes
    Contributor

    {"v":1,"actor_id":337595936,"title_sha256":"60e3c5c960380d1cb0449a52ef8663d3ff2b77cd880bbe662638770ca756af36","body_sha256":"4008321fc33b1326247e49a548f7742ddae485f7f7d880631c5e1034dca06af5"}

  9. melodic-automation-lanes commented on Nov 22, 2026

    @melodic-automation-lanes
    Contributor

    This records a re-fire of an earlier stop, not a new one. The start gate stopped run 45074637979, the work-resolve-issue run that agent-ready started, before any model turn, because the GITHUB_TOKEN budget was under its start-gate share, or the window was projected to have under its start-project share of the header's limit left by the run's expected end (github-token start-gate, start-project and start-run-minutes in rate-limits.json; the run's start-gate notice names which); that run ended at 2026-11-22T21:55:22Z. work-unblock has now removed and added agent-ready back to start a fresh run. A budget stop is the lanes' load, not a fault in this issue: it never counts toward limits.limit-stops-per-issue or the kill-switch wait.

  10. github-actions commented on Nov 22, 2026

    @github-actions
    Contributor
    No description provided.
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

    Fields

    Work status

    needs-triage

    Priority

    medium

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions