Skip to content

Instantly share code, notes, and snippets.

View hardchor's full-sized avatar
:shipit:
SHIP IT!

Burkhard Reffeling hardchor

:shipit:
SHIP IT!
View GitHub Profile
@hardchor
hardchor / package.json
Created November 9, 2026 23:39
Reproduce concurrent Factory board-version table creation on PostgreSQL
{"private":true,"type":"module","packageManager":"pnpm@10.32.1","dependencies":{"@mastra/core":"1.82.0","@mastra/factory":"0.27.0","@mastra/pg":"1.35.0","pg":"8.16.3"}}
@hardchor
hardchor / README.md
Created October 30, 2026 23:10
Mastra Factory: a tool-result rule with reenter: true never runs the stage's onEnter (@mastra/factory 0.25.0)

Reproduction: tool-result re-entry does not run onEnter

repro.mjs defines a custom board with defineBoard. A tool rule returns { type: 'transition', stage: <current stage>, reenter: true }. The script then ingests one completed tool call with FactoryPhaseStateProcessor.reconcileBinding. The expected result is one onEnter call and one queued invokeSkill decision.

What is real and what is a stand-in

  • Real shipped code: defineBoard and createBoardRegistry from
@hardchor
hardchor / README.md
Created October 3, 2026 08:49
@mastra/factory: concurrent work-item write makes commitRuleEvaluation drop a webhook's decisions (stale)

@mastra/factory: stale rule evaluation drops decisions

Minimal reproduction: a write to the work item between the rule's read and commitRuleEvaluation stores the ingress as rejected/stale with no decisions under the delivery identity. A redelivery replays that empty result.

npm install
node repro.mjs

Expected output on 0.19.1:

@hardchor
hardchor / README.md
Last active January 10, 2026 22:35
Claude Task Master MCP in Github Copilot (VS Code)

Getting started with Claude Task Master in VS Code with Github Copilot:

  1. Follow the tutorial
    • I'm using pnpm / pnpx instead of npm / npx
    • Use the CLI for init, not the MCP yet
  2. After the initial setup:
    1. Copy all *.instructions.md files to .github/instructions/
    2. Copy the mcp.json file to .vscode/
  3. Launch Copilot Chat with something like Can you analyze the complexity of our tasks? or What tasks are available to work on next?