Repository navigation
Add the issue and software-project core subtypes; move the development fields off task and project (closes #3735) - #3745
Conversation
Pragmatic Code Review: PR #3745
SummaryThe change does what ADR-098 decides and follows the node type sequence layer by layer: registry entries, closed seeded schemas, validation-only behaviours, one wire type each in None of the node-type Critical conditions is present. I checked each:
What I ran: the three lint checks above. Everything else is from reading the diff and the surrounding code; I did not run the Rust or frontend suites (the author reports Requirements Check (issue #3735)
Code Review Findings🟡 Important1. The function now calls Recommendation: take 2. A doctest now asserts something false, and a comment describes the wrong storage shape for an issue
The PR renamed the user-type example to Recommendation: fix the doctest and the 3. The outline's task-state icon hardcodes the issue statuses, a second definition of the mapping that misses user-added values
The same holds for a user subtype of Recommendation: resolve the stored status to 🟢 Suggestions4. The rebucketing pass can silently discard an explicitly written value The new pass moves a field from an ancestor's bucket to the nearer declaring type "unless the owner's bucket already holds one, which is the newer value and is kept". That holds for a retype. It does not hold for an update that arrives already bucketed (own bucket present, so not normalized) and names 5. The issue's status values are not stored in workflow order The two added values are appended after 6. Two markdown renderers decide "is a task" two different ways
7. The two new behaviours are empty and delegate by hand
8.
9. The flag is a reasonable, small answer to "the app keeps one copy of a node" and the daemon test covers both modes. Nitpicks
Scope noteThe issue lists "retyping a task into an issue" as a non-goal, and the PR adds the bucket move that makes it work. I read that as a bug fix rather than scope creep: the same move is needed for a user subtype that adds values to an inherited enum after nodes exist, which previously failed with "'status' is not a field of the core type 'task'". It is covered by RecommendationAPPROVE. The change is a clear net improvement, is atomic around one decision, and passes every node-type Critical check. Findings 1 to 3 are worth fixing in this PR: 1 is a mechanical signature change, 2 is a false doctest the gate cannot see, and 3 makes the outline disagree with the board added in the same PR. The suggestions are optional. |
malibio
left a comment
There was a problem hiding this comment.
Automated pragmatic-code-review: APPROVE (posted as a comment — GitHub blocks self-approval). Full findings in the review comment above.
Review addressed
Addressed
Checked, no change
Skipped
Re-Review DecisionDecision: RE-REVIEW NEEDED Rationale: The fixes changed logic in several places (the started stamp's fast path, the schema's value order, the icon's status resolution and a new resolver lookup used by three views). |
Pragmatic Code Review: PR #3745 (re-review)
Previous Review Summary
How I checked: I read the diff and the code around every changed site. I did not run any test or doctest; the author reports Status of each previous finding
New findings🟢 A. The new test pins a different write shape from the one finding 4 named📁 The test writes Finding 4 was about a payload that already holds the node's own bucket, such as Recommendation: in the misplaced-field pass, refuse when both buckets hold different values on an update, or add a second case to this test that pins whichever outcome is intended. The response's "it is not dropped" is true of the tested shape only. 🟢 B.
|
malibio
left a comment
There was a problem hiding this comment.
Automated pragmatic-code-review (re-review): APPROVE (posted as a comment — GitHub blocks self-approval). Full findings in the review comment above.
Re-review addressedFrontend suite (5895) and the core test below pass;
Still owed with the docs push: Re-Review DecisionDecision: NO RE-REVIEW NEEDED Rationale: The re-review approved with Suggestions only. These changes are a test that pins existing behaviour, a four-line chain walk with its own test, and the removal of a redundant client-side filter; no write path changed. |
…t fields off task and project (closes #3735)
29e6704 to
dd41db7
Compare
Closes #3735. Implements ADR-098.
What changes
Two core subtypes are added, and the development state leaves the base types. A plain task and a plain project now carry none.
issuetaskstatus(declared again with two values added),pull_request(link),commits(link list)software-projectprojectrepository(link),checkout_path(string,local_only)tasklosespull_requestandcommits;projectlosesrepositoryandcheckout_path. Writing one on the base type is refused as an undeclared field. No fallback read, no migration.statusis the task's field pluschanges_requested→in_progressandready_to_merge→in_review(maps_to, ADR-078). The values, labels and mapping are defined once, onIssueStatus; the seeded schema is built from it. Because the issue declares the field, an issue stores its status in theissuebucket.Layers
nodespace-types):CoreNodeType::Issue,CoreNodeType::SoftwareProject;IssueNode,IssueNodeUpdate,IssueStatus,SoftwareProjectNode,SoftwareProjectNodeUpdate; promoted fields; generated TypeScript committed.update_issue_node,update_software_project_node, an index onissue.status.UpdateIssueNode,UpdateSoftwareProjectNode(JSON-encoded typed update, like spec/plan). The per-field link wrappers on the task and project requests are deleted.IssueNode/IssueNodeViewer/IssueSchemaForm(the task form with the issue's statuses and links),software-projectthrough the schema-driven form, both in the sidebar's type list.Found and fixed along the way
started_atwas read in thetaskbucket only, so it would never be stamped on an issue. It now reads each field where the node's type declares it, and a subtype's added status counts as the status it maps to.'status' is not a field of the core type 'task'). Rebucketing now moves such a field from the ancestor's bucket to the nearer type that declares it. This also covers a user subtype that adds values to an inherited enum after nodes exist.taskscope, which would have replaced an issue's own copy (no pull request, a mapped status). The two query RPCs takeown_scope, the app asks for it, and boards and tables map a subtype's value when they show it. The CLI and agent are unchanged.update_task_statusheld every node totask's statuses, so the agent could not move an issue tochanges_requested. It now holds a status to the node's own type.extendsguidance used "Issue extends task" as its example of a user type, which the database now refuses; the example is "Bug".How the seeded task rules behave on an issue
Each is written against
task, fires on every change of an issue's status, and reads the status the new value maps to. Tested inissue_and_software_project_test.rsand written down in theissuesheet.in_progress)changes_requested;ready_to_mergeis not guardeddoneready_to_mergestill blocksdoneonlyready_to_mergeholds the parent openchanges_requested; "Awaiting review" includesready_to_mergeKnown limits
taskafter the fact is not one of an issue's: an issue'sstatusis its own declaration (pinned by a test, stated in the sheet).architecture/daemon-cli-protocol.mddoes not mentionown_scopeyet; that file has another session's uncommitted edits in the docs checkout.Docs
components/node-types.md(theissueandsoftware-projectsheets, the fields removed fromtaskandproject) andarchitecture/agent-session.md, in nodespace-docs, pushed just before the merge.Tests
Registry, wire contract, typed update (write, clear, conflict, wrong type, vocabulary), closed-schema rejection on the base types, subtype inheritance,
maps_toin queries and rules, retyping, the session launch, the adapter contract, and the frontend form, plugin, routing and board grouping.🤖 Generated with Claude Code