Represent different resources honestly
Context resources carry text and token cost. Tools carry a description, schema token cost, estimated latency, and estimated monetary cost. Both compete for the same visible context budget.
Private · Phase 0 research prototype
The right document can change the right tool.
Junction studies joint selection of passive context and executable tools under shared budgets. Its current reference implementation includes typed resources, lexical candidate generators, an exact small-set selector, independent baselines, controlled toy tasks, and versioned execution traces.
A document and a tool can be valuable together even when neither ranks first alone. A reimbursement policy, for example, can make one API correct and another inappropriate. Junction makes those cross-resource interactions part of the selection objective instead of retrieving each resource type independently.
Context resources carry text and token cost. Tools carry a description, schema token cost, estimated latency, and estimated monetary cost. Both compete for the same visible context budget.
The exact selector enumerates small candidate subsets, rejects budget violations, and adds unary utility to context–tool interaction scores. Stable tie breaking makes toy decisions reproducible.
Fixed and adaptive split baselines rank contexts and tools independently and deliberately omit pairwise interactions. These are controlled comparisons, not evidence of real-agent gains by themselves.
BenchmarkTask.router_view omits gold annotations and verifier configuration. Trace records separately track candidate pools, exposed resources, token usage, tool calls, retrieval metrics, and verified outcomes.
Two retrieval lanes meet at a shared budget and a cross-type objective.
Select from a small illustrative pool of documents and tools. Adjust the shared token budget, tool slots, and coupling strength to see when the best combination changes.
A small illustrative exact-selection problem. Resource costs and utilities are demonstration values, not learned scores or experimental results. Passing a budget check does not establish task success.
A tool consumes context before it is ever called. Treating its schema tokens and a document’s content tokens as one visible budget prevents free tools from distorting a comparison.
Enumerating every subset is expensive at scale, but gives a transparent reference optimum for tiny problems. The current phase validates the scoring and accounting machinery before a larger solver or costly model study.
Gold resource sets and verifier configuration are available to evaluation, not router_view. Raw traces retain enough structure to distinguish retrieval coverage from execution outcome.
Implementation details, examples, and project documentation.
Feasibility filters, unary utility, cross-type interaction terms, and subset comparison.
Separate lexical retrieval contracts and stable tie breaking.
Fixed and adaptive resource splits without interaction scores.
Phase 0 scope and the open research question about equal-budget agent success.
Architecture and descriptions reflect the linked repository snapshot. The playground explains a mechanism; it does not execute the repository or report measured performance.