Spaces:
Running
Running
File size: 808 Bytes
47d2384 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | from __future__ import annotations
import logging
from state import OpenCodeReviewState
logger = logging.getLogger(__name__)
def passthrough_node(state: OpenCodeReviewState) -> dict:
"""Log the current state and return unchanged.
This is a placeholder node that proves the graph wiring and checkpointing
work before any real review logic is added.
"""
logger.info("=== Passthrough Node — %s#%d ===", state.repo, state.pr_number)
logger.info("Files: %d | Chunks: %d | Findings: %d",
len(state.changed_files),
len(state.context_chunks),
len(state.findings))
logger.info("Verdict: %s", state.verdict.model_dump() if state.verdict else None)
# Return empty dict — no state mutations in this placeholder
return {}
|