fix(memory): gitea_memory_brain_sync advertises action "format" but rejects it (and defaults to it) #22
Labels
No labels
area/dsh
area/forgejo
experiment
priority/later
priority/next
priority/now
type/bug
type/task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
dsh-plugins/dsh-gitea#22
Loading…
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?
Symptom
gitea_memory_brain_syncfails withUnknown memory brain action: format.formatis both an allowed enum value in the tool definition and the handler's default action, so a parameterless call fails too.Repro
release_factandpr_factwork:Observed vs expected
formatreturns a formatted, unpersisted memory fact (likerelease_fact/pr_factbut auto-detected), or the enum/default is corrected and documented.Root cause
lib/memory-brain-sync.js:There is no
formatbranch, while the tool schema exposesformat.Proposed fix
Implement
formatas the non-persisting auto-detection path (release vs PR), or drop it from the schema and make the defaultrelease_fact/preflight-style read action. Add a handler test for every enum value plus a parameterless call.Acceptance: each action in the schema either succeeds or is removed from the schema; the default call does not error.
Duplicate check
Searched issues for
memory(state all) → no existing issue.Layer
dsh-gitea plugin/tool.
Fixed in
281eade(PR #40).action: "format"now returns an auto-detected, non-persisted memory fact (persisted:false, synced:false), and the parameterless default no longer errors.release_fact,pr_factandrememberare unchanged.Live:
gitea_memory_brain_sync {action:"format", tag:"v0.8.0", version:"0.8.0"}→Memory Brain Sync: Fact prepared for release in project dsh-gitea.Tests:
test/qa-defaults.test.mjs.