feat(sii-gateway): Implement P1 — LangGraph State & Topology#5
Draft
Copilot wants to merge 2 commits into
Draft
Conversation
…ateway Co-authored-by: j211100 <251532790+j211100@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add technical screening features for recruitment
feat(sii-gateway): Implement P1 — LangGraph State & Topology
Mar 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Scaffolds the LangGraph cyclic graph skeleton for the SII Recruitment Gateway, implementing P1 of the sovereign AI screening pipeline with ISO 27001:2022 control anchoring and strict modular file structure.
State Schema (
src/state.py)GraphState— 9-field dict subclass threaded through every node:transcriptstrcode_payloadstrsecurity_scorefloatlogic_rubricdictaudit_traceAnnotated[list[dict], operator.add]iso_controls_appliedAnnotated[list[str], operator.add]reflection_loopsintMAX_REFLECTION_LOOPS = 2consensus_scorefloatcandidate_idstraudit_traceandiso_controls_applieduseAnnotated[list, operator.add]so LangGraph fan-out merges appends correctly without clobbering concurrent node writes.Graph Topology
route_reflection()— conditional router enforcingCONSENSUS_THRESHOLD = 0.7andMAX_REFLECTION_LOOPS = 2build_graph()— wires topology with placeholder stubs; docstring contains explicitIMPORTANTguard against merging node logic into this fileISO_CONTROL_*) importable by P2–P5 node modules for consistent audit trail entriesDependencies
Added
sii-gatewayoptional extra topyproject.toml:Testing
tests/test_state.pycovering all public functions, all ISO constant values, allroute_reflectionrouting branches (threshold boundary, loop cap, missing keys), graph node registration, conditional edge wiring, and independent instance creation.Checklist
💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.