Skip to content

refactor: remove dead code from url_protector and rolegraph#738

Merged
AlexMikhalev merged 1 commit intomainfrom
task/142-remove-redundant-async
Mar 30, 2026
Merged

refactor: remove dead code from url_protector and rolegraph#738
AlexMikhalev merged 1 commit intomainfrom
task/142-remove-redundant-async

Conversation

@AlexMikhalev
Copy link
Copy Markdown
Contributor

Summary

  • Remove unused _placeholder_counter field from UrlProtector struct (declared but never read, placeholder IDs use a local variable instead)
  • Remove commented-out parse_document_to_pair method from RoleGraph (superseded by insert_document)
  • Simplify UrlProtector to a unit struct with derived Default

Note: Items 2 and 4 from #135 (fuzzy_autocomplete_search_jaro_winkler and input.rs) are NOT dead code -- they are actively used by the MCP server and benchmarks respectively.

Refs #135

Test plan

  • cargo test -p terraphim_automata -- all pass
  • cargo test -p terraphim_rolegraph -- all pass (including proptest axioms)
  • cargo clippy -- clean
  • cargo fmt -- clean

Generated with Terraphim AI

- Remove unused _placeholder_counter field from UrlProtector struct
  (was declared but never read)
- Remove commented-out parse_document_to_pair method from RoleGraph
  (superseded by insert_document)

Refs #135

Co-Authored-By: Terraphim AI <noreply@anthropic.com>
@AlexMikhalev AlexMikhalev merged commit 9f5d129 into main Mar 30, 2026
29 checks passed
@AlexMikhalev AlexMikhalev deleted the task/142-remove-redundant-async branch March 30, 2026 14:38
AlexMikhalev added a commit that referenced this pull request Apr 25, 2026
- Remove unused _placeholder_counter field from UrlProtector struct
  (was declared but never read)
- Remove commented-out parse_document_to_pair method from RoleGraph
  (superseded by insert_document)

Refs #135

Co-authored-by: Terraphim AI <noreply@anthropic.com>
AlexMikhalev added a commit that referenced this pull request Apr 25, 2026
… pull_request_url fallback (Fixes adf-fleet#44)' (#738) from task/fix-outputposter-issue-zero into main
AlexMikhalev added a commit that referenced this pull request Apr 25, 2026
Documents the full pipeline from DispatchContext through
RoutingDecisionEngine (KG + keyword + static merge, C1/C3 filter, budget
filter, scoring, telemetry adjustment) through spawn_with_fallback,
model_args, the tokio subprocess, exit classification and OutputPoster
write-back.

Cross-references the code (routing.rs, kg_router.rs, provider_probe.rs,
provider_budget.rs, error_signatures.rs, spawner) and the log lines so
an operator can read a journal trace alongside it. Includes a worked
example from a real security-sentinel dispatch.

Also documents the adf-fleet#44 fix (PR #738): pull_request_url
fallback for PR-comment issue_number extraction.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant