{"id":50505565,"url":"https://github.com/kudosscience/secure-program-synthesis","last_synced_at":"2026-06-02T15:31:29.639Z","repository":{"id":360016853,"uuid":"1248330590","full_name":"kudosscience/secure-program-synthesis","owner":"kudosscience","description":null,"archived":false,"fork":false,"pushed_at":"2026-05-24T17:04:04.000Z","size":137,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-24T17:18:57.772Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kudosscience.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-24T13:59:15.000Z","updated_at":"2026-05-24T17:04:07.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/kudosscience/secure-program-synthesis","commit_stats":null,"previous_names":["kudosscience/secure-program-synthesis"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/kudosscience/secure-program-synthesis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kudosscience%2Fsecure-program-synthesis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kudosscience%2Fsecure-program-synthesis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kudosscience%2Fsecure-program-synthesis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kudosscience%2Fsecure-program-synthesis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kudosscience","download_url":"https://codeload.github.com/kudosscience/secure-program-synthesis/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kudosscience%2Fsecure-program-synthesis/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33829340,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-02T02:00:07.132Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-02T15:31:28.207Z","updated_at":"2026-06-02T15:31:29.634Z","avatar_url":"https://github.com/kudosscience.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Secure Program Synthesis Hackathon Scaffold\n\nThis repository contains a self-contained implementation of the Track 2 plan:\ncross-model spec comparison using two OpenAI models, Lean 4-centered canonicalization,\nand executable counterexample search.\n\n## What it does\n\n- Generates three candidate Lean-oriented specs for each of three tasks.\n- Supports live OpenAI calls or offline demo fixtures.\n- Canonicalizes outputs into a structured spec record.\n- Compares model outputs and finds concrete counterexamples.\n- Renders a static HTML report and a simple PDF summary.\n\n## Quick start\n\nRun the offline end-to-end pipeline and generate all artifacts:\n\n```bash\npython -m spspec.pipeline --offline --output-dir artifacts/demo\n```\n\nRun the tests:\n\n```bash\npython -m unittest discover -s tests\n```\n\nGenerate only model samples:\n\n```bash\npython scripts/generate_specs.py --offline --output-dir artifacts/samples\n```\n\nNormalize a raw sample file:\n\n```bash\npython scripts/normalize_to_lean.py --input artifacts/samples/spec_samples.json --output artifacts/samples/normalized.json\n```\n\n## Live OpenAI mode\n\nSet `OPENAI_API_KEY` and run:\n\n```bash\npython -m spspec.pipeline --live --output-dir artifacts/live\n```\n\nThe live mode uses the Chat Completions API directly via `urllib`, so no OpenAI SDK dependency is required.\n\n## Outputs\n\n- `spec_samples.json`: raw samples.\n- `normalized_samples.json`: canonical spec records.\n- `results.json`: comparison and counterexample summary.\n- `report.html`: static HTML report.\n- `report.pdf`: compact PDF summary.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkudosscience%2Fsecure-program-synthesis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkudosscience%2Fsecure-program-synthesis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkudosscience%2Fsecure-program-synthesis/lists"}