guide: research — asks and session-runner #172

Closed
opened 2026-09-24 02:38:25 +00:00 by cherese · 3 comments
Owner

Spec: docs/superpowers/specs/2026-09-24-product-owner-guide-design.md
Plan: docs/superpowers/plans/2026-09-24-product-owner-guide.md — the section named "Task N" is the definition of done. Follow its steps and Global Constraints exactly.
Only add files the plan lists. Never edit .sandcastle/ or harness files. Never write "closes #N" in commits.

Plan Task 3. Create docs/research/2026-09-24-guide-asks-session-runner.md.

Done when

  • Rows A-, S- exist and answer: how an ask is posted, parked, answered and resumed; what the session-runner picks up; the escalation cap and what happens at it; the session-host marker.
  • Self-check passes.
> **Spec:** `docs/superpowers/specs/2026-09-24-product-owner-guide-design.md` > **Plan:** `docs/superpowers/plans/2026-09-24-product-owner-guide.md` — the section named "Task N" is the definition of done. Follow its steps and Global Constraints exactly. > Only add files the plan lists. Never edit `.sandcastle/` or harness files. Never write "closes #N" in commits. Plan Task 3. Create `docs/research/2026-09-24-guide-asks-session-runner.md`. **Done when** - Rows `A-`, `S-` exist and answer: how an ask is posted, parked, answered and resumed; what the session-runner picks up; the escalation cap and what happens at it; the `session-host` marker. - Self-check passes.

swarm-claim host=matou-dev-server-01 run=14173
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=14173 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #172 — status success

⛔ close-report gates REFUSED this close — the following claims did not verify:

  • status:success but test 'grep -n '| |$' docs/research/2026-09-24-guide-asks-session-runner.md (expect no match)' exited 1 (a claimed-passing run that did not pass)
