Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
40712da
Fix 8 Critical Build Errors: AutoML and Neural Network Type Definitio…
ooples Oct 19, 2025
b3adfa3
ci: add Codex Autofix CI (#139)
ooples Oct 22, 2025
0982f11
fix(US-BF-011): Implement IFullModel/IFeatureAware methods in ModelIn…
ooples Oct 22, 2025
7fcbc6d
fix(US-BF-020): Implement persistence + feature-aware delegations in …
ooples Oct 22, 2025
a85cae0
fix(US-BF-020): serialize wrapper metadata + base model; robust deser…
ooples Oct 22, 2025
78b7b5c
fix(US-BF-020): implement wrapper-aware SaveModel/LoadModel (containe…
ooples Oct 22, 2025
6d65c2e
Merge branch 'merge-dev2-to-master' into fix/us-bf-020-transfer-rando…
ooples Oct 22, 2025
2aa13e3
fix(US-BF-020): cache inverse-map reflection and log mapping exceptions
ooples Oct 22, 2025
dce9e30
refactor(US-BF-020): extract wrapper (de)serialization helpers to rem…
ooples Oct 22, 2025
fe4f1ef
refactor(US-BF-020): init inverse-map MethodInfo in ctor; handle null…
ooples Oct 22, 2025
48b70fd
Merge branch 'merge-dev2-to-master' into fix/us-bf-020-transfer-rando…
ooples Oct 22, 2025
beeaa3e
Merge branch 'merge-dev2-to-master' into fix/us-bf-020-transfer-rando…
ooples Oct 23, 2025
8ba198a
Merge branch 'merge-dev2-to-master' into fix/us-bf-020-transfer-rando…
ooples Oct 23, 2025
3b565b2
fix: address code review feedback - remove console logging, extract m…
ooples Oct 23, 2025
31d0973
fix(US-BF-011): clarify comments on parameter replacement and deep co…
ooples Oct 23, 2025
ecb0e3e
fix(US-BF-011): address 3 Copilot review comments on PR #140
ooples Oct 23, 2025
966d4c4
fix: merge merge-dev2-to-master into fix/us-bf-011-implement-ifullmod…
ooples Oct 23, 2025
0a45a26
fix: add exception logging to unused catch blocks in transferrandomfo…
ooples Oct 23, 2025
4535dee
fix: train target model on mapped feature space for consistency with …
ooples Oct 23, 2025
3b69a8a
fix(us-bf-021): set isTrained flag before calling MapToTarget in Line…
ooples Oct 23, 2025
ac23ea4
fix: merge merge-dev2-to-master into fix/us-bf-011-implement-ifullmod…
ooples Oct 23, 2025
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
69 changes: 69 additions & 0 deletions .github/workflows/codex-autofix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Codex Auto-Fix on Failure

on:
workflow_run:
workflows: ["Build"]
types: [completed]

permissions:
contents: write
pull-requests: write

jobs:
auto-fix:
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
runs-on: ubuntu-latest
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
FAILED_WORKFLOW_NAME: ${{ github.event.workflow_run.name }}
FAILED_RUN_URL: ${{ github.event.workflow_run.html_url }}
FAILED_HEAD_BRANCH: ${{ github.event.workflow_run.head_branch }}
FAILED_HEAD_SHA: ${{ github.event.workflow_run.head_sha }}
steps:
- name: Check OpenAI API Key Set
run: |
if [ -z "$OPENAI_API_KEY" ]; then
echo "OPENAI_API_KEY secret is not set. Skipping auto-fix." >&2
exit 1
fi
- name: Checkout Failing Ref
uses: actions/checkout@v4
with:
ref: ${{ env.FAILED_HEAD_SHA }}
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: |
if [ -f package-lock.json ]; then npm ci; else npm i; fi
- name: Run Codex
uses: openai/codex-action@main
id: codex
with:
openai-api-key: ${{ secrets.OPENAI_API_KEY }}
prompt: >-
You are working in a .NET repository with GitHub Actions. Read the repository,
run the build/tests, identify the minimal change needed to resolve the failure, implement only that change,
and stop. Do not refactor unrelated code or files. Keep changes small and surgical.
sandbox: workspace-write
- name: Verify tests
run: |
if (Get-Command dotnet -ErrorAction SilentlyContinue) { dotnet build || $true; dotnet test || $true }
shell: pwsh
- name: Create pull request with fixes
if: success()
uses: peter-evans/create-pull-request@v6
with:
commit-message: "fix(ci): auto-fix failing CI via Codex"
branch: codex/auto-fix-${{ github.event.workflow_run.run_id }}
base: ${{ env.FAILED_HEAD_BRANCH }}
title: "Auto-fix failing CI via Codex"
body: |
Codex automatically generated this PR in response to a CI failure on workflow `${{ env.FAILED_WORKFLOW_NAME }}`.
Failed run: ${{ env.FAILED_RUN_URL }}
Head branch: `${{ env.FAILED_HEAD_BRANCH }}`
This PR contains minimal changes intended solely to make the CI pass.

1 change: 1 addition & 0 deletions .worktrees/pr167
Submodule pr167 added at e46dfd
1 change: 1 addition & 0 deletions .worktrees/us-bf-007
Submodule us-bf-007 added at 7e5eab
5 changes: 3 additions & 2 deletions src/TransferLearning/FeatureMapping/LinearFeatureMapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,13 @@ public void Train(Matrix<T> sourceData, Matrix<T> targetData)
_projectionMatrix = ComputeProjectionMatrix(centeredSource, sourceDim, targetDim);
_reverseProjectionMatrix = ComputeProjectionMatrix(centeredTarget, targetDim, sourceDim);

// Set trained flag before calling MapToTarget/MapToSource
IsTrained = true;

// Compute mapping confidence based on reconstruction error
var reconstructed = MapToTarget(sourceData, targetDim);
var reverseReconstructed = MapToSource(reconstructed, sourceDim);
_confidence = ComputeReconstructionConfidence(sourceData, reverseReconstructed);

IsTrained = true;
}

/// <summary>
Expand Down
1 change: 0 additions & 1 deletion worktrees/nf-001
Submodule nf-001 deleted from 525d79
1 change: 0 additions & 1 deletion worktrees/us-ci-002
Submodule us-ci-002 deleted from a62d5b
1 change: 0 additions & 1 deletion worktrees/us-ci-003
Submodule us-ci-003 deleted from 19cc7e
1 change: 0 additions & 1 deletion worktrees/us-nf-002
Submodule us-nf-002 deleted from 52d005
1 change: 0 additions & 1 deletion worktrees/us-nf-003
Submodule us-nf-003 deleted from 170233
1 change: 0 additions & 1 deletion worktrees/us-nf-004
Submodule us-nf-004 deleted from c1fdb0
Loading