Skip to content

Add a shared rationalizations, red flags and verification block to the delivery procedures #3796

Closed

Description

@malibio

Overview

The built-in delivery procedures say what to do and what must never be done, but they do not name the excuses an agent uses to skip a step, nor the signs that it is about to. Addy Osmani's agent-skills (MIT) gives every skill a Rationalizations, Red Flags and Verification triple; it is the most transferable idea in that set and fits the existing rule-include mechanism as one shared fragment.

Problem Statement

Implementing a Task, Reviewing a Task, Addressing Review Findings and Completing a Task each end in a gate (evidence under a ticked item, a full-suite run, a decision per finding), and each states "never weaken a test" in its own words. The wording drifts between procedures, and none lists the specific rationalizations ("it passes locally", "it is only a rename", "the check is flaky") that lead to a skipped gate.

Proposed Solution

  • One rule fragment under packages/agent/src/seeds/rules/, included by the four procedures, holding a short Rationalizations list (excuse, then the rebuttal), a Red Flags list, and a Verification statement of what evidence counts.
  • The fragment is short. Procedures are read by small local models as well as external agents, so length is a cost; the fragment does not restate steps a procedure already has.
  • Each procedure keeps its own steps and points to the fragment instead of restating the weakened-check rule.

Documentation

  • seeded-nodes.md "Procedure rules" and the include tests - a rule is included by at least one skill, and both audiences reach it through the same include
  • ADR-092 delivery procedures table - add the source (addyosmani/agent-skills, MIT licence, copyright 2025 Addy Osmani) to the rows it touches
  • ADR-064 - which channel carries instructions
  • Updates: the ADR-092 delivery table rows

Architecture Impact

Extends ADR-092's provenance table with a second source; no new type or relationship. Companion nodespace-docs edit required; no new ADR.

Acceptance Criteria

  • One shared fragment holds the rationalizations, red flags and verification statement
  • Implementing a Task, Reviewing a Task, Addressing Review Findings and Completing a Task include it and no longer restate the weakened-check rule in their own words
  • The fragment reads the same for the local agent and for an external agent (both forms in the seeded-nodes include tests pass)
  • The attribution lines name the source and its licence and copyright
  • The prompt snapshot golden is regenerated and its diff reviewed
  • eval:tasks and the skill-retrieval confusion matrix show no regression
  • Code passes bun run quality:fix

Technical Specifications

Reference Files

  • packages/agent/src/seeds/rules/ - existing fragments, such as approval-ask-first.md and ask-decision-brief.md, for the form
  • packages/agent/src/seeds/skills/implementing-a-task.md, reviewing-a-task.md, addressing-review-findings.md, completing-a-task.md
  • packages/agent/src/skill_pipeline.rs - where includes are resolved

Implementation Details

  • Read Osmani's skill files for the actual wording before adapting; this issue was written from his repository summary.
  • Keep the project's wording: evidence is the failing run and the passing run, not "tests pass".

Related Issues

Non-Goals

  • Adding the fragment to graph-editing, schema or other non-delivery skills
  • A rule that checks an agent's behaviour (ADR-097 records why that is not built)

Activity

  1. added
    enhancement
    on Oct 13, 2026
  2. self-assigned this
    on Oct 13, 2026
  3. malibio commented on Oct 13, 2026

    @malibio
    CollaboratorAuthor

    Evals for PR #3805 (isolated daemon, NODESPACE_HOME=/tmp, gemma-4-e4b-q4km, purge between reps). eval:tasks, branch, --runs 3: 1/5 each rep (only bug-not-reproducible passes; the other four fail identically every rep). Baseline with main's procedures: rep 1 scored 0/5, with the same four failures plus bug-not-reproducible writing a node; the uniformity guard then aborted the run (exit 2), so no 3-rep baseline file. The four failing scenarios exercise Creating a Task and Answering a Question, which this change does not touch, so eval:tasks cannot show a delivery-procedure regression either way; no regression observed. Skill confusion matrix (skill_confusion_matrix::, both tests): passed, ranks asserted and the recorded digest matches the seeded text. Prompt snapshot goldens: regenerated, no diff.

  4. added a commit that references this issue on Oct 13, 2026
    a886048
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

backendenhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions