mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1163] [MERGED] Fix Professor Mari action contract #4946
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#4946
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1163
Author: @cha1latte
Created: 5/24/2026
Status: ✅ Merged
Merged: 5/24/2026
Merged by: @cha1latte
Base:
refactor← Head:fix/refactor-issue-36📝 Commits (1)
c0ce7cbFix Professor Mari action contract📊 Changes
3 files changed (+112 additions, -4 deletions)
View changed files
📝
src-tauri/src/commands/storage/mari.rs(+9 -0)📝
src/engine/mari/mari-entry.ts(+101 -2)📝
src/shared/api/mari-api.ts(+2 -2)📄 Description
What?
Adds an explicit Professor Mari action contract on the refactor branch. The response from
professor_mari_promptnow includes anactionfield, and the TypeScriptrunProfessorMariEntryboundary normalizes that field before the shell UI consumes the response.Why?
Refs the old refactor issue: https://github.com/Pasta-Devs/Marinara-Engine-Refactor/issues/36
The previous path was implicitly read-only but only returned
contentandcreatedAt, so the UI boundary could not tell whether record create/edit support was intentionally absent or just missing from the response contract.How?
MariEntryActionas a discriminated contract with a currentread_onlyno-op action and guarded futurecreate_record/edit_recordshapes.actionvalues fall back to the read-only contract.actionfield for Professor Mari with the same read-only reason.Testing?
Machine/Codex verification:
node scratch\issue-36-contract-proof.mjs beforereproduced the missing contract before the fix.node scratch\issue-36-contract-proof.mjs afterpassed after the fix and confirmed:action.$env:CARGO_TARGET_DIR='C:\tmp\me-refactor-issue-36-cargo-target'; pnpm checkpassed:pnpm check:architecturepnpm check:frontendpnpm check:rustpnpm check:docsnode C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch\bugfix-verification.jsonpassed.Manual verification needed:
Screenshots
N/A. This is a non-UI contract fix.
Anything Else?
The first direct
cargo checkagainstsrc-tauri\targethit Windows access-denied errors from stale/locked build output. Rerunning with a freshCARGO_TARGET_DIRcompleted successfully, and the fullpnpm checkbaseline passed with that target dir.Summary by CodeRabbit
New Features
Improvements
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.