Artifact 80ff0c0e3d72462f4d36a211ad80e31a245156f0c3f9b36bfc2882df56942c82:
- File
ci/tiers.stubs
— part of check-in
[8f2d30d39e]
at
2026-11-22 20:18:02
on branch keel-rpc
— Cut the RPC command registry seam
Components register RPC commands (name, help, flags, answer) and main.c wires them; rpc.c dispatches by name without including catalog.h, compact.h, prompts.h or skills.h. get_available_models and get_commands move to src/listings.c; rewind uses the new call shape. Whether compaction is automatic and the token estimate come through the context policy (automatic, tokens). Allowance 29 -> 25, stubs 29 -> 20. (user: pi-c-agent, size: 2281) [annotate] [blame] [check-ins using] [more...]
# Symbols core takes from bundled files today, one per line with a reason (check 5 in # docs/dev/tiers.md): the core files linked alone leave exactly these undefined. Many are declared # in pic.h, so no include shows them. The count never exceeds "# stubs:" in ci/tiers.tsv; a seam # that lands deletes its lines and lowers the number. pic_api_name models.c: provider_http.c and rpc.c map a provider to its wire API; leaves with registration pic_export_html export_html.c: rpc.c exports a conversation; moves to the command registry pic_export_pi export_pi.c: rpc.c exports Pi lines; moves to the command registry pic_export_pi_head export_pi.c: hooks.c hands hooks the Pi session line; export_pi.c may become core pic_model_resolve models.c: loop.c and rpc.c resolve a model; leaves with catalog rows pic_model_thinking_clamp models.c: provider_http.c and rpc.c clamp thinking levels; leaves with catalog rows pic_model_thinking_levels models.c: rpc.c lists thinking levels; moves to the command registry pic_pi_entries export_pi.c: rpc.c answers get_messages in Pi's form; moves to the command registry pic_project_instructions context.c: loop.c reads instruction files; needs the prompt-assembly seam pic_provider_anthropic_new provider_anthropic.c: provider_http.c switches on the adapter; replace with registration pic_provider_chat_new provider_chat.c: provider_http.c switches on the adapter; replace with registration pic_provider_gemini_new provider_gemini.c: provider_http.c switches on the adapter; replace with registration pic_provider_responses_new provider_responses.c: provider_http.c switches on the adapter; replace with registration pic_system_prompt context.c: loop.c builds the system prompt; needs the prompt-assembly seam pic_thinking_index models.c: rpc.c parses thinking levels; leaves with catalog rows pic_thinking_names models.c: rpc.c names thinking levels; leaves with catalog rows pic_toolset_run search.c: loop.c and toolpar.c run grep, find and ls directly; needs a tool registry pic_toolset_schemas search.c: loop.c sends the search tools' schemas; needs a tool registry pic_toolset_sequential search.c: loop.c asks whether a search tool runs alone; needs a tool registry pic_usage_priced models.c: loop.c prices replies; leaves with catalog rows