Skip to content

Conversation

@jordanpartridge
Copy link
Contributor

Summary

Integrates gate workflow with prefrontal-cortex for automated decision tracking and future PR commentary.

Changes

Updated to send certification results to prefrontal-cortex after every gate run.

Flow

Gate runs → Certification complete
         ↓
Send results to prefrontal-cortex
         ↓
prefrontal logs decision
         ↓
(Future) Auto-comment on PR

Data Sent

{
  "repo": "conduit-ui/issue",
  "pr": 123,
  "gate_status": "success",
  "sha": "abc123",
  "coverage": "100",
  "tests": "pass",
  "linting": "pass"
}

Endpoint

POST https://prefrontal-cortex-master-iw3xyv.laravel.cloud/api/gate/results
Authorization: Bearer {PREFRONTAL_API_TOKEN}

GitHub Secrets Added

  • PREFRONTAL_WEBHOOK_URL
  • PREFRONTAL_API_TOKEN

Testing

This PR will test the integration! When gate runs on this PR, it will send results to prefrontal-cortex.

Dependencies

  • Requires synapse-sentinel/prefrontal-cortex#140 to be merged and deployed
  • Requires KNOWLEDGE_API_TOKEN to be set in Laravel Cloud environment

Related

  • Implements vision#13
  • Depends on prefrontal-cortex#140

Next Steps

  1. Merge and deploy prefrontal-cortex#140
  2. Add KNOWLEDGE_API_TOKEN to Laravel Cloud
  3. Merge this PR
  4. Verify results are received in prefrontal-cortex logs

Add prefrontal-cortex integration to gate workflow for automated
decision tracking and PR commentary.

Changes:
- Add step to send gate results to prefrontal-cortex API
- Send certification status, coverage, tests, and linting results
- Runs on all PRs regardless of gate outcome (if: always())
- Uses PREFRONTAL_WEBHOOK_URL and PREFRONTAL_API_TOKEN secrets

Flow:
1. Gate runs certification
2. Results POST to prefrontal-cortex /api/gate/results
3. Prefrontal-cortex logs decision
4. Future: Auto-comment on PR, trigger actions

Implements vision#13
@jordanpartridge jordanpartridge self-assigned this Dec 30, 2025
@github-actions
Copy link

📊 Coverage Report

Metric Coverage Threshold Status
Lines 100% 100%

🎉 All files meet or exceed the 100% threshold!


🏆 Synapse Sentinel Gate

@github-actions
Copy link

🏆 Sentinel Certified

Tests & Coverage: 448 tests passed
Security Audit: No security vulnerabilities found
Pest Syntax: All test files use describe/it syntax


Add this badge to your README:

[![Sentinel Certified](https://img.shields.io/github/actions/workflow/status/conduit-ui/issue/gate.yml?label=Sentinel%20Certified&style=flat-square)](https://github.com/conduit-ui/issue/actions/workflows/gate.yml)

@github-actions github-actions bot merged commit 7e1dbaa into master Dec 30, 2025
1 check passed
@github-actions github-actions bot deleted the feature/prefrontal-integration branch December 30, 2025 03:19
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.

2 participants