jev-curate 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- jev_curate-0.1.0/.gitattributes +10 -0
- jev_curate-0.1.0/.github/workflows/ci.yml +28 -0
- jev_curate-0.1.0/.github/workflows/pages.yml +34 -0
- jev_curate-0.1.0/.github/workflows/release.yml +96 -0
- jev_curate-0.1.0/.gitignore +26 -0
- jev_curate-0.1.0/.supercov/quality/requests/151b6c9fb4ba1c8f5709f525161ee0564fb4017145ef3566c8e1e7d5f4780c6b.json +1 -0
- jev_curate-0.1.0/.supercov/quality/requests/2c95a119339dcefa4d4776c0bebb51b94a7cfbe2dd9d3c8979d3d298311f37ad.json +1 -0
- jev_curate-0.1.0/.supercov/quality/requests/320fc8c9d906a6caac4445a9c1fa3d6ba8c216b12b77ea6d6cc0e96a6fe449be.json +1 -0
- jev_curate-0.1.0/.supercov/quality/requests/7753666bab3c57fb93b3dcbb512a9a06dfa2f96a878807bde839145e9f86e5fb.json +1 -0
- jev_curate-0.1.0/.supercov/quality/requests/78680f0b64cbd293480322cfde32fd8ec1823daea0d266e365697c0526cb87b2.json +1 -0
- jev_curate-0.1.0/.supercov/quality/requests/a089ff61ded01771c4c9101fe9bc8de3558cf8bc6d8f2fd163ee24f125a1208a.json +1 -0
- jev_curate-0.1.0/.supercov/quality/requests/a0d6210e2aefb1aadc06c86f3089a4c34b99fc6d0267c1603ab910a1b5f23908.json +1 -0
- jev_curate-0.1.0/.supercov/quality/snapshots/latest +1 -0
- jev_curate-0.1.0/.supercov/quality/snapshots/q_d525eae9d6ca3fb5/files.json +1 -0
- jev_curate-0.1.0/.supercov/quality/snapshots/q_d525eae9d6ca3fb5/manifest.json +1 -0
- jev_curate-0.1.0/AGENTS.md +36 -0
- jev_curate-0.1.0/CHANGELOG.md +20 -0
- jev_curate-0.1.0/CLAUDE.md +23 -0
- jev_curate-0.1.0/Cargo.lock +2798 -0
- jev_curate-0.1.0/Cargo.toml +40 -0
- jev_curate-0.1.0/LICENSE +21 -0
- jev_curate-0.1.0/PKG-INFO +191 -0
- jev_curate-0.1.0/README.md +176 -0
- jev_curate-0.1.0/STATE.md +17 -0
- jev_curate-0.1.0/docs/ARCHITECTURE.md +39 -0
- jev_curate-0.1.0/docs/DESIGN-site.md +59 -0
- jev_curate-0.1.0/docs/DESIGN.md +29 -0
- jev_curate-0.1.0/docs/HANDOFF.md +21 -0
- jev_curate-0.1.0/docs/PRD.md +23 -0
- jev_curate-0.1.0/examples/bench_mock.rs +86 -0
- jev_curate-0.1.0/examples/sample_reasoning.jsonl +3 -0
- jev_curate-0.1.0/memory/MEMORIES.md +8 -0
- jev_curate-0.1.0/pyproject.toml +25 -0
- jev_curate-0.1.0/site/.gitignore +18 -0
- jev_curate-0.1.0/site/.vercel/README.txt +11 -0
- jev_curate-0.1.0/site/.vercel/project.json +1 -0
- jev_curate-0.1.0/site/406109d675e8358897c58966fc1ed09c8f59b1066e0554f358d765b38ff9f4ac.txt +1 -0
- jev_curate-0.1.0/site/about.html +180 -0
- jev_curate-0.1.0/site/apple-touch-icon.png +0 -0
- jev_curate-0.1.0/site/benchmarks.html +206 -0
- jev_curate-0.1.0/site/comparison-judges.html +193 -0
- jev_curate-0.1.0/site/comparison.html +208 -0
- jev_curate-0.1.0/site/contact.html +165 -0
- jev_curate-0.1.0/site/favicon.svg +7 -0
- jev_curate-0.1.0/site/glossary.html +209 -0
- jev_curate-0.1.0/site/index.html +345 -0
- jev_curate-0.1.0/site/llms.txt +31 -0
- jev_curate-0.1.0/site/og.png +0 -0
- jev_curate-0.1.0/site/privacy.html +155 -0
- jev_curate-0.1.0/site/robots.txt +4 -0
- jev_curate-0.1.0/site/script.js +52 -0
- jev_curate-0.1.0/site/shot-desktop.png +0 -0
- jev_curate-0.1.0/site/shot-mobile.png +0 -0
- jev_curate-0.1.0/site/sitemap.xml +53 -0
- jev_curate-0.1.0/site/style.css +782 -0
- jev_curate-0.1.0/site/use-cases.html +186 -0
- jev_curate-0.1.0/site/what-is-jev.html +211 -0
- jev_curate-0.1.0/src/client.rs +136 -0
- jev_curate-0.1.0/src/filter.rs +199 -0
- jev_curate-0.1.0/src/lib.rs +40 -0
- jev_curate-0.1.0/src/main.rs +216 -0
- jev_curate-0.1.0/src/parquet_io.rs +214 -0
- jev_curate-0.1.0/src/presets.rs +166 -0
- jev_curate-0.1.0/src/rate_limiter.rs +98 -0
- jev_curate-0.1.0/tests/mock_test.rs +285 -0
- jev_curate-0.1.0/vercel.json +15 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Normalize line endings; Rust uses LF, Windows checkouts get CRLF where needed
|
|
2
|
+
* text=auto
|
|
3
|
+
|
|
4
|
+
# Keep the deployed marketing site out of GitHub language stats
|
|
5
|
+
site/*.html linguist-documentation
|
|
6
|
+
site/*.css linguist-documentation
|
|
7
|
+
site/*.js linguist-documentation
|
|
8
|
+
|
|
9
|
+
# Generated screenshots and binaries never tracked as source
|
|
10
|
+
site/shot-*.png linguist-generated
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [ main ]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [ main ]
|
|
8
|
+
workflow_dispatch:
|
|
9
|
+
|
|
10
|
+
concurrency:
|
|
11
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
12
|
+
cancel-in-progress: true
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
test:
|
|
16
|
+
name: Test & Verify
|
|
17
|
+
runs-on: ubuntu-latest
|
|
18
|
+
timeout-minutes: 15
|
|
19
|
+
steps:
|
|
20
|
+
- uses: actions/checkout@v4
|
|
21
|
+
- uses: dtolnay/rust-toolchain@stable
|
|
22
|
+
- uses: Swatinem/rust-cache@v2
|
|
23
|
+
|
|
24
|
+
- name: Cargo Check
|
|
25
|
+
run: cargo check --all-targets
|
|
26
|
+
|
|
27
|
+
- name: Cargo Test
|
|
28
|
+
run: cargo test --all --verbose
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
name: Deploy site to GitHub Pages
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: read
|
|
10
|
+
pages: write
|
|
11
|
+
id-token: write
|
|
12
|
+
|
|
13
|
+
concurrency:
|
|
14
|
+
group: pages
|
|
15
|
+
cancel-in-progress: true
|
|
16
|
+
|
|
17
|
+
jobs:
|
|
18
|
+
deploy:
|
|
19
|
+
runs-on: ubuntu-latest
|
|
20
|
+
environment:
|
|
21
|
+
name: github-pages
|
|
22
|
+
url: ${{ steps.deployment.outputs.page_url }}
|
|
23
|
+
steps:
|
|
24
|
+
- name: Checkout
|
|
25
|
+
uses: actions/checkout@v4
|
|
26
|
+
- name: Configure Pages
|
|
27
|
+
uses: actions/configure-pages@v5
|
|
28
|
+
- name: Upload site
|
|
29
|
+
uses: actions/upload-pages-artifact@v3
|
|
30
|
+
with:
|
|
31
|
+
path: site
|
|
32
|
+
- name: Deploy
|
|
33
|
+
id: deployment
|
|
34
|
+
uses: actions/deploy-pages@v4
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- 'v*'
|
|
7
|
+
workflow_dispatch:
|
|
8
|
+
|
|
9
|
+
concurrency:
|
|
10
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
11
|
+
cancel-in-progress: true
|
|
12
|
+
|
|
13
|
+
permissions:
|
|
14
|
+
contents: write
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
build-release:
|
|
18
|
+
name: Build (${{ matrix.target }})
|
|
19
|
+
runs-on: ${{ matrix.os }}
|
|
20
|
+
timeout-minutes: 30
|
|
21
|
+
strategy:
|
|
22
|
+
fail-fast: false
|
|
23
|
+
matrix:
|
|
24
|
+
include:
|
|
25
|
+
- target: x86_64-unknown-linux-gnu
|
|
26
|
+
os: ubuntu-latest
|
|
27
|
+
bin_name: jev-curate
|
|
28
|
+
archive_ext: tar.gz
|
|
29
|
+
- target: aarch64-unknown-linux-gnu
|
|
30
|
+
os: ubuntu-latest
|
|
31
|
+
bin_name: jev-curate
|
|
32
|
+
archive_ext: tar.gz
|
|
33
|
+
use_cross: true
|
|
34
|
+
- target: x86_64-apple-darwin
|
|
35
|
+
os: macos-13
|
|
36
|
+
bin_name: jev-curate
|
|
37
|
+
archive_ext: tar.gz
|
|
38
|
+
- target: aarch64-apple-darwin
|
|
39
|
+
os: macos-latest
|
|
40
|
+
bin_name: jev-curate
|
|
41
|
+
archive_ext: tar.gz
|
|
42
|
+
- target: x86_64-pc-windows-msvc
|
|
43
|
+
os: windows-latest
|
|
44
|
+
bin_name: jev-curate.exe
|
|
45
|
+
archive_ext: zip
|
|
46
|
+
|
|
47
|
+
steps:
|
|
48
|
+
- name: Checkout repository
|
|
49
|
+
uses: actions/checkout@v4
|
|
50
|
+
|
|
51
|
+
- name: Install Rust toolchain
|
|
52
|
+
uses: dtolnay/rust-toolchain@stable
|
|
53
|
+
with:
|
|
54
|
+
targets: ${{ matrix.target }}
|
|
55
|
+
|
|
56
|
+
- name: Install Cross (if cross-compiling Linux ARM64)
|
|
57
|
+
if: matrix.use_cross
|
|
58
|
+
run: cargo install cross --git https://github.com/cross-rs/cross
|
|
59
|
+
|
|
60
|
+
- name: Build Release Binary
|
|
61
|
+
run: |
|
|
62
|
+
if [ "${{ matrix.use_cross }}" = "true" ]; then
|
|
63
|
+
cross build --release --target ${{ matrix.target }} --bin jev-curate
|
|
64
|
+
else
|
|
65
|
+
cargo build --release --target ${{ matrix.target }} --bin jev-curate
|
|
66
|
+
fi
|
|
67
|
+
shell: bash
|
|
68
|
+
|
|
69
|
+
- name: Package Binary (Unix)
|
|
70
|
+
if: runner.os != 'Windows'
|
|
71
|
+
run: |
|
|
72
|
+
BIN="target/${{ matrix.target }}/release/${{ matrix.bin_name }}"
|
|
73
|
+
strip "$BIN" 2>/dev/null || true
|
|
74
|
+
ARCHIVE="jev-curate-${{ matrix.target }}.tar.gz"
|
|
75
|
+
tar -czf "$ARCHIVE" -C "target/${{ matrix.target }}/release" "${{ matrix.bin_name }}"
|
|
76
|
+
shasum -a 256 "$ARCHIVE" > "$ARCHIVE.sha256"
|
|
77
|
+
shell: bash
|
|
78
|
+
|
|
79
|
+
- name: Package Binary (Windows)
|
|
80
|
+
if: runner.os == 'Windows'
|
|
81
|
+
run: |
|
|
82
|
+
$bin = "target/${{ matrix.target }}/release/${{ matrix.bin_name }}"
|
|
83
|
+
$archive = "jev-curate-${{ matrix.target }}.zip"
|
|
84
|
+
Compress-Archive -Path $bin -DestinationPath $archive
|
|
85
|
+
$hash = (Get-FileHash -Path $archive -Algorithm SHA256).Hash.ToLower()
|
|
86
|
+
"$hash $archive" | Out-File -FilePath "$archive.sha256" -Encoding ASCII
|
|
87
|
+
shell: pwsh
|
|
88
|
+
|
|
89
|
+
- name: Upload Release Assets
|
|
90
|
+
uses: softprops/action-gh-release@v2
|
|
91
|
+
with:
|
|
92
|
+
files: |
|
|
93
|
+
jev-curate-${{ matrix.target }}.*
|
|
94
|
+
generate_release_notes: true
|
|
95
|
+
env:
|
|
96
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/target
|
|
2
|
+
**/*.rs.bk
|
|
3
|
+
*.parquet
|
|
4
|
+
.env
|
|
5
|
+
.env.*
|
|
6
|
+
!.env.example
|
|
7
|
+
|
|
8
|
+
# Python / PyO3 artifacts
|
|
9
|
+
__pycache__/
|
|
10
|
+
*.py[cod]
|
|
11
|
+
*$py.class
|
|
12
|
+
*.so
|
|
13
|
+
*.pyd
|
|
14
|
+
*.dylib
|
|
15
|
+
dist/
|
|
16
|
+
build/
|
|
17
|
+
*.egg-info/
|
|
18
|
+
|
|
19
|
+
# Test output directories
|
|
20
|
+
test_out/
|
|
21
|
+
curated/
|
|
22
|
+
|
|
23
|
+
# Strict private isolation
|
|
24
|
+
.sevolve/
|
|
25
|
+
brain.db
|
|
26
|
+
*.db
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"request_hash":"151b6c9fb4ba1c8f5709f525161ee0564fb4017145ef3566c8e1e7d5f4780c6b","response":{"model":"jev-1.13.0","answers":{"complex_conditional":{"type":"noul","noul":0.48},"dead_code":{"type":"noul","noul":0.21},"deep_nesting":{"type":"noul","noul":0.69},"duplicated_logic":{"type":"noul","noul":0.58},"feature_envy":{"type":"noul","noul":0.26},"god_class":{"type":"noul","noul":0.59},"long_method":{"type":"noul","noul":0.87},"long_parameter_list":{"type":"noul","noul":0.17},"magic_values":{"type":"noul","noul":0.87},"message_chains":{"type":"noul","noul":0.57},"primitive_obsession":{"type":"noul","noul":0.62},"temporary_field":{"type":"noul","noul":0.15}},"usage":{"input_tokens":3408,"output_tokens":218}},"elapsed_ms":1487}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"request_hash":"2c95a119339dcefa4d4776c0bebb51b94a7cfbe2dd9d3c8979d3d298311f37ad","response":{"model":"jev-1.13.0","answers":{"complex_conditional":{"type":"noul","noul":0.06},"dead_code":{"type":"noul","noul":0.31},"deep_nesting":{"type":"noul","noul":0.04},"duplicated_logic":{"type":"noul","noul":0.2},"feature_envy":{"type":"noul","noul":0.11},"god_class":{"type":"noul","noul":0.26},"long_method":{"type":"noul","noul":0.1},"long_parameter_list":{"type":"noul","noul":0.08},"magic_values":{"type":"noul","noul":0.11},"message_chains":{"type":"noul","noul":0.22},"primitive_obsession":{"type":"noul","noul":0.49},"temporary_field":{"type":"noul","noul":0.05}},"usage":{"input_tokens":1768,"output_tokens":218}},"elapsed_ms":1178}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"request_hash":"320fc8c9d906a6caac4445a9c1fa3d6ba8c216b12b77ea6d6cc0e96a6fe449be","response":{"model":"jev-1.13.0","answers":{"complex_conditional":{"type":"noul","noul":0.15},"dead_code":{"type":"noul","noul":0.19},"deep_nesting":{"type":"noul","noul":0.3},"duplicated_logic":{"type":"noul","noul":0.61},"feature_envy":{"type":"noul","noul":0.31},"god_class":{"type":"noul","noul":0.49},"long_method":{"type":"noul","noul":0.54},"long_parameter_list":{"type":"noul","noul":0.04},"magic_values":{"type":"noul","noul":0.79},"message_chains":{"type":"noul","noul":0.68},"primitive_obsession":{"type":"noul","noul":0.29},"temporary_field":{"type":"noul","noul":0.41}},"usage":{"input_tokens":2194,"output_tokens":218}},"elapsed_ms":1213}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"request_hash":"7753666bab3c57fb93b3dcbb512a9a06dfa2f96a878807bde839145e9f86e5fb","response":{"model":"jev-1.13.0","answers":{"complex_conditional":{"type":"noul","noul":0.16},"dead_code":{"type":"noul","noul":0.17},"deep_nesting":{"type":"noul","noul":0.05},"duplicated_logic":{"type":"noul","noul":0.77},"feature_envy":{"type":"noul","noul":0.08},"god_class":{"type":"noul","noul":0.44},"long_method":{"type":"noul","noul":0.33},"long_parameter_list":{"type":"noul","noul":0.04},"magic_values":{"type":"noul","noul":0.43},"message_chains":{"type":"noul","noul":0.11},"primitive_obsession":{"type":"noul","noul":0.84},"temporary_field":{"type":"noul","noul":0.09}},"usage":{"input_tokens":3093,"output_tokens":218}},"elapsed_ms":1475}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"request_hash":"78680f0b64cbd293480322cfde32fd8ec1823daea0d266e365697c0526cb87b2","response":{"model":"jev-1.13.0","answers":{"complex_conditional":{"type":"noul","noul":0.67},"dead_code":{"type":"noul","noul":0.42},"deep_nesting":{"type":"noul","noul":0.68},"duplicated_logic":{"type":"noul","noul":0.89},"feature_envy":{"type":"noul","noul":0.25},"god_class":{"type":"noul","noul":0.71},"long_method":{"type":"noul","noul":0.71},"long_parameter_list":{"type":"noul","noul":0.08},"magic_values":{"type":"noul","noul":0.38},"message_chains":{"type":"noul","noul":0.8},"primitive_obsession":{"type":"noul","noul":0.82},"temporary_field":{"type":"noul","noul":0.1}},"usage":{"input_tokens":3306,"output_tokens":218}},"elapsed_ms":1549}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"request_hash":"a089ff61ded01771c4c9101fe9bc8de3558cf8bc6d8f2fd163ee24f125a1208a","response":{"model":"jev-1.13.0","answers":{"complex_conditional":{"type":"noul","noul":0.68},"dead_code":{"type":"noul","noul":0.2},"deep_nesting":{"type":"noul","noul":0.34},"duplicated_logic":{"type":"noul","noul":0.62},"feature_envy":{"type":"noul","noul":0.26},"god_class":{"type":"noul","noul":0.67},"long_method":{"type":"noul","noul":0.83},"long_parameter_list":{"type":"noul","noul":0.07},"magic_values":{"type":"noul","noul":0.68},"message_chains":{"type":"noul","noul":0.55},"primitive_obsession":{"type":"noul","noul":0.63},"temporary_field":{"type":"noul","noul":0.08}},"usage":{"input_tokens":3112,"output_tokens":218}},"elapsed_ms":1549}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"request_hash":"a0d6210e2aefb1aadc06c86f3089a4c34b99fc6d0267c1603ab910a1b5f23908","response":{"model":"jev-1.13.0","answers":{"complex_conditional":{"type":"noul","noul":0.36},"dead_code":{"type":"noul","noul":0.2},"deep_nesting":{"type":"noul","noul":0.33},"duplicated_logic":{"type":"noul","noul":0.44},"feature_envy":{"type":"noul","noul":0.18},"god_class":{"type":"noul","noul":0.55},"long_method":{"type":"noul","noul":0.67},"long_parameter_list":{"type":"noul","noul":0.08},"magic_values":{"type":"noul","noul":0.71},"message_chains":{"type":"noul","noul":0.78},"primitive_obsession":{"type":"noul","noul":0.66},"temporary_field":{"type":"noul","noul":0.07}},"usage":{"input_tokens":2511,"output_tokens":218}},"elapsed_ms":1178}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
q_d525eae9d6ca3fb5
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"files":[{"path":"src/parquet_io.rs","bytes":7768,"status":"completed","cached":false,"health":4.58,"present":[{"check":"duplicated_logic","value":0.89},{"check":"primitive_obsession","value":0.82},{"check":"message_chains","value":0.8},{"check":"god_class","value":0.71},{"check":"long_method","value":0.71},{"check":"deep_nesting","value":0.68},{"check":"complex_conditional","value":0.67}],"checks":{"complex_conditional":0.67,"dead_code":0.42,"deep_nesting":0.68,"duplicated_logic":0.89,"feature_envy":0.25,"god_class":0.71,"long_method":0.71,"long_parameter_list":0.08,"magic_values":0.38,"message_chains":0.8,"primitive_obsession":0.82,"temporary_field":0.1},"windows":1,"basis":"both versions","warning":null},{"path":"src/main.rs","bytes":8497,"status":"completed","cached":false,"health":4.95,"present":[{"check":"long_method","value":0.87},{"check":"magic_values","value":0.87},{"check":"deep_nesting","value":0.69},{"check":"primitive_obsession","value":0.62}],"checks":{"complex_conditional":0.48,"dead_code":0.21,"deep_nesting":0.69,"duplicated_logic":0.58,"feature_envy":0.26,"god_class":0.59,"long_method":0.87,"long_parameter_list":0.17,"magic_values":0.87,"message_chains":0.57,"primitive_obsession":0.62,"temporary_field":0.15},"windows":1,"basis":"both versions","warning":null},{"path":"src/filter.rs","bytes":7363,"status":"completed","cached":false,"health":5.32,"present":[{"check":"long_method","value":0.83},{"check":"complex_conditional","value":0.68},{"check":"magic_values","value":0.68},{"check":"god_class","value":0.67},{"check":"primitive_obsession","value":0.63},{"check":"duplicated_logic","value":0.62}],"checks":{"complex_conditional":0.68,"dead_code":0.2,"deep_nesting":0.34,"duplicated_logic":0.62,"feature_envy":0.26,"god_class":0.67,"long_method":0.83,"long_parameter_list":0.07,"magic_values":0.68,"message_chains":0.55,"primitive_obsession":0.63,"temporary_field":0.08},"windows":1,"basis":"both versions","warning":null},{"path":"src/client.rs","bytes":4639,"status":"completed","cached":false,"health":5.81,"present":[{"check":"message_chains","value":0.78},{"check":"magic_values","value":0.71},{"check":"long_method","value":0.67},{"check":"primitive_obsession","value":0.66}],"checks":{"complex_conditional":0.36,"dead_code":0.2,"deep_nesting":0.33,"duplicated_logic":0.44,"feature_envy":0.18,"god_class":0.55,"long_method":0.67,"long_parameter_list":0.08,"magic_values":0.71,"message_chains":0.78,"primitive_obsession":0.66,"temporary_field":0.07},"windows":1,"basis":"both versions","warning":null},{"path":"src/rate_limiter.rs","bytes":3061,"status":"completed","cached":false,"health":6.0,"present":[{"check":"magic_values","value":0.79},{"check":"message_chains","value":0.68},{"check":"duplicated_logic","value":0.61}],"checks":{"complex_conditional":0.15,"dead_code":0.19,"deep_nesting":0.3,"duplicated_logic":0.61,"feature_envy":0.31,"god_class":0.49,"long_method":0.54,"long_parameter_list":0.04,"magic_values":0.79,"message_chains":0.68,"primitive_obsession":0.29,"temporary_field":0.41},"windows":1,"basis":"both versions","warning":null},{"path":"src/presets.rs","bytes":7278,"status":"completed","cached":false,"health":7.08,"present":[{"check":"primitive_obsession","value":0.84},{"check":"duplicated_logic","value":0.77}],"checks":{"complex_conditional":0.16,"dead_code":0.17,"deep_nesting":0.05,"duplicated_logic":0.77,"feature_envy":0.08,"god_class":0.44,"long_method":0.33,"long_parameter_list":0.04,"magic_values":0.43,"message_chains":0.11,"primitive_obsession":0.84,"temporary_field":0.09},"windows":1,"basis":"both versions","warning":null},{"path":"src/lib.rs","bytes":1003,"status":"completed","cached":false,"health":8.31,"present":[],"checks":{"complex_conditional":0.06,"dead_code":0.31,"deep_nesting":0.04,"duplicated_logic":0.2,"feature_envy":0.11,"god_class":0.26,"long_method":0.1,"long_parameter_list":0.08,"magic_values":0.11,"message_chains":0.22,"primitive_obsession":0.49,"temporary_field":0.05},"windows":1,"basis":"both versions","warning":null}],"directories":[{"path":"src","files":7,"bytes":39609,"health":5.6}]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"schema_version":3,"id":"q_d525eae9d6ca3fb5","created_at":"2026-09-22T11:32:53.063Z","parent":null,"supercov_version":"1.0.1","instrument":"catalog","catalog_version":"properties-v1","model":"jev-1.13.0","scope":{"mode":"automatic","roots":["src"],"included":7,"ambiguous":0,"excluded":0,"reasons":{}},"paths":["src"],"counts":{"files":7,"scored":7,"errors":0,"directories":1,"skipped":0},"scope_resolved":null,"limitation":null,"skipped":[],"catalog":[{"check":"god_class","asks":"It carries several independently changing responsibilities.","evidence":"ordered 52.3% of size-matched human-rated pairs alone"},{"check":"long_method","asks":"At least one method is too long to follow as a unit and does several separable things.","evidence":"71.0% alone; 4 of 4 agreement with a blind reader"},{"check":"deep_nesting","asks":"Some method nests control flow three or more levels deep.","evidence":"72.0% alone, the strongest single check; reworded 2026-09-18 to count only control flow"},{"check":"complex_conditional","asks":"An unnamed multi-part condition must be reconstructed by the reader.","evidence":"64.2% alone; detected at 0.89 when introduced deliberately"},{"check":"long_parameter_list","asks":"A method takes many parameters, some of which belong together.","evidence":"51.9% alone; detected at 0.93 when introduced deliberately"},{"check":"duplicated_logic","asks":"One rule is expressed in more than one place.","evidence":"50.8% alone, near chance on size-matched pairs; detected at 0.81 as a change"},{"check":"primitive_obsession","asks":"Domain concepts are carried as primitives, untyped maps, or untyped escape hatches.","evidence":"55.8% alone; reworded 2026-09-18 to include untyped escape hatches"},{"check":"dead_code","asks":"Something here cannot run or is never used.","evidence":"59.0% alone; detected at 0.96 when introduced deliberately"},{"check":"feature_envy","asks":"A method is more interested in one other object's data than in its own.","evidence":"68.2% alone; reworded 2026-09-18 to exclude imported helpers and pure delegation"},{"check":"temporary_field","asks":"A field is only valid during part of the object's life.","evidence":"51.9% alone"},{"check":"message_chains","asks":"A value is obtained by calling through a sequence of returned objects.","evidence":"67.1% alone; reworded 2026-09-18 to exclude namespace and property access"},{"check":"magic_values","asks":"Unexplained literals appear in the logic.","evidence":"65.3% alone; detected at 0.91 when introduced deliberately"},{"check":"hardcoded_secret","asks":"A credential is written into the source.","evidence":"caught at 0.99 on a constructed positive, 0.03 on the matched safe change; fired on 0 of 50 real pull requests"},{"check":"injection_risk","asks":"Untrusted input is interpolated into a query, command or markup.","evidence":"caught at 0.98, 0.03 on the matched safe change; fired on 4 of 50 real pull requests"},{"check":"touches_auth","asks":"It changes authentication or authorisation.","evidence":"caught at 0.97, 0.05 on the matched safe change; fired on 10 of 50 real pull requests"},{"check":"weakens_tests","asks":"An existing test now checks less.","evidence":"caught at 0.98, 0.02 on the matched safe change; fired on 4 of 50 real pull requests"},{"check":"data_migration","asks":"It changes a schema or rewrites stored data.","evidence":"caught at 0.99, 0.06 on the matched safe change; fired on 7 of 50 real pull requests"},{"check":"debug_leftovers","asks":"Debugging left in the change.","evidence":"caught at 0.98, 0.06 on the matched safe change; fired on 4 of 50 real pull requests"}],"health":5.6,"bytes":39609,"policy":{"present_at":0.6,"composition":"health is the mean of the catalog answers, computed by this CLI","aggregation":"directory and repository health weight files by size","cutoffs":"none; no threshold in this project has survived calibration","fail_on_finding":false},"usage_this_run":{"input_tokens":19392,"output_tokens":1526},"usage_from_cache":{"input_tokens":0,"output_tokens":0}}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# AGENTS.md — jev-curate
|
|
2
|
+
|
|
3
|
+
## Architecture & Project Directives
|
|
4
|
+
`jev-curate` is a high-throughput synthetic and pretraining dataset sifter powered by TypeSafe AI's Jev model (`jev-1.13.0` / `jev-latest` at `https://api.typesafe.ai/v1/systemone`).
|
|
5
|
+
|
|
6
|
+
- **Target Speed:** 20 records/sec per worker node (TypeSafe 1,200 req/min limit); 1,500+ records/sec cluster target.
|
|
7
|
+
- **Cost:** ~$0.042 per million input tokens; output unmetered.
|
|
8
|
+
- **Core Engine:** Pure Rust multi-threaded streaming core with Arrow/Parquet integration + PyO3 Python bindings.
|
|
9
|
+
- **I/O Formats:** Parquet (`.parquet`) and JSON Lines (`.jsonl`).
|
|
10
|
+
|
|
11
|
+
## Build & Test Pipeline
|
|
12
|
+
```bash
|
|
13
|
+
# Rust core
|
|
14
|
+
cargo build --release
|
|
15
|
+
cargo test
|
|
16
|
+
|
|
17
|
+
# Python bindings (via maturin)
|
|
18
|
+
maturin develop
|
|
19
|
+
pytest
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Key Files
|
|
23
|
+
| File | Purpose |
|
|
24
|
+
|---|---|
|
|
25
|
+
| `src/lib.rs` | PyO3 module interface and public Rust crate entrypoint |
|
|
26
|
+
| `src/main.rs` | Standalone CLI binary (`jev-curate`) |
|
|
27
|
+
| `src/client.rs` | TypeSafe AI HTTP client with speculative fan-out batching |
|
|
28
|
+
| `src/filter.rs` | Pre-filtering and Jev evaluation pipeline |
|
|
29
|
+
| `src/parquet_io.rs` | Streaming Parquet reader and writer |
|
|
30
|
+
| `src/rate_limiter.rs` | Token bucket rate limiter with auto 429 backoff |
|
|
31
|
+
| `src/presets.rs` | Pre-built evaluation rubrics (math-reasoning, anti-sycophancy, code-correctness) |
|
|
32
|
+
|
|
33
|
+
## Constraints & Rules
|
|
34
|
+
- **Zero Token Waste:** Ingest state once per micro-batch, run all questions via speculative fan-out.
|
|
35
|
+
- **Context Rot Guard:** Enforce 8k-token maximum per row in host code; drop blank/padding lines in Rust before sending to API.
|
|
36
|
+
- **₹0 Testing Budget:** All unit and integration tests must run against in-process mock server (`typesafe-rs-mock`); never burn live API credits in CI.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
### Fixed
|
|
10
|
+
- Fail-closed filter: missing answers and evaluation errors reject the record, never pass it.
|
|
11
|
+
- Per-preset min_confidence floor. Strict response parsing with missing-key errors surfaced.
|
|
12
|
+
- Char-boundary truncation with blank-line stripping. Key required outside dry-run.
|
|
13
|
+
|
|
14
|
+
## [0.1.0] - Unreleased
|
|
15
|
+
### Added
|
|
16
|
+
- Initial project architecture and design specification.
|
|
17
|
+
- MD documentation skeleton (PRD, Design, Architecture, Handoff).
|
|
18
|
+
- Multi-threaded Parquet streaming pipeline design.
|
|
19
|
+
- Speculative fan-out integration for TypeSafe AI Jev System One model.
|
|
20
|
+
- 3 launch presets: `reasoning-math`, `anti-sycophancy`, `code-correctness`.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# CLAUDE.md — jev-curate
|
|
2
|
+
|
|
3
|
+
## Commands
|
|
4
|
+
```bash
|
|
5
|
+
# Build
|
|
6
|
+
cargo build
|
|
7
|
+
cargo build --release
|
|
8
|
+
|
|
9
|
+
# Test (100% offline, zero token cost)
|
|
10
|
+
cargo test
|
|
11
|
+
|
|
12
|
+
# Python development
|
|
13
|
+
maturin develop
|
|
14
|
+
pytest
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Code Style
|
|
18
|
+
- **Rust:** Idiomatic Rust 2024, zero unsafe unless strictly required for FFI, descriptive error handling with `thiserror`/`anyhow`.
|
|
19
|
+
- **Formatting:** `cargo fmt` and `cargo clippy -- -D warnings`.
|
|
20
|
+
- **Concurrency:** `tokio` async tasks + `rayon` CPU parallel pre-filtering.
|
|
21
|
+
- **Immutability:** Transform data via iterators and streams; return fresh Arrow RecordBatches.
|
|
22
|
+
|
|
23
|
+
- Profile: release-order touch 2026-09-22
|