Skip to content

feat(pr-pipeline): admit a ready Feature with no parent issue - #9669

Merged
kyle-sexton merged 6 commits into
mainfrom
feat/admit-parentless-feature
Oct 24, 2026
Merged

kyle-sexton merged 6 commits into
mainfrom
feat/admit-parentless-feature

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

No related issue: owner decision Q83, 2026-10-24 (Backlog HITL session)

Summary

A status: ready Feature with no parent issue is now admitted to the issue lane like a Task. Before, Feature sat in types-under-parent, so a parentless Feature was always refused.

Fix

  • .github/actions/resolve-config/admission-rules.json: Feature moves from types-under-parent to types; types-under-parent is now [].
  • .github/scripts/intake-triage/admit.mjs: a Feature that has a parent still needs that parent open, filed by a listed human, and free of needs-human, needs-owner-decision and status: needs-decision. The issue read now fetches the parent for a Feature, and decide() applies the check only when one exists. Tasks and Bugs are unchanged. The header comment (criterion 2) is updated.
  • .github/scripts/intake-triage/admit.test.mjs: a parentless Feature is admitted; the "Feature with no parent" refusal case is removed. The existing cases for a Feature under a parent no listed human filed, and under a status: needs-decision parent, still refuse.

Verification

  • node --test .github/scripts/intake-triage/*.test.mjs .github/actions/resolve-config/*.test.mjs: 920 tests, 920 pass, 0 fail.
  • Left out: a live admission run against GitHub.

Related

🤖 Generated with Claude Code

https://claude.ai/code/session_01ET8yQTue4Azdg1DeK22eLN

Owner decision Q83 (2026-10-24): a `status: ready` Feature with no parent
is admitted to the issue lane like a Task. Feature moves to `types`;
`types-under-parent` is now empty. A Feature that has a parent is still
refused unless the parent is open, listed-human-filed and holds no
decision label, so admit.mjs fetches the parent for a Feature and
decide() checks it only when one exists.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01ET8yQTue4Azdg1DeK22eLN
@kyle-sexton
kyle-sexton marked this pull request as ready for review October 24, 2026 15:50
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-24T15:51:45.372527Z 30d0af9 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on 30d0af980695bb7e6fd7e4e558c2a69424df4614; the summary is in this lane's pull request comment.

claude-lane: claude-review

Comment thread .github/scripts/intake-triage/admit.mjs Resolved
@github-actions

github-actions Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed f411b4e6a782e275fb12cfeb4fa11bcbe37df6d2: 0 finding(s), 0 as inline comments.

No blocking or advisory findings in this review of #9669.

I read the full diff (.claude-lane/pr.diff) and the PR context. I could not run the tests, so the PR's "920 pass" is author-claimed and unverified. I did not fan out subagents.

What I checked

  • decide() logic (admit.mjs, criterion 2):
    • A type in none of types, types-under-parent or types-parent-if-present is refused.
    • A type in types-under-parent, or a types-parent-if-present type that has a parent, must have an open parent that a listed human filed and that carries none of the PARENT_HOLDS labels.
    • A parentless Feature is admitted, and a Bug or Task is unchanged.
    • The refusal message now lists all three lists.
  • Parent fetch (admissionFacts): The parent is looked up for both parent-bearing lists. parentOf turns a 404 into null, which is what "no parent" relies on. Other errors still throw.
  • Rules loading: types-parent-if-present is added to LISTS, so loadRules validates it. The only reader of admission-rules.json for these keys is admit.mjs. The JSON file and the code change together in this PR, so I found no stale reader.
  • Tests:
    • A parentless Feature is admitted through decide and through the real fetch path.
    • A parent that an outsider filed, that is closed, or that awaits a decision is refused through the real fetch path.
    • Removing Feature from types-parent-if-present refuses it with or without a parent.
    • These cover each new branch.
  • Trusted paths: No changed file matches the trusted-path globs, so there is no trust-gate hold. I found nothing that adds model, API or billing spend.
  • Closing issues: There are none. The PR cites owner decision Q83 and has no acceptance criteria to check.

Description mismatch (not counted as a finding)
The PR body says Feature "moves from types-under-parent to types" and that decide() "applies the check only when one exists". The diff instead adds a new types-parent-if-present list holding Feature, and leaves types as ["Bug", "Task"]. The code is coherent and the admit.mjs header comment describes it correctly. The PR body is the part that is out of date, so correct it before merge so the record matches the config.

@github-actions

github-actions Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed f411b4e6a782e275fb12cfeb4fa11bcbe37df6d2: 0 finding(s), 0 as inline comments.

No security issues found in this change.

critical-findings: 0

What I read: the whole diff (admission-rules.json, admit.mjs, admit.test.mjs) and the surrounding parentOf and loadRules code. No changed file is on the trusted-actor list.

  • Intended loosening. A parentless Feature is now admitted. The PR cites owner decision Q83 for this, so the change is deliberate. The other admission checks still apply to such a Feature. These are the author gate (a listed human or the lanes App), the size and uncertainty lists, the work-class: untrusted-provenance hold, the refuse labels, the WIP caps, and the blockers and trusted-closes checks. I did not find a path that lets an untrusted author reach agent-ready through this change.
  • A Feature with a parent is still gated. If the parent lookup returns a parent, the parent must be open, filed by a listed human, and free of needs-human, needs-owner-decision and status: needs-decision. Tests cover the outsider, needs-decision and closed-parent cases.
  • The parent lookup fails closed. parentOf returns null only on a 404. Any other error rethrows, so a transient API failure cannot turn a Feature with a parent into a parentless one that gets admitted.
  • Rules loading fails closed. loadRules now requires types-parent-if-present to be a string list. A rules file without the key throws instead of silently admitting. A rules file that empties the key makes decide refuse a Feature, and a test covers that.
  • Type-check rewrite. decide now checks "not listed anywhere" first, then the parent check. An unlisted type, such as Epic or no type, is still refused. A type listed in both types and types-parent-if-present would get a parent check only when a parent exists, which is fine.
  • Manifests. The diff touches no plugin manifest.
  • Instruction surface. No standing instruction or guard text is deleted. The removed "Feature with no parent" refusal test matches the intended behavior change.

Comment thread .github/scripts/intake-triage/admit.mjs Resolved
Lane-Activity: pr-unblock/resolve-conflicts

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 2 inline finding(s) on 327b8fa80dd7e1e31666f17ea1e82a4c7afbcb57; the summary is in this lane's pull request comment.

claude-lane: claude-review

Comment thread .github/scripts/intake-triage/admit.mjs Resolved
Comment thread .github/scripts/intake-triage/admit.mjs Resolved
kyle-sexton and others added 4 commits October 24, 2026 12:57
…without a parent

Replace the hardcoded Feature case with a `types-parent-if-present` list.
The type-membership check is unconditional, so removing a type from the
rules refuses it with or without a parent. A type in the new list needs its
parent open, listed-human-filed and hold-free only when it has one, and
admissionFacts fetches the parent for it. Tests go through admit() and the
fake /parent endpoint, and the type-removed case is covered.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01ET8yQTue4Azdg1DeK22eLN
…-feature

# Conflicts:
#	.github/scripts/intake-triage/admit.mjs
…nto feat/admit-parentless-feature

# Conflicts:
#	.github/scripts/intake-triage/admit.mjs
@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 24, 2026
Merged via the queue into main with commit 2abc9e5 Oct 24, 2026
34 checks passed
@kyle-sexton
kyle-sexton deleted the feat/admit-parentless-feature branch October 24, 2026 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant