Wave 2 implementation report: initial STCKin support in Miadi
Outcome
Initial @stckin capability now exists in /src/Miadi as part of the same STC bot family as @stcgoal, @stcissue, and @stcmastery.
It is wired through:
- webhook mention detection,
- a dedicated
.github-hooks/stckinentrypoint, - the shared
.github-hooks/stchandler, - workspace/file support for
STCKIN.md, - local simulator and fixture files.
Changed files
Hooking and routing
/src/Miadi/.github-hooks/stckin/src/Miadi/.github-hooks/stc/src/Miadi/scripts/mino-bimaadizi-daa-stc.sh/src/Miadi/lib/stc-bot-detector.ts
STC file + API support
/src/Miadi/lib/stc/workspace-resolver.ts/src/Miadi/lib/stc/file-parser.ts/src/Miadi/lib/stc/chart-manager.ts/src/Miadi/app/api/stc/store-mention/route.ts/src/Miadi/app/api/stc/mentions/route.ts/src/Miadi/app/api/stc/stats/route.ts/src/Miadi/app/api/stc/workspaces/route.ts/src/Miadi/app/api/stc/files/[...path]/route.ts/src/Miadi/app/stc-config/page.tsx
Docs and simulator
/src/Miadi/.github-hooks/README.md/src/Miadi/rispecs/skills/mcp/06-stc.spec.md/src/Miadi/.github-hooks/tests/fixtures/stckin-mention.json/src/Miadi/scripts/test-stckin-hook.sh
Artefact updates
issue-proposal.mdwave2-implementation-report.md
Rationale
The implementation follows the existing Miadi STC pattern rather than creating a parallel kinship subsystem:
@stckinis detected by the same webhook detector as the other STC bots.- It delegates through the same recursive-safe Mino pathway and then into the shared STC handler.
- It gets a bot-specific markdown surface,
STCKIN.md, analogous toSTCGOAL.md,STCISSUE.md, andSTCMASTERY.md. - The initial semantics place
@stckinin the WEST / integration-reflection position, which was the open fourth direction in the current STC bot family.
Validation notes
-
Local dry-run succeeded with:
cd /src/Miadi ./scripts/test-stckin-hook.sh -
The dry-run showed the new hook path, Mino handoff, shared STC processing, mention storage, and narrative beat creation all executing.
-
npm run type-checkstill reports pre-existing repo issues outside the touched STCKin surfaces. -
npm run lintis not currently actionable here because the repo does not expose a working ESLint config in this environment.
Important current reality
- The mapped workspace for
jgwill/Miadiresolves to/src/Miadi, butworkspace.stcFiles.autoCreateis currentlyfalse, so the shared handler does not auto-createSTCKIN.mdduring the dry-run. - The local dry-run also surfaces an existing writer-auth problem for the memory API (
Invalid or missing writer authentication token), but it does not block the rest of the STCKin flow.
Follow-ups
- Decide whether
jgwill/Miadishould allowSTCKIN.mdauto-creation or whether kinship files should be created only by explicit user action. - Consider extending broader end-user docs (
app/docs/...) so@stckinis visible alongside the other STC bots in the educational surfaces. - If remote GitHub auth is restored, create the deferred child issue and link this wave's local implementation notes back to it.