envelope
{
  "issue": 172,
  "status": "success",
  "commits": [
    "e249b7af91ce33f1a003df406572ef8ff9243d73"
  ],
  "changed_files": [
    "docs/research/2026-09-24-guide-asks-session-runner.md"
  ],
  "tests": [
    {
      "command": "grep -c unconfirmed docs/research/2026-09-24-guide-asks-session-runner.md",
      "exit_code": 0
    },
    {
      "command": "grep -n '| |$' docs/research/2026-09-24-guide-asks-session-runner.md (expect no match)",
      "exit_code": 1
    },
    {
      "command": "for t in tests/*.sh onboarding/tests/*.sh; do case \"$t\" in *fakebin*|*fixtures*) continue;; esac; bash \"$t\"; done",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Rows A-, S- exist": "docs/research/2026-09-24-guide-asks-session-runner.md has 11 A- rows (A-1..A-11) and 14 S- rows (S-1..S-14) in the Findings table",
    "Answer: how an ask is posted, parked, answered and resumed": "A-1 (posted via ask-human.sh), A-5 (parked on timeout, exit 3), A-3/A-4 (answered in-thread, consumed with white_check_mark), A-8/A-10 (resumed and re-armed by resume-parked-asks.sh); A-6/A-7/A-11 cover post-issue-ask.sh's outstanding-ask guarantee",
    "Answer: what the session-runner picks up": "S-1 (drains ready-for-session), S-2 (first workable: priority then oldest, skip filters), S-3 (claims agent-working, one headless session, outcome by ticket)",
    "Answer: the escalation cap and what happens at it": "S-4 (two attempts without progress -> agent-blocked + ticket comment + Mattermost line); S-5/S-6/S-7/S-8/S-9 clarify what does and does not count toward the cap",
    "Answer: the session-host marker": "S-10..S-14 and session-host-lib.sh: <!-- session-host: name --> pins a ticket to named hosts, skip at pick time (not an attempt), list/FQDN matching, this-host resolution, dead-host cost + escape hatch",
    "Self-check passes": "grep -c unconfirmed returns 1 (row A-9) with a matching bullet under Unconfirmed / open; grep '| |$' prints nothing (no empty Source cell)"
  },
  "summary": "Created docs/research/2026-09-24-guide-asks-session-runner.md (plan Task 3) with sourced A-/S- findings on asks and the session-runner; self-check passes and the offline suite is green.",
  "blockers": []
}
**close-report** for #172 — status `success` :no_entry: **close-report gates REFUSED this close** — the following claims did not verify: - status:success but test 'grep -n '| |$' docs/research/2026-09-24-guide-asks-session-runner.md (expect no match)' exited 1 (a claimed-passing run that did not pass) <details><summary>envelope</summary> ```json { "issue": 172, "status": "success", "commits": [ "e249b7af91ce33f1a003df406572ef8ff9243d73" ], "changed_files": [ "docs/research/2026-09-24-guide-asks-session-runner.md" ], "tests": [ { "command": "grep -c unconfirmed docs/research/2026-09-24-guide-asks-session-runner.md", "exit_code": 0 }, { "command": "grep -n '| |$' docs/research/2026-09-24-guide-asks-session-runner.md (expect no match)", "exit_code": 1 }, { "command": "for t in tests/*.sh onboarding/tests/*.sh; do case \"$t\" in *fakebin*|*fixtures*) continue;; esac; bash \"$t\"; done", "exit_code": 0 } ], "criteria": { "Rows A-, S- exist": "docs/research/2026-09-24-guide-asks-session-runner.md has 11 A- rows (A-1..A-11) and 14 S- rows (S-1..S-14) in the Findings table", "Answer: how an ask is posted, parked, answered and resumed": "A-1 (posted via ask-human.sh), A-5 (parked on timeout, exit 3), A-3/A-4 (answered in-thread, consumed with white_check_mark), A-8/A-10 (resumed and re-armed by resume-parked-asks.sh); A-6/A-7/A-11 cover post-issue-ask.sh's outstanding-ask guarantee", "Answer: what the session-runner picks up": "S-1 (drains ready-for-session), S-2 (first workable: priority then oldest, skip filters), S-3 (claims agent-working, one headless session, outcome by ticket)", "Answer: the escalation cap and what happens at it": "S-4 (two attempts without progress -> agent-blocked + ticket comment + Mattermost line); S-5/S-6/S-7/S-8/S-9 clarify what does and does not count toward the cap", "Answer: the session-host marker": "S-10..S-14 and session-host-lib.sh: <!-- session-host: name --> pins a ticket to named hosts, skip at pick time (not an attempt), list/FQDN matching, this-host resolution, dead-host cost + escape hatch", "Self-check passes": "grep -c unconfirmed returns 1 (row A-9) with a matching bullet under Unconfirmed / open; grep '| |$' prints nothing (no empty Source cell)" }, "summary": "Created docs/research/2026-09-24-guide-asks-session-runner.md (plan Task 3) with sourced A-/S- findings on asks and the session-runner; self-check passes and the offline suite is green.", "blockers": [] } ``` </details>

close-report for #172 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 172,
  "status": "success",
  "commits": [
    "e249b7af91ce33f1a003df406572ef8ff9243d73"
  ],
  "changed_files": [
    "docs/research/2026-09-24-guide-asks-session-runner.md"
  ],
  "tests": [
    {
      "command": "grep -c unconfirmed docs/research/2026-09-24-guide-asks-session-runner.md",
      "exit_code": 0
    },
    {
      "command": "! grep -q '| |$' docs/research/2026-09-24-guide-asks-session-runner.md",
      "exit_code": 0
    },
    {
      "command": "for t in tests/*.sh onboarding/tests/*.sh; do case \"$t\" in *fakebin*|*fixtures*) continue;; esac; bash \"$t\"; done",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Rows A-, S- exist": "docs/research/2026-09-24-guide-asks-session-runner.md has 11 A- rows (A-1..A-11) and 14 S- rows (S-1..S-14) in the Findings table",
    "Answer: how an ask is posted, parked, answered and resumed": "A-1 (posted via ask-human.sh), A-5 (parked on timeout, exit 3), A-3/A-4 (answered in-thread, consumed with white_check_mark), A-8/A-10 (resumed and re-armed by resume-parked-asks.sh); A-6/A-7/A-11 cover post-issue-ask.sh's outstanding-ask guarantee",
    "Answer: what the session-runner picks up": "S-1 (drains ready-for-session), S-2 (first workable: priority then oldest, skip filters), S-3 (claims agent-working, one headless session, outcome by ticket)",
    "Answer: the escalation cap and what happens at it": "S-4 (two attempts without progress -> agent-blocked + ticket comment + Mattermost line); S-5/S-6/S-7/S-8/S-9 clarify what does and does not count toward the cap",
    "Answer: the session-host marker": "S-10..S-14 and session-host-lib.sh: <!-- session-host: name --> pins a ticket to named hosts, skip at pick time (not an attempt), list/FQDN matching, this-host resolution, dead-host cost + escape hatch",
    "Self-check passes": "grep -c unconfirmed returns 1 (row A-9) with a matching bullet under Unconfirmed / open; grep '| |$' prints nothing (no empty Source cell)"
  },
  "summary": "Created docs/research/2026-09-24-guide-asks-session-runner.md (plan Task 3) with sourced A-/S- findings on asks and the session-runner; self-check passes and the offline suite is green.",
  "blockers": []
}
**close-report** for #172 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 172, "status": "success", "commits": [ "e249b7af91ce33f1a003df406572ef8ff9243d73" ], "changed_files": [ "docs/research/2026-09-24-guide-asks-session-runner.md" ], "tests": [ { "command": "grep -c unconfirmed docs/research/2026-09-24-guide-asks-session-runner.md", "exit_code": 0 }, { "command": "! grep -q '| |$' docs/research/2026-09-24-guide-asks-session-runner.md", "exit_code": 0 }, { "command": "for t in tests/*.sh onboarding/tests/*.sh; do case \"$t\" in *fakebin*|*fixtures*) continue;; esac; bash \"$t\"; done", "exit_code": 0 } ], "criteria": { "Rows A-, S- exist": "docs/research/2026-09-24-guide-asks-session-runner.md has 11 A- rows (A-1..A-11) and 14 S- rows (S-1..S-14) in the Findings table", "Answer: how an ask is posted, parked, answered and resumed": "A-1 (posted via ask-human.sh), A-5 (parked on timeout, exit 3), A-3/A-4 (answered in-thread, consumed with white_check_mark), A-8/A-10 (resumed and re-armed by resume-parked-asks.sh); A-6/A-7/A-11 cover post-issue-ask.sh's outstanding-ask guarantee", "Answer: what the session-runner picks up": "S-1 (drains ready-for-session), S-2 (first workable: priority then oldest, skip filters), S-3 (claims agent-working, one headless session, outcome by ticket)", "Answer: the escalation cap and what happens at it": "S-4 (two attempts without progress -> agent-blocked + ticket comment + Mattermost line); S-5/S-6/S-7/S-8/S-9 clarify what does and does not count toward the cap", "Answer: the session-host marker": "S-10..S-14 and session-host-lib.sh: <!-- session-host: name --> pins a ticket to named hosts, skip at pick time (not an attempt), list/FQDN matching, this-host resolution, dead-host cost + escape hatch", "Self-check passes": "grep -c unconfirmed returns 1 (row A-9) with a matching bullet under Unconfirmed / open; grep '| |$' prints nothing (no empty Source cell)" }, "summary": "Created docs/research/2026-09-24-guide-asks-session-runner.md (plan Task 3) with sourced A-/S- findings on asks and the session-runner; self-check passes and the offline suite is green.", "blockers": [] } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/dev-factory#172
No description provided.