GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — pm-stack: parse restore-rehearsal arguments strictly before cleanup · Issue #16090 · developing-today/code

pm-stack: parse restore-rehearsal arguments strictly before cleanup #16090

New issue
Copy link
New issue
Copy link
Done
#16103
Done
pm-stack: parse restore-rehearsal arguments strictly before cleanup#16090
#16103
Copy link
Labels
app/pm-stackpm-stack (Pad/Grist) in developing-today/codeeffort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/agentCreated by an agent workertask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Description

@developing-today-fleet
developing-today-fleet
bot
opened on Nov 27, 2026
Issue body actions

Problem

The new operator script pm-stack/scripts/restore-rehearsal.sh declares restore-rehearsal.sh [YYYY-MM-DD] in its header but reads only $1 and never validates the full command line. Extra positionals and unknown flags are silently ignored, and the supplied date is not checked before the script checks paths, removes the scratch directory, and launches Docker. This violates the repository's #3352 operator-script argument contract.

Acceptance

  • Declare the full interface (zero or one validated YYYY-MM-DD positional) and parse strictly before any file operation, subprocess, network, or cleanup.
  • Reject unknown flags, extra positionals, and malformed dates with a usage error and non-zero exit.
  • Add tests for the valid default/date cases and the rejected extra/unknown/malformed arguments.

Evidence

  • pm-stack/scripts/restore-rehearsal.sh uses DAY="${1:-$(date +%F)}" and proceeds to check the backup and rm -rf "$SCRATCH" without checking $#, unknown flags, or date syntax.
  • The repository contract in doc/agents/operator-script-argument-contract.md requires strict whole-command parsing before file writes or subprocesses. Refs impl(pm-stack): Kaneo/Grist/Pad canonical stores to Supabase-backed homes + cold-restore runbook and first laptop-off drill (#3989 slice) #6816 and PR docs(pm-stack): runbook to doc/pm-stack + first restore rehearsal record (#6816) #12824.
{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-27T10:40:31Z",
    "session_id": null,
    "lane": null,
    "host": "amd",
    "worktree": null,
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": null,
    "auth_subject": "agent-next-19-local",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Activity

  1. developing-today-fleet
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    priority/normalOrdinary priority (the default)
    effort/sSmall: expected under 2 hours of work
    app/pm-stackpm-stack (Pad/Grist) in developing-today/code
    source/agentCreated by an agent worker
    on Nov 27, 2026
  2. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 27, 2026 – with developing.today fleet
    ContributorAuthor
    More actions

    code-j task 26199: working in isolated branch fix/16090-restore-arguments. Adding failing-first no-Docker argument tests, then validating the entire optional date command line before any filesystem or subprocess activity.

  3. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 27, 2026 – with developing.today fleet
    ContributorAuthor
    More actions

    Checkpoint: strict Bash parser was already present on main (8a51613), so PR #16103 preserves it and adds an independent datetime.date oracle covering boundaries plus 100 seeded dates, malformed/extra flags, exact date selection, zero rejected-input subprocesses and scratch preservation. Read-only review approved. Remote Fleet verification https://github.com/dezren39/fleet/actions/runs/45985701835 has completed its command step successfully; awaiting workflow post-step completion before merge/disposition. That run also proves the reconstructed original permissive parser fails the new tests.

  4. developing-today-fleet
    closed this as completedin #16103on Nov 27, 2026
  5. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 27, 2026 – with developing.today fleet
    ContributorAuthor
    More actions

    Complete: PR #16103 merged as b204413. Both remote runs succeeded: initial regression sensitivity/current suites https://github.com/dezren39/fleet/actions/runs/45985701835 and exact merged-SHA done check https://github.com/dezren39/fleet/actions/runs/45987261298. Legacy parser mutation fails 54 subcases as expected; the current datetime model suite, 26 shell scenarios and Bash syntax pass. No live Docker restore performed. Fleet task 26199 completed with merged_verified disposition read back from GitHub.

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

    app/pm-stackpm-stack (Pad/Grist) in developing-today/codeeffort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/agentCreated by an agent workertask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.