Skip to content

Add the issue and software-project core subtypes; move the development fields off task and project (closes #3735) - #3745

Merged
malibio merged 1 commit into
mainfrom
issue-3735-issue-software-project-subtypes
Oct 11, 2026
Merged

malibio merged 1 commit into
mainfrom
issue-3735-issue-software-project-subtypes

Conversation

@malibio

@malibio malibio commented Oct 11, 2026

Copy link
Copy Markdown
Collaborator

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.

Type Kind Parent Category Own fields
issue core subtype task flat status (declared again with two values added), pull_request (link), commits (link list)
software-project core subtype project flat repository (link), checkout_path (string, local_only)
  • task loses pull_request and commits; project loses repository and checkout_path. Writing one on the base type is refused as an undeclared field. No fallback read, no migration.
  • An issue's status is the task's field plus changes_requested → in_progress and ready_to_merge → in_review (maps_to, ADR-078). The values, labels and mapping are defined once, on IssueStatus; the seeded schema is built from it. Because the issue declares the field, an issue stores its status in the issue bucket.
  • No relationship, structural rule or participation rule is added or changed: both subtypes inherit everything.

Layers

  • Registry / wire types (nodespace-types): CoreNodeType::Issue, CoreNodeType::SoftwareProject; IssueNode, IssueNodeUpdate, IssueStatus, SoftwareProjectNode, SoftwareProjectNodeUpdate; promoted fields; generated TypeScript committed.
  • Core: seeded closed schemas, behaviours (validation added to the base's, nothing replaced), update_issue_node, update_software_project_node, an index on issue.status.
  • Proto / daemon / Tauri / dev-proxy: UpdateIssueNode, UpdateSoftwareProjectNode (JSON-encoded typed update, like spec/plan). The per-field link wrappers on the task and project requests are deleted.
  • Sessions: a session is launched for a software project only; a plain project is refused. The harness plugins match a checkout's git remote against software projects only.
  • Frontend: adapters, typed-update routing, IssueNode / IssueNodeViewer / IssueSchemaForm (the task form with the issue's statuses and links), software-project through the schema-driven form, both in the sidebar's type list.
  • Seeded skills: Implementing a Task records the pull request and commits on an issue; Reviewing a Task reads the pull request of an issue.

Found and fixed along the way

  • started_at was read in the task bucket 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.
  • Retyping a task into a subtype that declares an inherited field again failed ('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.
  • The app wrote projected query rows into its one node store. A Tasks view returned issues projected to task scope, which would have replaced an issue's own copy (no pull request, a mapped status). The two query RPCs take own_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_status held every node to task's statuses, so the agent could not move an issue to changes_requested. It now holds a status to the node's own type.
  • The seeded extends guidance 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 in issue_and_software_project_test.rs and written down in the issue sheet.

Rule On an issue
Spec (guards in_progress) Also guards changes_requested; ready_to_merge is not guarded
Lineage All four started statuses and done
Blockers All four started statuses; a blocker that is ready_to_merge still blocks
Criteria done only
Parent roll-up An issue is a sub-task and a parent; ready_to_merge holds the parent open
Seeded queues "In progress" includes changes_requested; "Awaiting review" includes ready_to_merge

Known limits

  • A status a user adds to task after the fact is not one of an issue's: an issue's status is its own declaration (pinned by a test, stated in the sheet).
  • Turning an issue back into a task is not decided (ADR-098) and not handled.
  • architecture/daemon-cli-protocol.md does not mention own_scope yet; that file has another session's uncommitted edits in the docs checkout.

Docs

components/node-types.md (the issue and software-project sheets, the fields removed from task and project) and architecture/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_to in queries and rules, retyping, the session launch, the adapter contract, and the frontend form, plugin, routing and board grouping.

🤖 Generated with Claude Code

@malibio

malibio commented Oct 11, 2026

Copy link
Copy Markdown
Collaborator Author

Pragmatic Code Review: PR #3745

  • Review Type: Initial Review (no prior reviews or comments on the PR)
  • Recommendation: APPROVE, with three Important follow-ups worth folding in before merge

Summary

The 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 nodespace-types, generated TypeScript, typed write path through proto / daemon / Tauri / dev-proxy, tests, and the node-types.md sheet (uncommitted in the docs working tree, as expected before merge).

None of the node-type Critical conditions is present. I checked each:

  • No undeclared key or edge property: both schemas are closed and the base types refuse the moved fields (tested on create and update).
  • No literal node_type comparison: scripts/check-node-type-literals.ts passes on the branch.
  • No lifecycle_status read: scripts/check-lifecycle-reads.ts passes.
  • One definition per wire type: IssueStatus owns the values, labels and maps_to; the schema is built from it and a test pins both directions. The per-field OptionalJsonClear wrappers are deleted, not kept beside the new RPCs.
  • No ids stored where a relationship belongs, no non-UUID ids, no compatibility code: there is no fallback read of the old bucket and no backfill.
  • scripts/check-sync-boundary.ts passes. No console.*, lint suppression, any, or issue numbers in added lines.

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 test:changed passing) and did not launch the app.

Requirements Check (issue #3735)

Criterion Note
✅ issue and software-project are core subtypes with a seeded closed schema, wire type, typed update, generated TypeScript core_type.rs, core_schemas.rs, issue.rs, software_project.rs, types/generated/*
✅ task / project lose the four fields; writing one on the base type is refused the_base_types_refuse_the_development_fields
✅ An issue accepts changes_requested and ready_to_merge; a plain task refuses them Typed and generic paths both tested; the agent's update_task_status too
✅ Task-scoped rule or query matches issues and reads the mapped status; issue-scoped reads the stored value and own fields a_task_query_reads_an_issue_status_as_the_one_it_maps_to, daemon own_scope test
✅ Seeded rules, roll-up and Ready tasks behave on an issue, including a move between two statuses that map to the same core status; written down One test per rule; the table is in the issue sheet
✅ A checkout binds to a software project only; a session runs in its checkout_path Both harness plugins query software-project; a_session_cannot_be_launched_for_a_plain_project
✅ The app shows the subtypes with their own fields and the base types without Covered by form, plugin and normalize tests. Not verified in the running app
✅ No node_type literal comparison added Checker passes; see the nit on kanban-view.svelte
✅ gen:types output committed; types:check / node-types:check pass Generated files are in the diff and match the Rust shapes I read; I did not re-run the two checks
✅ Tests per the node type sequence Registry, wire contract, typed update (write, clear, conflict, wrong type, vocabulary), closed-schema rejection, inheritance, maps_to
✅ quality:fix and test:changed Per the author; not re-run

Code Review Findings

🟡 Important

1. stamp_task_started resolves field ownership again on every task-family write, and once per row in bulk paths
📁 packages/core/src/services/node_service/crud.rs:2772-2810; callers at packages/core/src/services/node_service/bulk.rs:173, :600, :734, :981

The function now calls self.resolve_field_owners(&updated.node_type) (a chain walk plus one schema read per chain member), and a second time for task when the status bucket is not task, which is every issue. Each caller has just resolved the same ownership for rebucket_and_validate_with; the bulk paths even hold it in a per-type cache (ownership_by_type), then pay for it again per node. Before this PR the function did one type_is_a and no schema reads.

Recommendation: take &FieldOwnershipInfo as a parameter and pass the ownership the caller already holds. Resolve task's fields only on the branch that needs them, or carry them in the same batch cache.
Principle: no N+1 reads inside a write loop; do not recompute what the caller has in hand.

2. A doctest now asserts something false, and a comment describes the wrong storage shape for an issue
📁 packages/core/src/behaviors/mod.rs:2711-2717; packages/core/src/services/node_service/crud.rs:3626-3629

  • The doctest on NodeBehaviorRegistry::resolve asserts registry.resolve(&["issue", "task"]).type_name() == "task", with the comment "A user's issue extends task is a task". IssueNodeBehavior is now registered, so resolve returns it and type_name() is "issue". The merge gate runs nextest, which skips doctests, so nothing catches this; bun run rust:test:doc would fail. Confirmed by reading register_core, get and resolve; I did not run the doctest.
  • The doc comment on bucket_properties_by_owner still says an issue node "ends up as {"issue": {"severity": …}, "task": {"status": …}}". For the core issue that is now wrong: status is in the issue bucket, which is the point of this PR.

The PR renamed the user-type example to bug / chore in the seeded guidance and in several tests, but not here. Other comments still use issue extends task as the user-defined example (schema/extends_chain.rs:78, services/mod.rs:137 and :548, db/sqlite_store/nodes.rs:3511, db/sqlite_store/type_ancestry.rs:42, services/node_service/schema.rs:613, db/schema.rs:209). Those are only misleading, not wrong.

Recommendation: fix the doctest and the crud.rs comment in this PR; rename the rest in the same pass.
Principle: comments and examples must not contradict the code; CLAUDE.md warns agents not to infer architecture from stale comments, so these have a real cost here.

3. The outline's task-state icon hardcodes the issue statuses, a second definition of the mapping that misses user-added values
📁 packages/desktop-app/src/lib/plugins/core-plugins.ts:108-127 (taskStateOfStatus)

changes_requested and ready_to_merge are listed by name as "in progress". The mapping is otherwise defined once (IssueStatus::task_status, emitted as mapsTo on the schema), and the board added in this same PR resolves it properly through enumValueAtScope. The icon does not, so:

  • a status a user adds to issue with mapsTo (the qa → ready_to_merge case the core test exercises) falls to default and shows as pending;
  • a click on that icon then advances "pending → inProgress" and writes in_progress, moving a nearly-landed issue backwards.

The same holds for a user subtype of task that adds statuses. That gap existed before, but this PR is where subtype statuses become a shipped feature.

Recommendation: resolve the stored status to task scope through the loaded schemas (enumValueAtScope, as kanban-view.svelte does), then map the five core task statuses to a state. The hardcoded names go away.
Principle: DRY / single source of truth (ADR-086); two views of the same node should agree on what its status means.

🟢 Suggestions

4. The rebucketing pass can silently discard an explicitly written value
📁 packages/core/src/services/node_service/crud.rs:3704-3724

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 {"task": {"status": "done"}} on an existing issue: after the merge both buckets hold a status, the stored one wins, and the written one is dropped with no error. Before this PR the same write was refused by reject_undeclared_core_keys. The flat path and the nested-in-own-bucket path (unnest_ancestor_buckets) are both handled correctly. This is from reading the code, not from a failing test, and the bucketed shape is rare.
Recommendation: refuse when both buckets hold different values, or add a test that pins the chosen behaviour.
Principle: fail loudly rather than drop input.

5. The issue's status values are not stored in workflow order
📁 packages/core/src/models/core_schemas.rs:209-233 (issue_status_field)

The two added values are appended after cancelled, so the stored order is open, in_progress, in_review, done, cancelled, changes_requested, ready_to_merge. enumColumns and the status select both render in schema order, so a board of issues puts "Changes Requested" and "Ready to Merge" to the right of "Cancelled". IssueStatus::CORE already has the workflow order and documents it as such. Building core_values from IssueStatus::CORE (labels from the task field for inherited values) gives the ADR's flow on screen. The test issue_status_is_a_tasks_with_two_mapped_values pins "task's values first" and would change with it, as would the sheet's value list.

6. Two markdown renderers decide "is a task" two different ways
📁 packages/core/src/ops/search_ops.rs:170 vs packages/core/src/markdown/mod.rs:1897-1900

markdown/mod.rs asks the registry (core.is_a(CoreNodeType::Task)); search_ops.rs lists Task | Issue by variant, so the next core subtype of task has to be added by hand. Use is_a in both.

7. The two new behaviours are empty and delegate by hand
📁 packages/core/src/behaviors/mod.rs:624-652, :867-896

IssueNodeBehavior and SoftwareProjectNodeBehavior validate nothing and forward three methods to the base behaviour so that resolve still answers as the base. If TaskNodeBehavior later overrides a fourth method (get_aggregated_content, process_content), an issue silently gets the trait default instead. Not registering a behaviour at all would let resolve and for_chain fall through to the base, which is the documented behaviour for a type with none. If the sequence requires a registered behaviour per core type, a test asserting that the subtype answers every trait method as its base does would close the gap.
Principle: YAGNI; avoid delegation that has to be kept in step by hand.

8. nodeToSoftwareProjectNode does not write every typed key, unlike nodeToIssueNode
📁 packages/desktop-app/src/lib/types/software-project-node.ts:28-36

nodeToIssueNode writes each typed key, set or not, with the comment that a merge over an older copy then clears a field the backend no longer carries. The software-project converter copies nodeToProjectNode, which never did this, so a repository or checkoutPath cleared elsewhere (CLI, agent) may survive in a merged store copy. I did not trace the store's merge to confirm the stale value is reachable; the inconsistency between the two new converters is confirmed.

9. own_scope is undocumented and covers two of the three projecting RPCs
📁 packages/proto/proto/node_service.proto:987-993, :1020-1024; packages/daemon/src/services/node_service.rs:1592

The flag is a reasonable, small answer to "the app keeps one copy of a node" and the daemon test covers both modes. RunSavedQuery still always projects. That is fine today (the app does not call it; I grepped), but the proto comment reads as a general contract. Either say so in the comment or add the flag there when the app first needs it. The author already notes architecture/daemon-cli-protocol.md lacks the field; it should land with the docs push for this PR, since the sheet now references own_scope.

Nitpicks

  • Nit: packages/desktop-app/src/lib/components/query/kanban-view.svelte:131 compares node.nodeType === schema?.id directly. It is not a literal and the checker passes, but isExactly is the house form. The branch is also unnecessary: enumValueAtScope returns the value unchanged when the scope declares it.
  • Nit: packages/desktop-app/src/lib/components/query/table-row.svelte:83-89 and kanban-view.svelte:133-136 do a linear schemasStore.schemas.find per cell and per card. Fine at today's sizes; a lookup by id would be cleaner.
  • Nit: packages/desktop-app/src/lib/components/viewers/ai-chat-pty-session.svelte:173 filters with isSoftwareProjectNode (exact) after querying software-project, while the daemon accepts any type that extends it. A user subtype of software-project is launchable from the CLI and not offered in the app.
  • Nit: packages/core/src/services/node_service/crud.rs:2819 and :2824 format today twice; compute it once above the branch.

Scope note

The 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 a_task_retyped_into_an_issue_keeps_its_fields, and the sheet states that no surface offers the retype.

Recommendation

APPROVE. 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 malibio left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Automated pragmatic-code-review: APPROVE (posted as a comment — GitHub blocks self-approval). Full findings in the review comment above.

@malibio

malibio commented Oct 11, 2026

Copy link
Copy Markdown
Collaborator Author

Review addressed

bun run test:changed passes on the result (frontend, scripts, skill, browser, type and sheet drift checks, Rust workspace).

Addressed

  1. stamp_task_started reads (Important). A plain task now resolves nothing, as before this PR: both fields are in its own bucket. Only a node of a type that extends task resolves its ownership. I did not thread the caller's FieldOwnershipInfo through the nine call sites: five of them resolve it inside rebucket_and_validate and would need restructuring, and the remaining cost is two cached-size reads per write of a subtype instance.
  2. False doctest and comment (Important). The resolve doctest now uses a user subtype and asserts the core subtype separately; the bucket_properties_by_owner and rename comments use bug. While there, the registry's struct-level doctest, which was already failing on main with a stale call signature, is fixed.
  3. Outline icon's status mapping (Important). The icon state is decided on the task status the node's own status maps to, through enumValueAtScope and the loaded schemas, the same resolution the board uses. A status a user adds to issue is covered, and the hardcoded list is gone. The lookup goes through the type resolver in core-node-types (declaredField), not the schemas store, so the plugin module stays import-light; the board and the table use it too.
  4. Status order (Suggestion). The issue schema lists its statuses in workflow order, built from IssueStatus::CORE; the test and the sheet follow.
  5. Two renderers (Suggestion). The search renderer asks is_a(Task).
  6. nodeToSoftwareProjectNode (Suggestion). Writes every typed key.
  • Nits. The board no longer compares the type before mapping; the session launcher lists any type that extends software-project; today is formatted once.

Checked, no change

  1. A value written into the ancestor's bucket (Suggestion). It is not dropped: the update pipeline lifts a field addressed to an ancestor's bucket to the schema that declares it before rebucketing. a_status_addressed_to_the_task_bucket_is_written_as_the_issues pins it.

Skipped

  1. Empty behaviours. Kept. The registry test requires one behaviour per core type, and each delegates the three methods the base overrides. Worth revisiting if a base behaviour gains a fourth override.
  2. own_scope on RunSavedQuery and in daemon-cli-protocol.md. The app does not call RunSavedQuery, so there is no copy for a projection to replace. The protocol doc has another session's uncommitted edits in the docs checkout; the field is described in the proto and in the issue sheet.
  • Nit: linear schema lookup per cell. The schema list is a few dozen entries.
  • Other comments using issue extends task as an example. They describe the type chain, which is still ["issue", "task"].

Re-Review Decision

Decision: 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).

@malibio

malibio commented Oct 11, 2026

Copy link
Copy Markdown
Collaborator Author

Pragmatic Code Review: PR #3745 (re-review)

  • Review Type: Re-Review
  • Scope: 8af8304e4..HEAD (3 commits: b2f6c56b0, 7025f7d96, 788954ac3)
  • Recommendation: APPROVE

Previous Review Summary

Count
Previous recommendations 9 findings + 4 nits
Addressed 6 findings (1 of them in part) + 3 nits
Acceptably skipped 2 findings + 1 nit
Not fully settled 1 (finding 4, a Suggestion)
New issues found 0 Critical, 0 Important, 3 Suggestions

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 bun run test:changed passing on HEAD, and nextest does not run doctests, so the two doctest fixes are verified against the method signatures only.

Status of each previous finding

  1. stamp_task_started reads (Important): addressed in part, remainder acceptable. A node whose type is exactly task now resolves nothing. The fast path is correct: with empty owners, both fields fall back to the task bucket, which is what resolve_field_owners("task") gave, and the empty fields is only read on the branch a plain task cannot reach. A subtype instance still resolves its ownership per row in the four bulk paths, and task's again when its status moves. That is bounded by the number of issues in a batch and the reason given for not threading the caller's ownership through nine call sites holds.
  2. False doctest and stale comment (Important): addressed. The resolve doctest asserts chore → task and issue → issue, which matches register_core. The struct-level doctest's two validate_node calls now pass the chain, matching validate_node<S>(&self, node, chain). The bucket_properties_by_owner and rename comments use bug.
  3. Outline icon's status mapping (Important): addressed. taskStateOf resolves the stored status to task scope through enumValueAtScope; the hardcoded names are gone, and the test covers a user-added status that maps through ready_to_merge and one that maps to cancelled. Reactivity holds: node-row.svelte calls extractNodeMetadata(node) in a {@const}, the resolver reads schemasStore.schemas ($state) synchronously, so the icon re-evaluates when the schemas load. The board's groupValueOf and the table's label map are read inside derived values the same way.
  4. Rebucketing can discard a written value (Suggestion): not fully settled. See new finding A.
  5. Status order (Suggestion): addressed. The schema is built from IssueStatus::CORE; inherited values are cloned from the task field, so labels cannot drift. Nothing else reads the list by position: the other users of CORE / OWN are tests and gen_ts's set check. The sheet in the docs working tree lists the same order.
  6. Two renderers (Suggestion): addressed. search_ops.rs asks core.is_a(Task).
  7. Empty behaviours (Suggestion): acceptably skipped. The registry test requires a behaviour per core type; the risk is noted by the author.
  8. nodeToSoftwareProjectNode (Suggestion): addressed. Every typed key is written.
  9. own_scope documentation (Suggestion): acceptably skipped for the code. The app does not call RunSavedQuery. The daemon-cli-protocol.md update is still owed with the docs push.
  • Nit, board type comparison: addressed. The branch is gone; enumValueAtScope returns a value the board declares unchanged, so a node of the board's own type behaves as before.
  • Nit, session launcher: addressed, with a caveat in new finding C.
  • Nit, today twice: addressed.
  • Nit, linear schema lookup: acceptably skipped.
  • Other issue extends task comments: acceptably skipped. They describe the chain, which is still ["issue", "task"].

New findings

🟢 A. The new test pins a different write shape from the one finding 4 named

📁 packages/core/tests/it/issue_and_software_project_test.rs:912-936; packages/core/src/services/node_service/crud.rs:3152-3170, :3717-3737

The test writes {"task": {"status": "in_review", "priority": "high"}}. That payload has no issue key, so normalize_flat_properties_to_namespace nests it under issue and unnest_ancestor_buckets lifts the status into the issue bucket. That path is correct and now pinned.

Finding 4 was about a payload that already holds the node's own bucket, such as {"issue": {}, "task": {"status": "done"}}. Normalization returns it as it is, the deep merge leaves task.status = "done" beside the stored issue.status, and the misplaced-field pass removes the task copy and keeps the stored one (bucket.entry(field).or_insert(value)). The written status is dropped and the write succeeds. This is from reading the three functions; I did not run it. No caller I know of sends that shape, so it stays a Suggestion.

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.
Principle: fail loudly rather than drop input.

🟢 B. declaredField reads the node's own schema only, not the nearest declaration in its chain

📁 packages/desktop-app/src/lib/types/core-node-types.ts:71-79; used at components/query/kanban-view.svelte:133, components/query/table-row.svelte:83

A user type that extends issue without declaring status again inherits the issue's declaration. declaredField('<that type>', 'status') returns undefined, so on a board of tasks its changes_requested card is filed under Unassigned and a table of tasks shows the raw value. The core side resolves the same case through the whole chain (resolve_field_owners). The outline icon is not affected: plugins are looked up by exact type, so only task and issue reach taskStateOf. The behaviour is the same as at the first review (the lookup was own-type-only there too); the new helper is the natural place to fix it once.

Recommendation: walk typeChain(nodeType) and return the first schema that declares the field.
Principle: rules resolve through the extends chain (ADR-086), the same answer in Rust and TypeScript.

🟢 C. Suspicion: the session launcher's subtype filter runs once and casts

📁 packages/desktop-app/src/lib/components/viewers/ai-chat-pty-session.svelte:168-179

loadProjects runs once on mount. isA for a user-defined type needs the loaded schemas, so if they are not loaded yet a user subtype of software-project is filtered out and never comes back. The type guard was also replaced by an as SoftwareProjectNode[] cast; whether a user subtype's node carries checkoutPath at the top level depends on the typed conversion, which I did not trace. Core software-project nodes are unaffected on both counts. Since the daemon already filters by type, dropping the client filter would remove the timing question.

Nitpicks

  • Nit: packages/desktop-app/src/tests/plugins/core-plugins.test.ts:526-559 sets the type resolver inside the test and resets it on the last lines; a failing assertion leaves it set for the rest of the file. An afterEach reset is safer.

Node-type Critical checks on the new commits

None present. No literal node_type comparison was added (the board's node.nodeType === schema?.id is removed; the launcher uses isA), no lifecycle_status read, no second wire-type definition, no compatibility code. The status order change is a seeded-schema change with no carry-forward code, which is the policy.

Recommendation

APPROVE. The three Important findings are fixed and the fixes hold up on reading. The remaining items are Suggestions; A is the one worth a second test case before merge, since the response to finding 4 overstates what the new test proves.

@malibio malibio left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Automated pragmatic-code-review (re-review): APPROVE (posted as a comment — GitHub blocks self-approval). Full findings in the review comment above.

@malibio

malibio commented Oct 11, 2026

Copy link
Copy Markdown
Collaborator Author

Re-review addressed

Frontend suite (5895) and the core test below pass; quality:fix is clean.

  • A. The write shape finding 4 named. The reviewer was right: my earlier reply covered one shape only. a_status_addressed_to_the_task_bucket_is_written_as_the_issues now pins all three. A status addressed to the task bucket alone is written as the issue's. Named in both buckets, the issue bucket's value is written. Named in the task bucket beside an issue bucket that does not name it, the stored status stands and the write succeeds. I kept "the declaring bucket wins" over refusing on a difference: a refusal would also reject the first status change of a node whose subtype added values after the node existed, where the stale copy in the base bucket always differs from the new value.
  • B. declaredField and the chain. It now returns the nearest declaration in the type's chain, so a user type that extends issue maps on a board of tasks as an issue does. Tested.
  • C. Session launcher filter. The client filter is removed: the daemon returns software projects and the types that extend them, so the list no longer depends on whether the schemas had loaded.
  • Nit. The plugin test resets the type resolver in afterEach.

Still owed with the docs push: own_scope in daemon-cli-protocol.md, which has another session's uncommitted edits in the docs checkout.

Re-Review Decision

Decision: 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.

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.

Add the issue and software-project core subtypes; move the development fields off task and project

1 participant