[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79M7R7SQREDFP7XS5VQ0A45":3,"skill-same:01M79M7R7SQREDFP7XS5VQ0A45":52},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M79M7R7SQREDFP7XS5VQ0A45","relationship-semantics-change",null,"Use when changing relationship edge creation, traversal, labels, inverse derivation, household inference, or relationship queries.","DrewBrunning\u002Fmycorrhizal-crm","DrewBrunning","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6752526?v=4","01M79M5Q84HEMNMKVCSH7RXV78","Drew Brunning","01M79M5Q90WKHZRQC3MEBRYB4Y",4,"MIT","https:\u002F\u002Fgithub.com\u002FDrewBrunning\u002Fmycorrhizal-crm\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Frelationship-semantics-change\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: relationship-semantics-change\ndescription: Use when changing relationship edge creation, traversal, labels, inverse derivation, household inference, or relationship queries.\nlicense: MIT\n---\n\n# Relationship semantics change\n\nOutcome: a relationship change that preserves one stored direction, a derived\ninverse, and the confirmed-only rule everywhere an edge is read. Read\n`backend\u002FAGENTS.md` (Domain notes), `docs\u002Fadrs\u002F0001-neutral-hub-and-spoke-contact-model.md`\nand the [semantics reference](references\u002Fsemantics.md) before editing.\n\n## Steps\n\n1. Decide what is stored: one edge direction from source to target. The inverse\n   is derived from `backend\u002Fmodels\u002Frelationship_type_registry.go`, never stored\n   twice.\n2. Add or change the registry entry, not a second token list. The registry drives\n   validation, inverse derivation and the vCard RELATED projection.\n3. Keep `status: confirmed` as the only fact. `suggested` edges are review\n   material and are never projected, graphed or treated as real.\n4. Household inference reads current memberships only; it is an inference, not a\n   stored relationship. Check the household paths you touched.\n5. If traversal or projection changes, update the graph ceilings in\n   `frontend\u002Fsrc\u002Futils\u002FgraphBudget.ts` and its test in\n   `frontend\u002Fsrc\u002Futils\u002FgraphBudget.test.ts`.\n6. If deletion reaches edges, register the cascade in\n   `backend\u002Fservices\u002Fcontact_delete.go` (ADR 0035) and assert it with\n   `Unscoped()` where hard-deleted rows must be distinguished.\n7. Cover the new access path's ownership boundary; `backend\u002Froutes\u002Fauthorization_matrix_test.go`\n   is the live-router cross-route tripwire (`ownership_matrix_test.go` covers body-carried IDs).\n\n## DoD\n\n```bash\ncd backend && go test .\u002Fmodels\u002F... .\u002Fservices\u002F... .\u002Fcontrollers\u002F...\ncd frontend && npx vitest run src\u002Futils\u002FgraphBudget.test.ts\n```\n\nReport any check you could not run; never imply it passed.\n\n## Stop and ask\n\n- The change would store both directions or infer the inverse from a label.\n- An edge type has no RFC 6350 home and the proposal is to invent one.\n- A query would traverse `suggested` or above-`normal` sensitivity.\n- The change alters the health-score or household rules without an ADR update.\n\nCanonical detail: `docs\u002Fadrs\u002F0023-relationship-health-score.md`,\n`backend\u002Fmodels\u002Frelationship_type_registry.go`, `backend\u002Fservices\u002Fgraph_traversal.go`.\n","# Relationship semantics change\n\nOutcome: a relationship change that preserves one stored direction, a derived\ninverse, and the confirmed-only rule everywhere an edge is read. Read\n`backend\u002FAGENTS.md` (Domain notes), `docs\u002Fadrs\u002F0001-neutral-hub-and-spoke-contact-model.md`\nand the [semantics reference](references\u002Fsemantics.md) before editing.\n\n## Steps\n\n1. Decide what is stored: one edge direction from source to target. The inverse\n   is derived from `backend\u002Fmodels\u002Frelationship_type_registry.go`, never stored\n   twice.\n2. Add or change the registry entry, not a second token list. The registry drives\n   validation, inverse derivation and the vCard RELATED projection.\n3. Keep `status: confirmed` as the only fact. `suggested` edges are review\n   material and are never projected, graphed or treated as real.\n4. Household inference reads current memberships only; it is an inference, not a\n   stored relationship. Check the household paths you touched.\n5. If traversal or projection changes, update the graph ceilings in\n   `frontend\u002Fsrc\u002Futils\u002FgraphBudget.ts` and its test in\n   `frontend\u002Fsrc\u002Futils\u002FgraphBudget.test.ts`.\n6. If deletion reaches edges, register the cascade in\n   `backend\u002Fservices\u002Fcontact_delete.go` (ADR 0035) and assert it with\n   `Unscoped()` where hard-deleted rows must be distinguished.\n7. Cover the new access path's ownership boundary; `backend\u002Froutes\u002Fauthorization_matrix_test.go`\n   is the live-router cross-route tripwire (`ownership_matrix_test.go` covers body-carried IDs).\n\n## DoD\n\n```bash\ncd backend && go test .\u002Fmodels\u002F... .\u002Fservices\u002F... .\u002Fcontrollers\u002F...\ncd frontend && npx vitest run src\u002Futils\u002FgraphBudget.test.ts\n```\n\nReport any check you could not run; never imply it passed.\n\n## Stop and ask\n\n- The change would store both directions or infer the inverse from a label.\n- An edge type has no RFC 6350 home and the proposal is to invent one.\n- A query would traverse `suggested` or above-`normal` sensitivity.\n- The change alters the health-score or household rules without an ADR update.\n\nCanonical detail: `docs\u002Fadrs\u002F0023-relationship-health-score.md`,\n`backend\u002Fmodels\u002Frelationship_type_registry.go`, `backend\u002Fservices\u002Fgraph_traversal.go`.\n",{"name":5,"license":15,"description":7},"main","9536dc2059e7970271680a546c4beef69e191b1b",".agents\u002Fskills\u002Frelationship-semantics-change",2,"https:\u002F\u002Fgithub.com\u002FDrewBrunning\u002Fmycorrhizal-crm","https:\u002F\u002Fdrewbrunning.github.io\u002Fmycorrhizal-crm\u002F","https:\u002F\u002Fgithub.com\u002FDrewBrunning","2026-11-14 11:31:00",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add DrewBrunning\u002Fmycorrhizal-crm --skill relationship-semantics-change",{"tool":38,"command":39},"bunx","bunx skills add DrewBrunning\u002Fmycorrhizal-crm --skill relationship-semantics-change",{"tool":41,"command":42},"pnpm","pnpm dlx skills add DrewBrunning\u002Fmycorrhizal-crm --skill relationship-semantics-change","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FDrewBrunning\u002Fmycorrhizal-crm\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Frelationship-semantics-change\u002FSKILL.md",true,[46],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"references\u002Fsemantics.md","REFERENCE","参考文档",2556,"https:\u002F\u002Fgithub.com\u002FDrewBrunning\u002Fmycorrhizal-crm\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Frelationship-semantics-change\u002Freferences\u002Fsemantics.md",[53,60,67,74,81,87],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M79M8PCVKS3QREKY3QXJEBR9","valid","Use when exercising a well-formed skill fixture in the agent-context tests.","https:\u002F\u002Fgithub.com\u002FDrewBrunning\u002Fmycorrhizal-crm\u002Fblob\u002Fmain\u002Fbackend\u002Finternal\u002Fagentcontext\u002Ftestdata\u002Fskills\u002Fvalid\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M79M8KBDD3M00TXB79N8794H","unregistered-dod","Use when a fixture must carry a DoD command no Suite registers.","https:\u002F\u002Fgithub.com\u002FDrewBrunning\u002Fmycorrhizal-crm\u002Fblob\u002Fmain\u002Fbackend\u002Finternal\u002Fagentcontext\u002Ftestdata\u002Fskills\u002Funregistered-dod\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M79M8H040AE9HFB8P8J394G9","orphan-reference","Use when a fixture must exercise an unlinked reference file.","https:\u002F\u002Fgithub.com\u002FDrewBrunning\u002Fmycorrhizal-crm\u002Fblob\u002Fmain\u002Fbackend\u002Finternal\u002Fagentcontext\u002Ftestdata\u002Fskills\u002Forphan-reference\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M79M8FHJVP35DG9MAGFV6P2W","missing-reference","Use when a fixture must link to a reference file that does not exist.","https:\u002F\u002Fgithub.com\u002FDrewBrunning\u002Fmycorrhizal-crm\u002Fblob\u002Fmain\u002Fbackend\u002Finternal\u002Fagentcontext\u002Ftestdata\u002Fskills\u002Fmissing-reference\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M79M8D1PNZ7JA7N8MCGXQ5JH","missing-description","https:\u002F\u002Fgithub.com\u002FDrewBrunning\u002Fmycorrhizal-crm\u002Fblob\u002Fmain\u002Fbackend\u002Finternal\u002Fagentcontext\u002Ftestdata\u002Fskills\u002Fmissing-description\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M79M8AT8A2GD6CJPEJXW21C4","long-reference","Use when a fixture must exceed the reference line maximum.","https:\u002F\u002Fgithub.com\u002FDrewBrunning\u002Fmycorrhizal-crm\u002Fblob\u002Fmain\u002Fbackend\u002Finternal\u002Fagentcontext\u002Ftestdata\u002Fskills\u002Flong-reference\u002FSKILL.md",[],[]]