Skip to content

Replace task's free-text assignee field with a person->task relationship - #2507

Merged
malibio merged 3 commits into
mainfrom
issue-2112-assignee-relationship
Sep 8, 2026
Merged

malibio merged 3 commits into
mainfrom
issue-2112-assignee-relationship

Conversation

@malibio

@malibio malibio commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Task assignment becomes a typed edge instead of the free-text assignee property: person's schema now declares a tasks relationship (Out/Many) targeting task, with reverse_name: "assignee" (One) — mirroring project's existing tasks/project pair. Task's assignee link is the derived inverse and carries no declaration of its own.
  • Removed assignee end-to-end: task's schema field, TaskNode/TaskNodeUpdate (core, nodespace-types, Tauri command layer), the gRPC UpdateTaskNodeRequest.assignee field, the dead-code assignee combobox in TaskSchemaForm (assigneeOptions: [] placeholder), and the now-dead idx_task_assignee SQL index (and its db/schema.sql mirror).
  • Assignment and clearing both work today through the existing generic create_relationship/delete_relationship API and RelationshipViewerModal — no new UI required. A dedicated assignee picker is explicitly left to Add typed property forms for packaged schemas person and project, following the task form pattern #2102 per the issue's own scope split.
  • Pre-release, no migration: the assignee property and its index are deleted outright; a database needs a reset to pick up the new relationship-only shape.

Design decisions

  • Cardinality: person→task is Many/reverse One — a person can have many tasks, a task has at most one assignee (matches the free-text field's single-valued behavior).
  • Relationship name: tasks on person's side (mirrors project's tasks), reverse name assignee on task's side.
  • Querying: assignee is simply gone from resolve_field/property-filter paths (no scalar property to filter on anymore); Kanban's eligibleGroupByFields already excludes non-enum fields, so assignee (previously text) was never a valid group-by target and needed no change.
  • Two title-template regression tests that used assignee purely as a generic scalar-token smoke test were switched to priority instead, preserving the same template-recompute coverage.

Test plan

  • bun run test:all — all green (238+4 frontend files / 4919+61 tests, all Rust packages, 0 failures)
  • bun run quality:fix — clean (eslint, svelte-check, tsc, cargo fmt, cargo clippy -D warnings)
  • New end-to-end test person_task_assignee_relationship_assigns_and_clears_end_to_end proves assignment, both-sides visibility, and clearing via the generic relationship API
  • core_schemas.rs unit tests confirm the schema declaration (test_person_declares_tasks_assignee_relationship) and task's still-empty relationships (test_task_schema_has_fields, field count 6→5)

Closes #2112

🤖 Generated with Claude Code

https://claude.ai/code/session_015kTvytaXv3TSDkTFuCg4WQ

