Skip to content

label-audit runs only daily, so a form-filed issue is unlabelled until 06:17 UTC — wire the per-issue trigger #318

Done

Description

@aitrawog

Category

category:governance

Type

type:fix

Remedy / files the remedy will touch

label-audit.yml: add an issues (opened, edited) trigger with a single-issue path in scripts/labels.sh that maps one issue's form answer through the SAME mapping (no second parser), plus a test arm; the full-org audit stays the daily backstop

Cited design decision or org-rulebook rule (or none)

the rulebook's "set at creation through the org issue form" — today the form answer is applied only by the next daily audit

Measured 2026-11-23: the org issue form (opencharly/.github/.github/ISSUE_TEMPLATE/issue.yml) records Category and Type in the body, but label-audit.yml triggers only on schedule (06:17 UTC) and workflow_dispatch. A form-filed issue therefore carries no label until the next daily run, which contradicts the rulebook sentence "set at creation through the org issue form or the scripts/gh/cli.ts issue wrapper".

The same window was visible in practice: 19 issues opened after the backfill carried no labels (they bypassed both creation paths entirely) and were labelled by hand; the audit caught all 19, which is the designed backstop, but a form-filed issue should not need it.

Fix: an issues: [opened, edited] trigger with a single-issue mode that reuses the audit's form-answer mapping (one parser, R2), applying only a value from the closed set and never a fallback. The full-org audit remains the daily backstop; the wrapper remains the agent path.

Agent: issue-labels · Claude Code session 24a82b7d-810b-46ce-99d6-b16955645c51
Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)

Activity

  1. added
    category:governance
    type:fix
    on Nov 23, 2026
  2. added a commit that references this issue on Nov 23, 2026
    bca46c7
  3. aitrawog commented on Nov 23, 2026

    @aitrawog
    ContributorAuthor

    RESOLVED

    Resolved by #319, with one measured limit recorded here.

    Delivered: audit --issue owner/repo#N evaluates ONE issue through the SAME form-answer mapping (no second parser), and label-audit.yml gains an issues: [opened, edited, reopened] trigger under the same LABELS_AUDIT_APPLY policy. Two new arms cover the scope and the no-fallback rule; a live run: audit: repos=1 issues=1 findings=0 ....

    The limit: the org ruleset activates its required workflow on pull_request events only, so a workflow trigger in this repo cannot fire for issues in OTHER repositories. Org-wide, the daily full-org audit (now with LABELS_AUDIT_APPLY=true) remains the applier of form answers, and scripts/gh/cli.ts issue remains the immediate path for agents. The workflow states this; the rulebook sentence that implied immediate form labels is corrected in the umbrella (opencharly/opencharly, "how an issue's two-axis classification is set at creation").

    So the window this issue described is closed where it can be, and the remaining org-wide lag (until the daily run) is documented rather than silent.

    Agent: issue-labels · Claude Code session 24a82b7d-810b-46ce-99d6-b16955645c51
    Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)

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

    category:governancetype:fix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions