[EPIC][expert] Git / repository expert: symbolic repository reasoning over typed host-supplied Git capabilities #416
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nsaspy/prolog-rlm#416
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?
Parent: #376
Depends on: #377
Integrates with: #379, #380, #141, #355
Goal
Add a reusable Git / Repository Expert that reasons about repository state, history, branches, diffs, worktrees, remotes and safe repository transitions using typed host-supplied Git observations/actions.
The expert belongs in
prolog-rlmbecause the reasoning policy and normalized repository knowledge are reusable. Concrete product Git tool implementations remain downstream/host supplied per #141.Hard boundary
Do not reintroduce the old #49/#50 architecture by shipping ambient concrete Git commands in core.
The expert reasons over normalized capabilities/results equivalent to:
Exact tool names are host/product contracts. The expert contract should operate on normalized repository facts and typed capability metadata, not shell command strings.
D6-11 interaction
sync_remote/1remains a plan-native deterministic operation per #355 and is not implemented as an expert handler.The Git Expert may conclude that synchronization is required and return a typed requirement/plan recommendation for
sync_remote, after which the plan layer executes it through the canonical capability/authority/effect boundary.Likewise, deterministic
run,index, anddeleteremain outside this expert.Responsibilities
Symbolic repository KB
Normalize observations into inspectable terms/facts equivalent to:
Use Prolog graph reasoning for ancestry, reachability, divergence, change attribution and expected-state checks.
Safety / authority
Observing repository state grants no mutation authority.
If the expert recommends a mutating Git action:
Cooperation
LLM policy
Normal Git reasoning uses zero model calls.
Optional model fallback may help interpret fuzzy operator intent or summarize a complex history, but cannot decide authority, execute commands, or replace deterministic repository-state checks. Only explicit fallback usage is metered.
Acceptance
sync_remoteis recommended as typed plan work but never registered as a Git Expert operation.Non-goals
Refs #376 #377 #379 #380 #141 #355