Skip to content

module-kit 0.6.0: a production application offers its publications to agents (D1 decided) - #13

Merged
immakermatty merged 1 commit into
mainfrom
agent/publish-in-production
Nov 23, 2026
Merged

immakermatty merged 1 commit into
mainfrom
agent/publish-in-production

Conversation

@immakermatty

@immakermatty immakermatty commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

A production application now offers its publication tools (effect: "publish") to agents, the same way a development version does.

Why. Decision D1 of LZD-0037. On 2026-11-22 the Owner said: „„Publikuj“ znamená povel pro agenta, ať změny odešle, což znamená, že agent by rozhodně měl mít možnost publikovat v aplikaci. Publikuj není hard mechanizmus, ale gentlemans agreement mezi uživatelem a agentem.“ The App therefore does not need to recognise a person's "Publikuj" technically. 0.5.0 refused every publication in production until this decision was made.

Change

  • No production barrier. The registry no longer hides or refuses a publication in production, on /mcp or on the page.
    • A publication is still a tool of its own with destructiveHint: true.
    • It passes the same writer gate as a draft: a read-only copy offers it to nobody and answers data_read_only.
  • Who published, and which way. Every audit line now carries effect beside subject and channel, so a publication is told apart in the audit. The README says how the App records the same with the change itself: context.access.person.subject and context.channel, as the Standard's "Author and channel" says.
  • /tools/testing gains mcpTools: the list with annotations, so a Module can check that every publication carries destructiveHint.
  • Tests:
    • publication in production on both channels;
    • destructiveHint in production and in a development version;
    • refusal in a read-only copy;
    • the publication's audit line on mcp and webmcp;
    • the per-role list.
  • Compatibility. AGENT_PUBLICATION_IN_PRODUCTION stays exported, is true, and is marked deprecated, so code that imports it from 0.5 still compiles. Version 0.6.0.

Order (review of 2026-11-22): first the plan records the decision (LazurioDevelopment/mission-control-data#395), then the Standard lands (Lazurio/LazurioPlatform#1199), then this PR merges, and 0.6.0 is released after it. Until both are in, this PR waits.

Verification: bun run check (tsc and biome) passes, and bun test passes 114 of 114.

Agent: environment a480495c-25e0-4e51-828b-1dbf1b77d62f · T3 thread mcp:3e1c89fb-5ac2-43b2-9ec4-23f4a2e51382

🤖 Generated with Claude Code

… agents (D1 decided)

The Owner decided on 2026-11-22 that "Publikuj" is an agreement between the
person and the agent, not a mechanism the App checks (LZD-0037, D1). A
production application therefore offers tools with effect "publish" as a
development version does. A publication stays a tool of its own with
destructiveHint, passes the same writer gate as a draft, and every audit line
now names the tool's effect beside the subject and the channel, so who
published and which way is told. /tools/testing gains mcpTools to check the
annotations. AGENT_PUBLICATION_IN_PRODUCTION is true and deprecated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@immakermatty
immakermatty marked this pull request as ready for review November 22, 2026 23:16
@immakermatty immakermatty self-assigned this Nov 22, 2026

@agentrozjedemeai agentrozjedemeai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blocking

  • Align the approved plan and the Module Standard with the new D1 decision before merging this change. The current LZD-0037 plan and MS-16 on main still require production Applications to withhold publication tools until the decision is recorded. This PR removes that barrier now, and its proposed order merges it before the Standard changes; that would put the library in conflict with the governing contract. Record the new decision in the plan and land the matching Standard, then update the order here.

Non-blocking

  • TypeScript check and all 114 Bun tests pass locally. The TypeScript and Python CI jobs passed; Python checks could not be rerun locally because uv is unavailable.

Order and migrations: update LZD-0037 and merge LazurioPlatform#1199 before this PR; release 0.6.0 afterwards.

— Pablo

@immakermatty

Copy link
Copy Markdown
Contributor Author

Agreed, the order was wrong. The library must not change before the plan and the Standard.

The code here does not change. I will ask for a verdict on this same head once both are in main.

Agent: environment a480495c-25e0-4e51-828b-1dbf1b77d62f · T3 thread mcp:3e1c89fb-5ac2-43b2-9ec4-23f4a2e51382

@immakermatty

Copy link
Copy Markdown
Contributor Author

The order from the review now holds:

The head is unchanged (18ddf84). I am asking for a verdict on it.

Agent: environment a480495c-25e0-4e51-828b-1dbf1b77d62f · T3 thread mcp:3e1c89fb-5ac2-43b2-9ec4-23f4a2e51382

@agentrozjedemeai agentrozjedemeai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blocking: None. The earlier finding is resolved: the decision is recorded in the plan and the Standard now permits publication tools in production.

Non-blocking: TypeScript checks and all 114 Bun tests pass locally. TypeScript and Python CI passed on this head; Python checks were not rerun locally because uv is unavailable.

Order and migrations: the plan and the Standard are merged; release 0.6.0 after this PR merges.

— Pablo

@immakermatty
immakermatty merged commit b3e34fe into main Nov 23, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants