Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
967aeae
Initial plan
Copilot Jan 16, 2026
c504426
Extract coherence normalization into helper function
Copilot Jan 16, 2026
91bc304
Add input validation and improve documentation for normalizeCoherence…
Copilot Jan 16, 2026
90d7e20
Merge branch 'main' into copilot/sub-pr-8-again
toolate28 Jan 16, 2026
e4fc978
Update agent_skills.py
toolate28 Jan 16, 2026
7f83ff4
Update scripts/setup.ts
toolate28 Jan 16, 2026
252ba65
Update packages/quantum-ethics/src/vortex-wavespec.ts
toolate28 Jan 16, 2026
44b9812
Add comprehensive test coverage for vortex-wavespec module
Copilot Jan 16, 2026
739a75c
Document setup.ts script in agent instructions
Copilot Jan 16, 2026
888f8f7
Add VortexCriticality enum and formula-based coherence boosts
Copilot Jan 16, 2026
4d014aa
Fix security vulnerability in setup.ts path validation
Copilot Jan 16, 2026
e86bae9
Simplify path validation logic to handle edge cases
Copilot Jan 16, 2026
6baedf5
Rename fibonacciCoherenceBoost to applyFibonacciWeightedBoost
Copilot Jan 16, 2026
0ac6494
Rename workflow step to "Simulate Default Bell State Circuit"
Copilot Jan 16, 2026
667535d
fix: add success condition to PR comment step in workflow
Copilot Jan 16, 2026
1ce4127
Update scripts/setup.ts
toolate28 Jan 17, 2026
0fd1087
Update agent_skills.py
toolate28 Jan 17, 2026
06cc122
Update agent_skills.py
toolate28 Jan 17, 2026
d832b30
Update .github/workflows/coding-agent.yml
toolate28 Jan 17, 2026
8806c99
Update agent_skills.py
toolate28 Jan 17, 2026
d880c4d
Update scripts/setup.ts
toolate28 Jan 17, 2026
ed2b426
Merge branch 'main' into copilot/sub-pr-8-again
toolate28 Jan 17, 2026
00f6866
Remove unused issue triggers and permissions from workflow
Copilot Jan 17, 2026
0e0bbeb
Add comprehensive documentation for coherence score scales
Copilot Jan 17, 2026
0791403
Add qubit index validation to prevent resource exhaustion
Copilot Jan 17, 2026
2ecd108
Refactor to eliminate code duplication in gate parsing
Copilot Jan 17, 2026
b74e0d6
Add validation and error message helper functions
Copilot Jan 17, 2026
39d1fab
Fix duplicate parsing - validate before try block
Copilot Jan 17, 2026
7c35fd2
Add comprehensive test coverage for agent_skills.py
Copilot Jan 17, 2026
67ef152
Add pytest configuration and test package init
Copilot Jan 17, 2026
4b8d33c
Improve sys.path handling in tests with better documentation
Copilot Jan 17, 2026
564fefc
Use counter-based ATOM tag generation in setup.ts for consistency
Copilot Jan 17, 2026
5445109
Integrate ATOM trail provenance tracking in cascade_integration (#37)
Copilot Jan 17, 2026
1fc0df1
Add input sanitization safeguards to workflow script injection surfac…
Copilot Jan 17, 2026
e5ce15a
Update packages/quantum-ethics/src/__tests__/vortex-wavespec.test.ts
toolate28 Jan 17, 2026
d737558
Update agent_skills.py
toolate28 Jan 18, 2026
8494e0d
Update agent_skills.py
toolate28 Jan 18, 2026
790131b
Initial plan
Copilot Jan 18, 2026
94f6ebe
Update .github/workflows/coding-agent.yml
toolate28 Jan 18, 2026
367e815
Update agent_skills.py
toolate28 Jan 18, 2026
bc8d026
Update agent_skills.py
toolate28 Jan 18, 2026
5622f28
Update tests/test_agent_skills.py
toolate28 Jan 18, 2026
f247f05
Fix critical import and function name mismatches
Copilot Jan 18, 2026
1a6b807
Remove unused imports, dead code, and fix formatting issues
Copilot Jan 18, 2026
d474770
Update function name from fibonacciCoherenceBoost to applyFibonacciWe…
Copilot Jan 18, 2026
d2c4738
Add comprehensive tests for qubit range validation and ATOM decision …
Copilot Jan 18, 2026
3e9a5f4
Add comprehensive ATOM decision test coverage for cascade_integration
Copilot Jan 18, 2026
5cfbfab
Remove redundant local json import from test
Copilot Jan 18, 2026
429de75
Specify UTF-8 encoding when reading ATOM decision file
Copilot Jan 18, 2026
d31aa7b
Add comprehensive tests for qubit range validation feature
Copilot Jan 18, 2026
6d6b1ec
Merge branch 'copilot/sub-pr-8-again' into copilot/sub-pr-24-yet-again
toolate28 Jan 18, 2026
317cf58
Fix critical import errors and add missing test coverage for security…
toolate28 Jan 18, 2026
968f317
Merge branch 'main' into copilot/sub-pr-8-again
toolate28 Jan 18, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 15 additions & 7 deletions .github/workflows/coding-agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,10 @@ name: QDI Coding Agent
on:
pull_request:
types: [opened, synchronize, reopened]
issues:
types: [opened, edited]

permissions:
contents: read
pull-requests: write
issues: write

jobs:
ethical-review:
Expand All @@ -23,9 +20,9 @@ jobs:
python-version: '3.12'

- name: Install Dependencies
run: pip install qiskit
run: pip install 'qiskit>=0.45.0,<2.0.0'

- name: Run Ethical Sims
- name: Simulate Default Bell State Circuit
id: simulate
run: |
if [ -f agent_skills.py ]; then
Expand All @@ -45,13 +42,24 @@ jobs:
echo "ATOM provenance tracked for ethical review"

- name: Comment on PR
if: github.event_name == 'pull_request'
if: >-
github.event_name == 'pull_request' &&
steps.simulate.outcome == 'success'
uses: actions/github-script@v7
with:
script: |
// NOTE: If user-controlled data (e.g., PR titles or bodies)
// is added to this message in the future, be sure to sanitize
// it before including it in the comment to avoid injection
// attacks.

// Use hardcoded safe message (current implementation)
const message = '🌀 **Agent Review**: Coherence >60%. ' +
'Ethical quantum sims validated. Ready for merge.';

github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '🌀 **Agent Review**: Coherence >60%. Ethical quantum sims validated. Ready for merge.'
body: message
})
33 changes: 30 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ SAIF loops back to KENL creating infinite improvement
**3. Wave Analysis (Physics)**

