Repository navigation
Mirror #2383's relationship worked examples into skill_rules' imperative form - #2628
Conversation
…les' imperative form (#2467) RELATIONSHIP_VS_FIELD's imperative field (read by the in-app local agent via seed_skill_nodes()) still carried only the terse original rule after #2383/#2466 added worked examples and a false-friends list to cli.md's prose form for external PTY agents. The in-app agent got none of that benefit and would still default fields like deciders/assignee to text. Port the same worked-examples + false-friends content into the imperative field, mirroring how GROUPING_IS_COLLECTIONS already keeps both forms in sync. Regenerate the affected prompt-assembly golden (stage2_candidate_block) to match. Co-Authored-By: Claude Sonnet 5 <[email protected]>
Code Review SummaryNet positive, low-risk, correctly-scoped fast-follow. This is a pure content change (+2/-2 across two files: FindingsCritical IssuesNone. Suggested ImprovementsNone blocking. One thing worth a follow-up sentence, not a fix: the new imperative text ends "...check whether the target type already exists in EXISTING SCHEMAS" without stating what to do if it doesn't — but the very next sentence ( Nitpicks
Verification performed
VerdictAPPROVE |
mstomar125
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.
Address-Review SummaryFindings from the first review: APPROVE, zero Critical/Improvement findings, one Nit (minor restatement at the Decision: Skipping the Nit. It's a cosmetic restatement, not a correctness or clarity problem the reviewer flagged as needing a fix — addressing it would mean reflowing wording across two independently-owned rule constants for no behavior change, which is scope creep against this issue's "keep the diff minimal and focused" instruction. Changes made: none — no code changes needed. Re-Review DecisionDecision: RE-REVIEW NEEDED (independent second pass) Rationale: This repo's merge policy requires a genuine second review round for |
Second/independent re-review pass (fresh eyes, per merge policy for
|
mstomar125
left a comment
There was a problem hiding this comment.
Automated second/independent pragmatic-code-review pass (posted as a comment — GitHub blocks self-approval): APPROVE. This is a genuine independent re-review, not a rubber-stamp of the first pass — reread the full diff, the whole of skill_rules.rs, schema_creation_guidance()'s template, cli.md's relationship section, and gen_skill_md.rs's codegen path, and reran cargo test -p nodespace-agent (full package, 629 passed) + --test prompt_assembly_snapshot + cargo test -p nodespace-cli --test skill_md_generation myself rather than trusting the PR body. Verdict and full findings in the review comment above. Agree with the first pass's conclusion; found one thing worth tracing further (why .prose/.imperative divergence here isn't drift — traced through gen_skill_md.rs's generated-region split) but nothing that changes the verdict.
Summary
RELATIONSHIP_VS_FIELD'simperativefield inpackages/agent/src/skill_rules.rs(read by the in-app local agent viaseed_skill_nodes()) still carried only the original terse rule after Skill guidance: teach relationships, collections, and document decomposition — agents invent flat fields for what the graph models natively #2383/Skill guidance: teach relationship recognition and document decomposition #2466 added worked examples and a false-friends list tocli.md'sproseform for external PTY agents. The in-app agent got none of that benefit and would still likely default fields likedeciders/assigneeto text.imperative, mirroring howGROUPING_IS_COLLECTIONSalready keeps both forms in sync.stage2_candidate_block.golden) to match the new imperative text.Closes #2467.
Test plan
cargo test -p nodespace-agent --test prompt_assembly_snapshot— 5/5 passedcargo test -p nodespace-agent(full package) — all passed (only pre-existing#[ignore]d live-model tests skipped)cargo test -p nodespace-cli --test skill_md_generation— 11/11 passed (confirmscli.md's already-fixedproseform stays untouched/in sync)cargo fmt --all --check/cargo clippy -p nodespace-agent --all-targets -- -D warnings -D clippy::unused-async— cleanscripts/test-gate.ts: build:skill, quality:scripts:check, test:all [frontend+skill+rust],cargo build --bin nodespaced, test:e2e,cargo test -p nodespace-app --test "*") — green🤖 Generated with Claude Code