[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7B4GEG08JJZCVQ3BCYBASZG":3,"skill-same:01M7B4GEG08JJZCVQ3BCYBASZG":47},{"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":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7B4GEG08JJZCVQ3BCYBASZG","fix-nocturne-seed-invariants",null,"Use when Nocturne domain tests fail due to seed data timeline violations (e.g., escalation timestamp after acknowledgment) or to validate that nc_seed_* constants satisfy engine preconditions before running the suite.","kanishka-namdeo\u002FUnown","kanishka-namdeo","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F19627131?v=4","01M7B4FN34HAKFWBECFBFK4HDA","Kanishka","01M7B4FN3YHMNJA874FRT3Q4YE",0,"MIT","https:\u002F\u002Fgithub.com\u002Fkanishka-namdeo\u002FUnown\u002Fblob\u002Fmain\u002F.unown\u002Fskills\u002Ffix-nocturne-seed-invariants\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: fix-nocturne-seed-invariants\ndescription: Use when Nocturne domain tests fail due to seed data timeline violations (e.g., escalation timestamp after acknowledgment) or to validate that nc_seed_* constants satisfy engine preconditions before running the suite.\n\n---\n\n# Fix Nocturne Seed Invariants\n\nNocturne test failures often stem from seed data (`nc_seed_*` constants) violating temporal invariants enforced by the escalation engine.\n\n1. **Identify the failing test**: Run `bunx biome check --write` and the specific test suite to isolate the assertion error.\n2. **Inspect the invariant**: Check `src\u002Flib\u002Fnocturne\u002Fescalation.ts`. The guard `if (!incident.acknowledgedAt)` means escalation timers only fire for unacked\u002Fsnoozed incidents.\n3. **Verify seed timestamps**: Open the seed file and compare `lastEscalatedAt` against `acknowledgedAt` for every `NocturneIncident`.\n   - Rule: `lastEscalatedAt` must be **strictly before** `acknowledgedAt`.\n   - If `lastEscalatedAt` is null, it is treated as `triggeredAt`, which is also acceptable but must precede any later events.\n4. **Reorder the seed**: Edit the seed constant so the escalation event (`lastEscalatedAt`) fires before the acknowledgment event (`acknowledgedAt`). Do not modify the engine logic to accept invalid seeds.\n5. **Validate tier consistency**: If the test uses multi-tier policies, ensure the number of ticks in the test matches `N-1` for an `N`-tier policy, where each tick waits the current tier's `waitMinutes`.\n6. **Run the full suite**: Execute `bun test src\u002Flib\u002Fnocturne` to confirm all 360+ tests pass.\n7. **Typecheck**: Run `bunx tsc --noEmit` in `src\u002F` to ensure no type regressions.\n","# Fix Nocturne Seed Invariants\n\nNocturne test failures often stem from seed data (`nc_seed_*` constants) violating temporal invariants enforced by the escalation engine.\n\n1. **Identify the failing test**: Run `bunx biome check --write` and the specific test suite to isolate the assertion error.\n2. **Inspect the invariant**: Check `src\u002Flib\u002Fnocturne\u002Fescalation.ts`. The guard `if (!incident.acknowledgedAt)` means escalation timers only fire for unacked\u002Fsnoozed incidents.\n3. **Verify seed timestamps**: Open the seed file and compare `lastEscalatedAt` against `acknowledgedAt` for every `NocturneIncident`.\n   - Rule: `lastEscalatedAt` must be **strictly before** `acknowledgedAt`.\n   - If `lastEscalatedAt` is null, it is treated as `triggeredAt`, which is also acceptable but must precede any later events.\n4. **Reorder the seed**: Edit the seed constant so the escalation event (`lastEscalatedAt`) fires before the acknowledgment event (`acknowledgedAt`). Do not modify the engine logic to accept invalid seeds.\n5. **Validate tier consistency**: If the test uses multi-tier policies, ensure the number of ticks in the test matches `N-1` for an `N`-tier policy, where each tick waits the current tier's `waitMinutes`.\n6. **Run the full suite**: Execute `bun test src\u002Flib\u002Fnocturne` to confirm all 360+ tests pass.\n7. **Typecheck**: Run `bunx tsc --noEmit` in `src\u002F` to ensure no type regressions.\n",{"name":5,"description":7},"main","0d1a8cf02c487497a9442ff7f70182900e67d1e4",".unown\u002Fskills\u002Ffix-nocturne-seed-invariants","https:\u002F\u002Fgithub.com\u002Fkanishka-namdeo\u002FUnown","https:\u002F\u002Funown-nine.vercel.app","https:\u002F\u002Fgithub.com\u002Fkanishka-namdeo","https:\u002F\u002Fkanishkanamdeo.com\u002F","Builder. Tinkerer.","2026-11-15 05:57:17",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add kanishka-namdeo\u002FUnown --skill fix-nocturne-seed-invariants",{"tool":39,"command":40},"bunx","bunx skills add kanishka-namdeo\u002FUnown --skill fix-nocturne-seed-invariants",{"tool":42,"command":43},"pnpm","pnpm dlx skills add kanishka-namdeo\u002FUnown --skill fix-nocturne-seed-invariants","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fkanishka-namdeo\u002FUnown\u002Fblob\u002Fmain\u002F.unown\u002Fskills\u002Ffix-nocturne-seed-invariants\u002FSKILL.md",true,[],[48,55,62,69,76,82],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M7B4JXRXGJ4ZARGJZC4CQJK1","valid-skill","A valid skill for testing purposes.","https:\u002F\u002Fgithub.com\u002Fkanishka-namdeo\u002FUnown\u002Fblob\u002Fmain\u002Fpi-repo\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Fvalid-skill\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M7B4JW0TE7XQJ524QSB4M0HH","unknown-field","A skill with an unknown frontmatter field.","https:\u002F\u002Fgithub.com\u002Fkanishka-namdeo\u002FUnown\u002Fblob\u002Fmain\u002Fpi-repo\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Funknown-field\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7B4JTG0HNX6CC9EDP27ZNVA","nested-child","Nested skill should be ignored.","https:\u002F\u002Fgithub.com\u002Fkanishka-namdeo\u002FUnown\u002Fblob\u002Fmain\u002Fpi-repo\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Froot-skill-preferred\u002Fnested-child\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7B4JS0TFDFMT9J33230194S","root-skill-preferred","Root skill should win.","https:\u002F\u002Fgithub.com\u002Fkanishka-namdeo\u002FUnown\u002Fblob\u002Fmain\u002Fpi-repo\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Froot-skill-preferred\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"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":79,"categories":80,"keywords":81,"publishedAt":19},"01M7B4JQPZBFT59KT2GWKF61VM","no-frontmatter","https:\u002F\u002Fgithub.com\u002Fkanishka-namdeo\u002FUnown\u002Fblob\u002Fmain\u002Fpi-repo\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Fno-frontmatter\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7B4JP4E475NGN7T87JD7TT9","child-skill","A nested skill in a subdirectory.","https:\u002F\u002Fgithub.com\u002Fkanishka-namdeo\u002FUnown\u002Fblob\u002Fmain\u002Fpi-repo\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Fnested\u002Fchild-skill\u002FSKILL.md",[],[]]