| Metric | What It Detects | Optimal
|------------|---------------------|------------------------
|------------|---------------------|--------
| Curl | Circular reasoning | <0.3
| Divergence | Expansion rate | ~0.2 (golden ratio)
| Potential | Structure depth | >0.6
Expand Down Expand Up @@ -124,7 +124,7 @@ When coherence hits 70%, the **waveform collapses**:
Four tools that work together:

| Package | What It Does
|--------------------|-------------------------------------------------------------------------------
|--------------------|-----------------------------------------------------------------------------
| **wave-toolkit** | Analyzes text coherence using physics (curl, divergence, potential, entropy)
| **atom-trail** | Tracks every decision through phase gates (KENL → AWI → ATOM → SAIF → Spiral)
| **ax-signatures** | Optimizes LLM prompts for coherence
Expand Down Expand Up @@ -160,6 +160,7 @@ cat .vortex-logs/snap-in-*.json | jq '.coherence.coherence_score'
```

**Tags applied automatically:**

- Phase: `phase:KENL`, `phase:AWI`, `phase:ATOM`, `phase:SAIF`, `phase:Spiral`
- Component: `pkg:wave-toolkit`, `pkg:atom-trail`, etc.
- Quality: `coherence:high`, `coherence:review`, `coherence:low`
Expand Down Expand Up @@ -197,7 +198,33 @@ qdi/
- Use connectives: therefore, moreover, consequently
- Increase vocabulary diversity

See [CONTRIBUTING.md](CONTRIBUTING.md) for details.
## Coding Agent

The repository includes a GitHub Actions-based coding agent for automated ethical review of PRs.

### Agent Setup

```bash
# Install Python dependencies for quantum simulations
pip install qiskit

# Run agent skills locally
python agent_skills.py simulate
python agent_skills.py check_coherence --threshold 0.6
```

### Agent Commands

| Command | Description |
|-------------------|----------------------------------------|
| `simulate` | Run Qiskit circuit simulation |
| `check_coherence` | Verify coherence threshold (>60%) |
| `cascade` | Integrate provenance for cascading PRs |
| `review_pr` | Generate automated PR review |

See [docs/instructions.md](docs/instructions.md) for full agent documentation.

## Feedback & Contributions

## 📚 Learn More

Expand Down
Loading
Loading