Skip to content

test: guard dashboard copy prompts against client-specific commands #437

Closed

Description

@Jammy2211

Reject assistant-specific commands in copied dashboard prompts

Type: test
Autonomy: safe

Original request

ok yeah do that quickly

Approved context: add a shared regression check that rejects assistant-specific slash commands in dashboard copy payloads while allowing real shell commands.

Plan

@PyAutoBrain @PyAutoHeart: add a shared HTML copy-payload assertion in Brain's board package. Detect leading slash commands in data-cmd/data-copy button values (including HTML entities and leading whitespace), exempt explicit terminal buttons and absolute executable paths. Use it in Brain, Mind, Cortex and Heart rendered-dashboard tests. Cover unknown skill names, malformed/empty pages, and safe shell payloads. No production rendering or publishing change.

User approved development-only Heart RED override with "yes I authorie", after the exact reason PyAutoGalaxy: CI failure — https://api.github.com/repos/PyAutoLabs/PyAutoGalaxy/actions/runs/24007765443 was surfaced. No merge/release authorization for this new task.

Activity

  1. Jammy2211 commented on Oct 1, 2026

    @Jammy2211
    ContributorAuthor

    Implemented and pushed:

    315 relevant tests passed; Ruff and whitespace checks passed. Shared assertion checks rendered data-cmd/data-copy, HTML entities, unknown slash-skill names and no-button fixtures. Real shell snippets, absolute executable paths and explicit terminal chips pass. Integrated Brain, Mind, Cortex and Heart HTML tests; no production renderer changes.

    Development-only override: user "yes I authorie" following the feed RED reason PyAutoGalaxy: CI failure — https://api.github.com/repos/PyAutoLabs/PyAutoGalaxy/actions/runs/24007765443. Direct vitals shipping verdict reports release validation FAILED (stage integrate); both readings reported in-session. No merge/release authorization for this new task.

    Next: human-authorized merge of Brain #438 on green checks, then ready/re-run Heart #260 against Brain main and merge on green checks. No background monitoring armed.

  2. Jammy2211 commented on Oct 1, 2026

    @Jammy2211
    ContributorAuthor

    Brain #438 merged at 332aa1c after every workflow job passed (Python 3.12 and 3.13).

    User "try again" prompted the next dependency step: Heart #260 is ready for review; run 36864852227 rerun against now-updated Brain main. Its earlier failure was ModuleNotFoundError for copy_contract before Brain merged. Await green new attempt before merging Heart and closing the task. No background monitoring armed.

  3. Jammy2211 commented on Oct 1, 2026

    @Jammy2211
    ContributorAuthor

    Both PRs are merged: Brain #438 and Heart #260. Python 3.12/3.13 checks passed for each; Heart attempt 2 passed after the shared checker landed on Brain main. Both task branch heads are ancestors of main. Closing #437 and retiring the task worktrees.

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