[P1] Add evidence-backed context resolution for memory, research, repo state, and design authority #430
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#430
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?
Goal
Implement the context-resolution pass for #68/#69. Before prompt/workflow compilation, resolve the evidence and authority needed to understand the task rather than compiling against stale conversational assumptions.
Required resolution order
The resolver must be able to represent and orchestrate these input classes:
Research inspection is an explicit pre-compilation stage. Design discovery is mandatory for implementation workflows when an appropriate design authority may exist.
Authority semantics
Resolved context must carry provenance and authority class. At minimum distinguish:
Do not silently flatten all inputs into equal-confidence prompt text.
Default precedence must support the invariant that current observed source/tests/repository state override stale remembered behavior. Dedicated project research/design authority must not be replaced by tutorial prose.
Proposed API
Provide host-facing predicates equivalent to:
Follow #54: one canonical async path for latency-bearing connector/tool/provider/repository operations, with sync awaiting the same task.
Exact external retrieval adapters belong behind capability-gated tool/MCP boundaries. This issue defines the resolver/control contract; it must not add ambient GitHub/filesystem/network authority.
Durable-state integration
Use
rlm_artifactfor immutable/versioned resolved-context snapshots and source references so fresh reasoning roots can consume compact authoritative context without inheriting the exploratory transcript.A later re-resolution may supersede an older snapshot, but the old snapshot remains inspectable and provenance-preserving.
Design discovery
The resolver must support searches for repository-local authority such as:
AGENTS.mdand nested instruction files;design/,architecture/,spec/,docs/records;Do not assume such a file exists. Report
none_founddistinctly fromnot_checkedand fromconflicting_candidates(...).Acceptance
none_found,not_checked, inaccessible/error, and conflicting-authority states remain distinct.rlm_artifactand handed to fresh roots by reference.Refs #68 #69 #54 #56 #57
Duplicate of #70 (pre-existing Forgejo mirror with GitHub number parity). Closing this accidental duplicate created by today's open-state sync; #70 stays canonical on Forgejo.