Skip to content

gnadd v0.6.0

Latest

Choose a tag to compare

@AlexHagemeister AlexHagemeister released this 19 Nov 01:19
· 2 commits to main since this release
550ae2b

Added

  • gnadd round feedback: records the last round's feedback on the issue the
    moment it is given, as its own append-only comment, with no commit. round post then cites it ("recorded on round N") and refuses the feedback flags
    as a duplicate; round list prints feedback comments in order. The round
    loop records feedback right after the user speaks, resolve-issue records
    the final word before the PR, prime reads the trail on an issue branch, and
    a resume with no feedback on the last round asks instead of assuming (#96).
  • gnadd init land: commits init's own files (AGENTS.md, the CI workflow)
    on a quickfix/gnadd-init branch, pushes, and opens the PR, so a fresh
    init ends with a clean tree without a chore issue. Refuses to sweep up any
    other change in the tree (INIT_LAND_FOREIGN_FILES) (#98).
  • gnadd question ask|answer|close|list: a question for a person lives on
    the issue or PR it is about. ask posts one marked comment (question,
    options, recommendation) and assigns the item to --to <login>. With no
    related item it opens an issue labeled question. answer records a
    chat answer on the thread, labeled as transcribed. close --acted says
    the answer was acted on, closes a question issue with its last open
    question, and removes the assignment only when asking added it. list
    reads markers to tell the agent's comments from a person's, so it works
    when agent and human share one account. prime lists open questions, start-issue owns the procedure, and
    yolo posts its stopping question before the run ends (#117).
  • The loop works from inside a linked git worktree, one issue per folder.
    When another folder holds main, start and quickfix start branch
    from origin/main and sync-main parks the folder detached on
    origin/main (parked=true). Any command that would check out, rename,
    or delete a branch another folder holds halts with
    state=BRANCH_IN_WORKTREE naming the folder, including a folder stopped
    mid-rebase or mid-bisect. state prints worktrees= and one
    in_flight= line per issue or quickfix branch, and doctor reports
    finding=WORKTREE_FOLDER_GONE. A single ordinary checkout behaves as
    before (#115).
  • Worktree setup: <command> in AGENTS.md: gnadd start runs it once in
    each fresh linked worktree after checkout, prints its output prefixed
    |, and prints setup=ran. A failure halts with
    state=SETUP_FAILED and names the start to rerun. The primary checkout
    is never set up. gnadd conventions --setup <command>|none writes or
    removes the line, and init-gnadd offers it (#116).
  • state prints idle_folder=<path> for each other linked worktree folder
    that holds no work (parked, clean, not mid-rebase or mid-bisect), and
    prime names each one with the command that removes it. GNADD removes
    nothing (#124).
  • A rescued branch has three scripted exits. doctor --rescue-main now
    recommends a quickfix/<slug> name and prints them: land it with
    quickfix ship, rename it into an issue branch with start <N> <slug> --from <branch>, or discard it with the new gnadd drop <branch>, which
    lists the commits origin lacks and deletes only with --yes (#101).
  • gnadd push: the railed checkpoint push (sets upstream on first push,
    never forces). ship push shares it. state prints upstream= and
    ahead_of_upstream= on any branch, and start <N> resumes an
    issue-<N>/* branch that exists only on origin (#97).
  • gnadd trace note <text> records a step taken outside the script.
    yolo-gnadd notes each gh call it makes, and maps every auto-approved
    gate to its sibling skill's step (#100).
  • ship status prints checks=pass|pending|failed|not_started|none, with
    not_started when a workflow file exists and nothing has reported (#95).
  • test/run.sh <name-or-glob> runs only the matching cases and the summary
    says how many ran. A filter that matches nothing exits 2. The full run
    ends with a lint case that runs scripts/lint.sh, the one lint
    definition CI now runs too. A missing shellcheck prints a skip line, never
    a pass (#122).
  • test/TESTBED.md: the procedure for running the whole loop end to end on
    a throwaway repo. AGENTS.md points at it (#105).

Changed

  • The guide explains parallel work. Part 2 gains a section to follow for
    running two issues in two worktree folders, with its known limits, and a
    section on one agent orchestrating others: what the script provides and
    the sequence tried once on #115 to #117. The README, the lifecycle, the
    branching model, and the list of caught mistakes point at them (#128).
  • The docs and skills no longer make reading the diff the required human
    step before merge. The human owns the merge call and checks that the PR
    does what was meant, by whatever review they choose: the criteria table,
    the test plan, CI, the preview, an agent review they ask for, or the diff.
    The PR body's checkbox now reads "A human checked the PR against the goal
    before merge". The merge confirmation gate itself is unchanged (#127).
  • init and conventions end with an uncommitted= line naming init's
    files not yet committed. ruleset=failed now prints gh's first error line
    as ruleset_error=, and the skill covers the private free-plan case. The
    preview lookup also greps README.md (#98).
  • ship merge refuses unless every check GitHub reports passed or was
    skipped: CHECKS_PENDING, NO_CHECKS, or CHECK_FAILED naming the
    check. --no-check overrides, matching quickfix (#95).
  • round post pushes the branch before it comments, so every round cites
    a commit GitHub holds. A moved remote halts with state=PUSH_FAILED. A
    repo with no remote reports pushed=false and still posts (#97).
  • quickfix guard leaves a newly added VISION.md out of the line budget
    and says so (exempt=VISION.md). A modified one still counts.
    quickfix-gnadd names GNADD_QF_MAX_FILES and GNADD_QF_MAX_LINES
    beside the check override, and the PR footer states any override used.
    release.sh now also repins vision-gnadd's GNADD.md URL (#99).
  • Testbed frictions from the v0.5.0 run: state prints dirty_files= and
    lists them, divergence lists print only when non-empty, and phase close
    takes its title from the one open milestone. Seven skills (prime,
    new-issue, start-issue, commit, resolve-issue, audit, help) each gained
    the sentence the testbed agent was missing (#102).
  • test/run.sh asserts gh calls through expect_gh_called and
    expect_gh_not_called over a stub log every test creates, so a missing
    log fails instead of passing (#108).
  • Every em dash is gone from bin/gnadd, scripts/, and test/run.sh,
    including the heading release.sh drafts. mechanics_have_no_em_dash
    keeps them out (#91).

Fixed

  • gnadd question counts a question marker, an answer, or a closing
    comment only from the repo's owner, members, and collaborators (GitHub's
    author_association), so anyone who can comment can no longer plant an
    open question or answer a waiting one. Any trusted author can answer any
    question, and one shared account works as before. An outside comment stays
    on the thread untouched, and question list (and a refused question close) names its item and login as not counted (#131).
  • The skills name every halt their own commands can reach, with a next
    step, and no longer contradict the script. Among the fixes: a note on an
    issue starts with <!-- gnadd:note --> so it is not read as an answer,
    resolve skips round feedback on a non-issue branch, a merged or closed
    PR on the branch stops for the user before a new one is made, a quickfix
    the guard refuses moves to an issue with start --from, and init says to
    run from the folder that holds main. help-gnadd gains a table for
    doctor's output and covers worktrees, rounds, questions, and phases,
    and start-issue-gnadd owns the drop procedure (#129).
  • cleanup <pr> <branch> refuses to delete a branch the merged PR did not
    land: BRANCH_MISMATCH when the branch is not the PR's head (or GitHub
    returns none), UNMERGED_COMMITS when the local tip is past the merged
    head (#94).
  • new-issue-gnadd ran phase status from its own folder, which has no
    script copy, so it failed on every install route. It now runs prime's
    copy, and skill_self_refs_have_a_copy catches the pattern (#90).
  • A git refusal at the resume checkout, or at the branch delete in
    cleanup or drop, now halts with state=CHECKOUT_REFUSED or
    state=DELETE_REFUSED and git's message. It used to exit 1, and cleanup
    printed nothing (#115).