…hip (closes #2112)

Task assignment becomes a typed edge instead of a scalar property. Person's
schema declares `tasks` (Out/Many) targeting task, with `reverse_name:
"assignee"` (One) — mirroring project's existing `tasks`/`project` pair, so
task's assignee link is derived, never declared on task's own schema.

Removes `assignee` end-to-end: task's schema field, `TaskNode`/`TaskNodeUpdate`
(core, nodespace-types, Tauri), the gRPC message field, the dead-code assignee
combobox in TaskSchemaForm, and the now-unused `idx_task_assignee` index.
Assignment and clearing both work today through the existing generic
create_relationship/delete_relationship API and RelationshipViewerModal — no
new UI required; a dedicated picker is left to #2102 per the issue's own
scope split.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015kTvytaXv3TSDkTFuCg4WQ
@malibio

malibio commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator Author

Pragmatic Code Review — PR #2507 (closes #2112)

Review Type: Initial Review
Scope: Replace task's free-text assignee field with a person→task relationship (reverse_name: "assignee")

Summary

This is a well-executed mechanical removal plus a small, correctly-mirrored additive schema declaration. The Rust workspace and the touched frontend test suites all build/pass green (verified independently, not just taken on faith). The person tasks relationship declaration is a structurally exact match to project's pre-existing tasks declaration. The completeness sweep found the vast majority of remaining assignee string hits in the tree to be legitimate (unrelated fixtures, generic property-name placeholders in tests, or pre-existing unrelated UI copy).

Two real gaps surfaced, though: a stale reference in packages/dev-tools/src/dev-proxy.ts that is a genuine (if likely inert) TypeScript type error, and — more importantly — live agent system-prompt text in packages/agent/src/skill_pipeline.rs that still tells the LLM agent assignee is a valid task field_values key, which this PR makes false and will actively mislead the agent's tool calls. There's also a real test-quality gap in the new end-to-end test: it never asserts on reverse_name, the one field that actually encodes "assignee" as a concept, so a mutation test (deliberately renaming reverse_name to a wrong value) still passes the suite.

None of these are architectural regressions, and the core mechanism (schema declaration, removal, DDL/index cleanup, proto field removal) is sound. I'd call this a net positive that needs one clear fix (skill_pipeline.rs) before merge and one cheap follow-up (dev-proxy.ts) — not a fundamental rework.

Requirements Check

# Criterion Status Evidence
1 assignee removed from task's schema; assignment expressed only as the edge ✅ packages/core/src/models/core_schemas.rs:76-98 (field block deleted), task.fields.len() updated 6→5 (core_schemas.rs:1616), task.relationships stays empty (core_schemas.rs:217)
2 Person's task relationship uses reverse_name: "assignee" ✅ core_schemas.rs:1366, verified structurally identical to project's tasks declaration (core_schemas.rs:379-389) apart from reverse_name/description
3 TaskNode.assignee, assignee_id(), set_assignee_id() removed; stale "assigneeId" doc example corrected ✅ packages/core/src/models/task_node.rs:24-190 (doc example now ends at dueDate), getter/setter deleted (task_node.rs:554-276 range)
4 assignee removed from TaskNodeUpdate, gRPC message, Tauri command, frontend typed-update path ✅ core_schemas.rs/task_node.rs (Rust), packages/proto/proto/node_service.proto:739-743 (field 6 gone), packages/desktop-app/src-tauri/src/commands/nodes.rs:866-905, packages/desktop-app/src/lib/services/adapter-core.ts:208-238, packages/desktop-app/src/lib/types/task-node.ts
5 idx_task_assignee removed (DDL bootstrap, legitimate in-place edit) ✅ Removed from both packages/core/src/db/migrations/v003_property_indexes.rs:27 (deleted) and packages/core/src/db/schema.sql:38 (deleted) — mirrors stayed in sync
6 Dead assignee comboboxes removed from task-schema-form.svelte / schema-property-form.svelte ✅ / N/A task-schema-form.svelte combobox fully removed (~80 lines); schema-property-form.svelte was already deleted in a prior, already-merged PR (#2135, closing #2102) — confirmed via git log --all -- '**/schema-property-form.svelte' and git show origin/main:... (does not exist on main). Nothing left for this PR to do there.
7 Cardinality decided and documented ✅ Person side Out/Many, task's reverse One — matches the issue's recommendation for single-assignee semantics; rationale stated in code comments (core_schemas.rs:1357-1360) and the commit/test doc-comment (node_service/mod.rs:6777-6784)
8 Assigning and clearing both work end to end ✅ (mostly) person_task_assignee_relationship_assigns_and_clears_end_to_end (packages/core/src/services/node_service/mod.rs:6784-6853) exercises create_relationship/delete_relationship and independently re-reads state via get_node_relationships both before and after clearing — genuinely exercises assignment and clearing, not a tautology. However, see Finding 🟡 below: it never asserts reverse_name == "assignee", so it would not catch a wrong reverse_name.
9 Query/filter paths coherent for assignee-as-property ✅ Explicit-exclusion-by-omission approach taken: resolve_field/build_property_filter (packages/core/src/services/query_service/mod.rs:353-370) remain fully generic (build json_extract paths from any field name) — a filter naming assignee on task now just resolves to an always-NULL path rather than erroring or half-implementing edge traversal. kanban-grouping.ts is enum-only grouping and assignee was never enum-typed, so no dead branch there either — comment-only change. Coherent, though the failure mode for a stray property-filter on assignee is silent (see Nit).
10 Task's empty-relationships assertion updated ✅ test_task_schema_has_fields (core_schemas.rs:1611-1620) drops the assignee field assertion and updates the count to 5; the new test_person_declares_tasks_assignee_relationship (core_schemas.rs:1644-1664) explicitly re-asserts task.relationships.is_empty()

Also verified: no migration/compat-shim code was added anywhere for the index or field removal — the field and index are deleted outright, consistent with the NO BACKWARD COMPATIBILITY policy.

Findings

🔴 Critical

  • packages/agent/src/skill_pipeline.rs:180 — The "Graph Editing Guidance" skill's live system-prompt text (graph_editing_guidance(), actually injected into what the LLM agent reads) still states: "CONTENT vs FIELD VALUES: Use the content field only when the user is renaming the node. Use field_values for typed fields (status, assignee, due_date, etc.)." This is now false — task no longer has an assignee field at all, so field_values cannot accept it as a typed field for a task. Per the same skill's own instructions elsewhere (line 400, in a different skill, but same principle), an agent instructed to write assignee into field_values for a task will now either silently no-op (dropped, since it isn't a declared field) or get written as a stray unschema'd bare property — actively misleading agent behavior, not just a stale comment. This is a functional regression introduced by this PR (the guidance was correct before the schema change, wrong after it) and should block merge. Fix: drop assignee from that example list (e.g. (status, due_date, etc.)), or replace it with a currently-valid example if the list needs three items.

🟡 Important

  • packages/dev-tools/src/dev-proxy.ts:397-412 — buildTaskNodeUpdatePatch is called with a body type that still declares assignee?: string | null, and the constructed gRPC request literal still includes assignee: patch.assignee ?? null. Since TaskNodeUpdatePatch (packages/desktop-app/src/lib/services/adapter-core.ts:208-215) no longer has an assignee field, patch.assignee is a genuine TypeScript error (TS2339: Property 'assignee' does not exist on type 'TaskNodeUpdatePatch' — confirmed directly with tsc --noEmit). This package has no dedicated tsconfig wired into bun run check, so it's not caught by the standard quality gate, which is presumably how it slipped through — but it's real dead/stale code referencing a removed concept and should be deleted (the local assignee type annotation and the assignee: patch.assignee ?? null, request field). Functionally likely harmless at runtime today (grpc-js typically drops unknown fields against the proto descriptor when building the request, and Bun doesn't typecheck at runtime), but it's exactly the kind of stale reference the completeness sweep is meant to catch, and it will only get worse if dev-proxy.ts is ever migrated to a checked build.

  • New end-to-end test doesn't assert on reverse_name (packages/core/src/services/node_service/mod.rs:6784-6853, person_task_assignee_relationship_assigns_and_clears_end_to_end). get_node_relationships's inbound RelationshipGroup carries the forward relationship_name ("tasks") AND a separate reverse_name field ("assignee") — see packages/core/src/ops/rel_ops.rs:427-455, 601-614. The new test only asserts relationship_name == "tasks" on both sides; it never checks in_group.reverse_name == "assignee", despite the test's own doc-comment claiming "the reverse_name 'assignee' surfaces via the inbound side." I verified this is a real gap by locally mutating reverse_name: "assignee" → reverse_name: "assignee_wrong" in core_schemas.rs and re-running the test — it still passes. The separate schema-declaration unit test (test_person_declares_tasks_assignee_relationship) does check rel.reverse_name == "assignee", so the declaration is covered, but the end-to-end test (the one meant to prove "assignee" as a concept actually surfaces through the runtime relationship-query path, not just the static schema) does not. Recommend adding assert_eq!(in_group.reverse_name, "assignee") to the existing inbound-group assertion block — a one-line addition, not a redesign.

🟢 Suggestions / Nits

  • Nit: packages/proto/proto/node_service.proto:739-743 — field 6 was deleted outright rather than marked reserved 6;. Given this is pre-release with no cross-build wire compatibility concern, this is acceptable per the issue's own guidance, but reserved 6; is marginally better protobuf hygiene going forward (prevents an unrelated future field from accidentally reusing number 6 against stale generated code in a partially-rebuilt workspace). Optional.

  • Nit: packages/core/src/db/schema.sql:42 comment now reads "Holds BOTH instance-level edges (person→task tasks/assignee, has_child, …)" — slightly awkward phrasing ("tasks/assignee" reads like two separate relationship names rather than one relationship with a forward/reverse name pair) but accurate and not worth blocking on.

  • Nit: Query/filter coherence (query_service) resolves an assignee property filter for task to an always-NULL json_extract path rather than an explicit rejection — silently-empty rather than a clear error if some future caller (agent tool, saved query) still references property: "assignee" on a task query. Not a defect introduced by this PR (the resolver was always this generic), and nothing in this PR's scope actually builds such a query, but worth keeping in mind if/when a "did you mean the person relationship?" hint is ever wanted.

Verification performed

  • cargo build --workspace --lib --bins — clean, exit 0 (full Rust workspace, including daemon, desktop-app/src-tauri, agent, cli)
  • cargo test --lib (packages/core) targeted at the four schema/relationship tests — all pass, including the new e2e test
  • Mutation check: manually broke reverse_name in core_schemas.rs, reran the new e2e test — it still passed, confirming Finding 🟡 above; reverted cleanly (git diff empty afterward)
  • bun run test (desktop-app) scoped to the ~10 touched test files (task-schema-form, kanban-consecutive-status-moves, adapter-core, shared-node-store*, task-node) — 343/343 tests pass
  • tsc --noEmit spot-check on packages/dev-tools/src/dev-proxy.ts — confirmed the TS2339 error on patch.assignee independent of unrelated config-only errors in that same ad hoc invocation
  • grep -rn "assignee" packages/ -i completeness sweep — every hit triaged individually (see Requirements Check row 6 and Findings above for the two real gaps; all other hits are legitimate: unrelated "ticket"/generic fixtures in packages/agent, packages/core/src/schema/schema_test.rs, packages/core/tests/query_service_test.rs, and pre-existing unrelated UI copy in identity-card.svelte/onboarding-wizard.svelte confirmed via git diff to have zero changes in this PR)
  • Confirmed person's tasks relationship block (core_schemas.rs:1361-1369) is a structurally exact mirror of project's pre-existing tasks block (core_schemas.rs:379-389): same SchemaRelationship variant usage, RelationshipDirection::Out, RelationshipCardinality::Many/One, differing only in reverse_name and description text

Recommendation

REQUEST CHANGES

The core mechanism is sound and this is a net improvement over the pre-existing free-text field. But the 🔴 finding (stale agent guidance in skill_pipeline.rs that now actively misleads the agent about a real, user-facing capability) is a genuine functional regression this PR introduces and should be fixed before merge — it's a one-line change. I'd also ask for the dev-proxy.ts cleanup and the reverse_name test assertion in the same pass, since both are small, well-understood, and directly related to this PR's own scope (not scope creep).

@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: REQUEST CHANGES (posted as a comment — GitHub blocks self-approval). Full findings in the review comment above.

- Drop assignee from the "Graph Editing Guidance" skill's field_values
  example list (packages/agent/src/skill_pipeline.rs) — this live
  agent-facing prompt text told the LLM assignee was still a valid typed
  task field, which is now false and would mislead tool calls. Synced the
  two golden fixtures that pin this exact prompt string.
- Remove the stale assignee field from dev-proxy.ts's TaskNodeUpdatePatch
  request body — TaskNodeUpdatePatch no longer has this field, so it was a
  genuine (if currently silent) TypeScript error.
- Add a reverse_name == "assignee" assertion to the new
  person_task_assignee_relationship_assigns_and_clears_end_to_end test —
  the prior version never checked the one field that actually encodes
  "assignee" as a concept at runtime (verified by mutation: renaming
  reverse_name previously left the test green).

Skipped as optional per the review's own framing (nits, not required):
proto `reserved 6;` instead of deleting the field number outright, and
schema.sql comment rewording — neither affects behavior or correctness.

Addresses reviewer recommendations from PR #2507.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015kTvytaXv3TSDkTFuCg4WQ
@malibio

malibio commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator Author

Addressed review feedback

🔴 Critical — fixed:

  • packages/agent/src/skill_pipeline.rs:180 — dropped assignee from the "Graph Editing Guidance" skill's live agent-facing field_values example list (was actively misleading now that the field doesn't exist). Synced the two golden fixtures (ablation/production-baseline.toml, ablation/minimal-at-fidelity.toml) that pin this exact prompt string — prompt_assembly_snapshot tests confirm the sync.

🟡 Important — fixed:

  • packages/dev-tools/src/dev-proxy.ts — removed the stale assignee field from the TaskNodeUpdatePatch-adjacent request body/type annotation (was a genuine TS2339, confirmed gone).
  • Added assert_eq!(in_group.reverse_name, "assignee", ...) to person_task_assignee_relationship_assigns_and_clears_end_to_end. Verified by mutation testing: reverted reverse_name to a wrong value locally, confirmed the strengthened test now fails; restored and confirmed it passes again.

🟢 Nits — skipped (optional per the review's own framing):

  • reserved 6; on the removed proto field — pre-release, no wire-compat concern, marginal hygiene benefit only.
  • db/schema.sql comment rewording — accurate as written, purely stylistic.
  • Query resolver's silent-null behavior for a stray assignee property filter — pre-existing generic resolver behavior, not introduced by this PR, no query in this PR's scope exercises it.

Also checked and confirmed out of scope: several packages/agent/goldens/*.toml files contain unrelated assignee mentions in frozen fixture text with no corresponding source generator (grep across packages/agent/src/ finds none) — these predate this change and are unaffected by it either way.

bun run test:all and bun run quality:fix both clean after these fixes (pushed in a31775dd).

@malibio

malibio commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator Author

Pragmatic Code Review — PR #2507 (closes #2112)

Review Type: Re-Review
Scope: Verify follow-up commit a31775dd ("Address review: fix stale assignee refs and strengthen assignee e2e test") against the three real findings from the initial review, and check for anything new it might have introduced.

Summary

All three real findings from the initial review are fixed correctly, and I independently verified each rather than trusting the commit message. Tests pass across the board, quality:fix is clean, and I found no new issues introduced by the follow-up. This is ready to merge from a technical standpoint.

Verification of the 3 real findings

🔴 Critical — skill_pipeline.rs stale assignee in agent guidance — FIXED, verified

packages/agent/src/skill_pipeline.rs:180 now reads "...typed fields (status, due_date, etc.)." — assignee removed. The two golden fixtures that pin this exact prompt string byte-for-byte (packages/agent/goldens/ablation/minimal-at-fidelity.toml, packages/agent/goldens/ablation/production-baseline.toml) were synced in the same commit — confirmed via git show a31775dd diff, both occurrences in each file updated identically.

Ran cargo test -p nodespace-agent --test prompt_assembly_snapshot: 5/5 passed (resident_workspace_context_matches_golden, stage1_request_matches_golden, stage2_candidate_block_matches_golden, resident_system_prompt_matches_golden, stage2_tool_surface_matches_golden). Also confirmed via grep that no other golden file contains the "CONTENT vs FIELD VALUES" line — only these two, both correctly updated — so there's no missed sibling fixture.

🟡 Important — dev-proxy.ts stale assignee field — FIXED, verified, no latent references

The assignee?: string | null type annotation and the assignee: patch.assignee ?? null request-body line are both removed (git show a31775dd -- packages/dev-tools/src/dev-proxy.ts). I additionally spot-checked for any latent reference the fix might have missed:

  • grep -n "assignee" packages/dev-tools/src/dev-proxy.ts → zero hits.
  • Full-package sweep (grep -rn "assignee" packages/dev-tools/) → zero hits anywhere in the package.
  • Response-mapping path: the handler returns json(nodeDataToApiNode(res.nodeData)) — a generic mapper, not a hardcoded field list, so there's no separate response-side assignee key to worry about.

🟡 Important — e2e test never asserted reverse_name — FIXED, mutation-verified independently

packages/core/src/services/node_service/mod.rs now asserts assert_eq!(in_group.reverse_name, "assignee", ...) in person_task_assignee_relationship_assigns_and_clears_end_to_end.

I did not just trust the commit's mutation-testing claim — I reproduced it myself:

  1. Ran the test as-is: cargo test -p nodespace-core --lib -- person_task_assignee_relationship_assigns_and_clears_end_to_end → passed.
  2. Edited packages/core/src/models/core_schemas.rs:1366 to reverse_name: "assignee_wrong_mutation_test".to_string().
  3. Re-ran the same test → failed, with exactly the new assertion's panic message: left: "assignee_wrong_mutation_test", right: "assignee".
  4. Reverted the edit, confirmed git status --short was clean, re-ran the test → passed again.

This closes the gap the initial review identified. The test now genuinely encodes "assignee" as a concept at the runtime relationship-query layer, not just in the static schema declaration.

Independent check of the "goldens are out of scope" claim

The follow-up commit's PR description separately claims several unrelated packages/agent/goldens/*.toml files (containing frozen text like a ticket schema's assignee: text field) are pre-existing stale/orphaned snapshots with no current source generating them, and left them untouched. I did not accept this at face value:

  • grep -rn "Purpose: Change a field" packages/agent/src/ → zero hits; the phrase only exists in golden fixture files, not in current prompt-generating source.
  • Inspected the actual content of every remaining assignee-containing golden (e.g. dev-indirect-reference.toml): all hits are inside a fictional ticket "Ticket" -> ... assignee: text; sprint: text schema fixture used as test scenario data — unrelated to the real task/person schemas this PR touches.
  • These are frozen conversational fixtures (schema declarations embedded in test prompts), not text generated by the graph_editing_guidance() function that was actually fixed.

The claim holds up. These are out of scope for this PR.

Confirming the skipped nits are still just nits

All three nits from the initial review (proto reserved 6; instead of outright deletion, schema.sql comment phrasing, and the query resolver's silent-null behavior for a stray assignee filter) remain untouched, as declared. Checked each:

  • packages/proto/proto/node_service.proto — field 6 remains deleted outright (no reserved). Purely a style/hygiene preference in a pre-release, no-compat-guarantee codebase; doesn't interact with anything the follow-up commit changed.
  • packages/core/src/db/schema.sql:42 — comment phrasing unchanged, still accurate.
  • Query resolver silent-null behavior — pre-existing generic behavior, not touched by either commit.

None of these became more important as a result of the fix; skipping them leaves nothing broken.

New-issue check on the follow-up commit itself

  • Golden fixture edits are textually identical across both touched files (verified via sort -u on the two occurrences in each file) — no drift/typo between the ablation goldens.
  • The new assertion's message text is accurate and doesn't contain a copy-paste error.
  • git diff after the mutation-and-revert cycle was empty — no accidental leftover edits.
  • No new dependencies, no new lint suppressions, no scope creep beyond the three targeted fixes.

Test suite results (this session, independently run)

  • cargo test -p nodespace-agent --test prompt_assembly_snapshot — 5/5 passed
  • cargo test -p nodespace-core --lib -- person_task_assignee_relationship — 1/1 passed
  • Mutation check on reverse_name (manual, described above) — confirmed catches the regression, then confirmed clean revert
  • cargo test -p nodespace-agent --lib — 613 passed, 0 failed, 1 ignored
  • cargo test -p nodespace-core --lib — 1273 passed, 0 failed
  • bun run quality:fix — clean: 0 ESLint errors/warnings across 2504 files, svelte-check clean, tsc --noEmit clean, cargo fmt --all + cargo clippy --all-targets -- -D warnings -D clippy::unused-async clean across the whole workspace
  • Spot-check tsc pass over dev-proxy.ts — no assignee-related type error remains

Recommendation

APPROVE

All three real findings from the initial review are correctly and completely addressed, verified independently (not taken on the commit message's word) including reproducing the mutation test myself. No new issues were introduced by the follow-up commit. The three explicitly-skipped nits remain genuinely optional and don't interact with anything this fix touched. This PR is ready to merge pending the user's own final call.

Note: per repository policy, self-approval is rejected on this PR since it is self-authored — recording the verdict here in the review body as the fallback, consistent with the initial review.

🤖 Generated with Claude Code

https://claude.ai/code/session_015kTvytaXv3TSDkTFuCg4WQ

@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.

Re-Review verdict: APPROVE (self-approval blocked by repo policy on this self-authored PR — recorded here as fallback per the same protocol the initial review used). See full re-review report in PR comment: #2507 (comment)

…ssignee-relationship

# Conflicts:
#	packages/core/src/models/core_schemas.rs
@malibio

malibio commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator Author

Merged main (#2508 / #2111 landed)

#2111 (person schema: split `name` into `first_name`/`last_name`, plus a `title_template`) merged to `main` while this PR was in review. Merged `origin/main` in — one real conflict in `core_schemas.rs`'s person `SchemaNode` block, since both PRs touched adjacent fields on the same struct literal (#2111: `fields`/`title_template`; this PR: `relationships`). Resolved by keeping both additions:

```rust
fields: vec![ /* first_name, last_name, email, _possible_duplicate — #2111 */ ],
relationships: vec![SchemaRelationship {
name: "tasks", target_type: Some("task"),
direction: Out, cardinality: Many,
reverse_name: "assignee", reverse_cardinality: One,
...
}], // this PR
title_template: Some("{first_name} {last_name}".to_string()), // #2111


No logic from either PR changed — purely additive reconciliation. Re-ran the full suite post-merge to confirm:
- `bun run test:all` — clean (239 frontend test files / 4929 tests, all Rust packages)
- `cargo test -p nodespace-core --lib -- core_schemas person_task_assignee` — all pass, including `test_person_declares_tasks_assignee_relationship` and the assignee e2e test, alongside #2111's own person-schema tests
- `bun run quality:fix` — clean
- `gh pr view` confirms `mergeStateStatus: CLEAN` against current `main`

Not requesting a fresh full re-review for this merge commit alone (no reviewed logic changed, purely a conflict reconciliation + green test re-run), but flagging it here for visibility since the two PRs are related per the original issue's "land together or land #2111 first" note.

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.

Task assignee becomes a typed person relationship, replacing the free-text field

1 participant