gstack icon indicating copy to clipboard operation
gstack copied to clipboard

/autoplan: single-voice mode (Codex unavailable) is mislabeled as CONFIRMED in consensus tables

Open aviraldua93 opened this issue 5 months ago • 3 comments

Filed downstream at aviraldua93/gstack-copilot#8. The bug exists in canonical upstream gstack — surfaced via the auto-generated /autoplan skill when codex CLI is unavailable.

Summary

When Codex CLI is unavailable, every /autoplan phase degrades to single-voice mode: only the Claude subagent runs. The degradation matrix tags each phase as [subagent-only] (good), but the Final Approval Gate output template does NOT surface this degradation prominently. Consensus tables read:

Dimension Claude Codex Consensus
1. Architecture sound? ✗ N/A CONFIRMED

A user reasonably interprets CONFIRMED as "both independent reviewers agreed." It actually means "one reviewer flagged this, no second reviewer was available, the orchestrator concurs." This is a silent quality regression.

Suggested fix

  1. Add top-of-report banner when ANY phase ran without dual voices:
⚠ SINGLE-VOICE MODE — Codex CLI unavailable for [N] of 4 phases.
   Consensus columns below reflect one independent reviewer per phase, not two.
  1. Change column label from CONFIRMED to SUBAGENT-ONLY (or CONFIRMED-1V) for any row where Codex contributed N/A.

Trivially small change in autoplan/SKILL.md.tmpl; large effect on trustworthiness.


Filed via GitHub Copilot CLI by @aviraldua93 during stress-testing a downstream port.

aviraldua93 avatar Jun 10 '26 19:06 aviraldua93

This is a consensus-evidence labeling contract issue.

If Codex is unavailable and /autoplan is running in single-voice mode, the consensus table should not label that result as CONFIRMED.

CONFIRMED implies independent agreement.

Single voice means:

only one reviewer/model produced evidence

A standard AISP-style contract could make evidence labels precise:

[
  {
    "role": "system",
    "content": {
      "protocol": "AISP V1.0.0",
      "axiom_0": "Human_Sovereignty_and_Wellbeing",
      "id": "gstack_autoplan_consensus_label_contract_aisp",
      "name": "gstack /autoplan Consensus Label Contract",
      "version": "1.0.0",
      "license": "MIT",
      "summary": "Machine-checkable contract for labeling /autoplan consensus evidence accurately.",
      "flow_format": "mermaid",
      "loading_mode": "node",
      "tools": ["filesystem"],
      "params": {
        "review_results_path": "string"
      },
      "system_prompt": ""
    }
  },
  {
    "role": "user",
    "content": {
      "instruction": "STRICTLY OBEY aisp_contract; its non_negotiable rules are inviolable; then RUN aisop.main",
      "user_input": "{user_input}",
      "aisp_contract": {
        "profile": "aisp.skill.v1",
        "invocation": {
          "mode": "planning_evidence_validation",
          "when_to_use": [
            "before rendering /autoplan consensus tables",
            "when one or more reviewer/model voices are unavailable",
            "when labeling findings as confirmed or single-voice"
          ],
          "when_not_to_use": [
            "manual narrative summary with no evidence label"
          ]
        },
        "non_negotiable": [
          {
            "rule": "Do not label a finding CONFIRMED unless at least two independent voices support it.",
            "enforced_by": "label.step2:sys.assert"
          },
          {
            "rule": "Single-voice findings must be labeled as single-voice or unconfirmed.",
            "enforced_by": "label.step3:sys.assert"
          },
          {
            "rule": "Unavailable reviewers/models must be visible in the evidence table.",
            "enforced_by": "render.step2:sys.assert"
          }
        ],
        "discovery": {
          "category": "planning_evidence",
          "tags": ["gstack", "autoplan", "consensus", "codex", "evidence", "aisp"]
        },
        "risk_level": "medium",
        "resources": [
          {
            "id": "review_results",
            "path": "{review_results_path}",
            "kind": "artifact",
            "mode": "read_only",
            "when": "Read before consensus label generation.",
            "scope": "skill"
          }
        ]
      },
      "aisop": {
        "main": "graph TD\n    load[Load review results] --> count[Count independent voices]\n    count --> label[Assign evidence labels]\n    label --> render[Render consensus table]\n    render --> trace[Record labeling trace]\n    trace --> end_node((End))"
      },
      "functions": {
        "load": {
          "step1": "sys.io.read(review_results_path) -> review_results",
          "output_mapping": "review_results"
        },
        "count": {
          "step1": "Count available independent reviewer/model voices for each finding.",
          "output_mapping": "voice_counts"
        },
        "label": {
          "step1": "Assign labels: confirmed, single_voice, disputed, unavailable, or unreviewed.",
          "step2": "sys.assert('confirmed requires at least two independent voices', 'CONFIRMED label requires independent agreement')",
          "step3": "sys.assert('single voice finding is not labeled confirmed', 'Single-voice mode must not be labeled CONFIRMED')",
          "output_mapping": "evidence_labels"
        },
        "render": {
          "step1": "Render consensus table with available and unavailable voices.",
          "step2": "sys.assert('unavailable reviewer/model is visible', 'Unavailable reviewers must be shown')",
          "output_mapping": "consensus_table"
        },
        "trace": {
          "step1": "Record finding id, voices present, label, and reason.",
          "output_mapping": "consensus_label_trace"
        },
        "end_node": {
          "step1": "Return consensus_table and consensus_label_trace."
        }
      }
    }
  }
]

The invariant:

confirmed means independently corroborated;
single voice means not independently confirmed.

That distinction matters because users may treat CONFIRMED as stronger evidence than it is.

optimization2026 avatar Jun 30 '26 06:06 optimization2026

@aviraldua93 Please rewrite Autoplan labeling so Codex-unavailable, single-voice runs cannot show a bare CONFIRMED result.

time-attack avatar Jul 15 '26 22:07 time-attack

Every /autoplan phase now states that a missing or disabled outside voice is N/A, never CONFIRMED, and that CONFIRMED requires both the subagent and the outside voice (autoplan/sections/*-phase.md.tmpl).

Fixed in v1.86.0.0 (#2850). If you still see this on the latest gstack, please reopen with details.

capy-ai[bot] avatar Oct 03 '26 19:10 capy-ai[bot]