text stringlengths 3 8.33k | repo stringclasses 52
values | path stringlengths 6 141 | language stringclasses 35
values | sha stringlengths 64 64 | chunk_index int32 0 273 | n_tokens int32 1 896 |
|---|---|---|---|---|---|---|
{"operation":"validate_rigid_transform","values":[-1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}
| openai-build-week | fixtures/policies/RR-COORD-1/rev-001/inputs/coord.rigid-reflection.json | JSON | 470f7617df19b79c10ab2cdb3e84359e29754fe8f8942d348f7827d4b72f36b1 | 0 | 48 |
{"base":"expected/wire.valid.hex","mutations":[{"op":"replace_byte","offset":0,"value_hex":"58"}]}
| openai-build-week | fixtures/policies/RR-COORD-1/rev-001/inputs/wire.bad-magic.json | JSON | 54b29719a5f3a0112f2ae04967decb5af929ef882f71fa5df5c8f45b25383f71 | 0 | 45 |
{"base":"expected/wire.valid.hex","mutations":[{"op":"replace_byte","offset":4,"value_hex":"02"}]}
| openai-build-week | fixtures/policies/RR-COORD-1/rev-001/inputs/wire.bad-version.json | JSON | 434e08644c213d487ff382d97f6224c1b2b52b40e496c50d9b772bdd0a274f20 | 0 | 45 |
{"base":"expected/wire.valid.hex","mutations":[{"op":"replace_u32be","offset":8,"value":1822}]}
| openai-build-week | fixtures/policies/RR-COORD-1/rev-001/inputs/wire.header-length-mismatch.json | JSON | 3446e35700b121cfbce7962a030b725a83dccf7b16bb1f4b19b76b786de18d0b | 0 | 43 |
{"base":"expected/wire.valid.hex","mutations":[{"op":"replace_u32be","offset":8,"value":65537}]}
| openai-build-week | fixtures/policies/RR-COORD-1/rev-001/inputs/wire.header-over-limit.json | JSON | 081ee30660a57beb2a0114489b544a9c6bf9ce1532ab299e4e14a95849750497 | 0 | 43 |
{"base":"expected/wire.valid.hex","mutations":[{"op":"replace_byte","offset":7,"value_hex":"01"}]}
| openai-build-week | fixtures/policies/RR-COORD-1/rev-001/inputs/wire.nonzero-flags.json | JSON | 5d38934dfa2d0c866788497fb9dc60ad04ba896aa629353a217bb72c2cd5091e | 0 | 45 |
{"base":"expected/wire.valid.hex","mutations":[{"op":"replace_u32be","offset":12,"value":3}]}
| openai-build-week | fixtures/policies/RR-COORD-1/rev-001/inputs/wire.payload-length-mismatch.json | JSON | 0795ad155da62cd08e82ea3b7f4212f89a9611dfaed416b1513dfc5a51b2219a | 0 | 43 |
{"base":"expected/wire.valid.hex","mutations":[{"op":"replace_u32be","offset":12,"value":16777217}]}
| openai-build-week | fixtures/policies/RR-COORD-1/rev-001/inputs/wire.payload-over-limit.json | JSON | 2c40900211e8b39eebb66e77f4a6e2b7a14cce60a2922545bb7a0a76fdd20fc3 | 0 | 43 |
{"base":"expected/wire.valid.hex","mutations":[{"op":"replace_byte","offset":1850,"value_hex":"75"}]}
| openai-build-week | fixtures/policies/RR-COORD-1/rev-001/inputs/wire.payload-tamper.json | JSON | 924cd17bb585e096da2390eb748bc97de6e35c583dbe15b69f636fabf153a52b | 0 | 45 |
{"base":"expected/wire.valid.hex","mutations":[{"op":"replace_u64be","offset":16,"value":1}]}
| openai-build-week | fixtures/policies/RR-COORD-1/rev-001/inputs/wire.sequence-mismatch.json | JSON | e050ebdcacfe65850a774f297c2968ba293f361608e67d8f509da02850baebb3 | 0 | 43 |
{"base":"expected/wire.valid.hex","mutations":[{"op":"append_hex","value_hex":"00"}]}
| openai-build-week | fixtures/policies/RR-COORD-1/rev-001/inputs/wire.trailing-byte.json | JSON | b27eb98a2f436dc252114cc5f8d8c95ae59c4a1c06cd85b46920937d5610b8db | 0 | 39 |
{"base":"expected/wire.valid.hex","mutations":[{"op":"truncate","byte_length":1850}]}
| openai-build-week | fixtures/policies/RR-COORD-1/rev-001/inputs/wire.truncated.json | JSON | 2dac8182d5cab3639efea64326c41c485bd45ff6a3abbe54ef85bd4f35a36c9b | 0 | 37 |
{"header_source":"../../../contracts/1.0.0/rev-001/instances/con001.frame-packet.valid.json","payload_hex":"74657374","expected_wire_hex":"expected/wire.valid.hex"}
| openai-build-week | fixtures/policies/RR-COORD-1/rev-001/inputs/wire.valid.json | JSON | c7f5ad45fbf8ae3d61cf3d8d5ad968f966a04f8cd8bc093b75f3ba4ecfa52526 | 0 | 60 |
{
"schema_version": "1.0.0",
"fixture_id": "FX-JCS-001",
"fixture_revision": "rev-001",
"subject": "RR-JCS-SHA256-1",
"oracle": {
"status": "immutable",
"source": "checked_in",
"expected_generation": "forbidden_during_verification",
"case_order": "lexicographic_case_id",
"generator_role": ... | openai-build-week | fixtures/policies/RR-JCS-SHA256-1/rev-001/manifest.json | JSON | 1090c42607f3d20dd56f0d31cc04769b83743cf67a785a99434859bd75b04ba7 | 0 | 896 |
"immutable": true
},
{
"case_id": "jcs.negative-zero",
"case_kind": "raw_json",
"input": {
"relative_path": "inputs/jcs.negative-zero.raw",
"media_type": "application/octet-stream",
"byte_length": 11,
"sha256": "63ac50753737f63908c4ff9b25d30491d0307332682eb0dc25... | openai-build-week | fixtures/policies/RR-JCS-SHA256-1/rev-001/manifest.json | JSON | 108a1df5b3843d7f4abf7a3d08385406d1f74c3972b8b2ea5a94e4b37b660c92 | 1 | 896 |
,
"sha256": "5d3ad45f4840616414f23d03a6d524b26df4a3fe10b0bb3fc39b45fef4632ec4",
"value_sha256": "80cec8e586bda1c19c2fb9e7e3f39d182b1c3d5718d3e2a23b3ca2a0e1a1d918"
}
]
},
"immutable": true
},
{
"case_id": "jcs.scope.manifest",
"case_kind": "digest... | openai-build-week | fixtures/policies/RR-JCS-SHA256-1/rev-001/manifest.json | JSON | 07c2a4df885d34aef961af7339f4e8c8c95f0d61b8c90e31af0acb7ebacb299d | 2 | 896 |
",
"media_type": "text/plain",
"byte_length": 65,
"sha256": "0c3ce626e716632044af9c2af7ff098af435f2d1ad3a27e51969b2c30f9e31ba",
"value_sha256": "07f62674b95da9820eda12f138cdde6ceac246aca29aa719d8b3ef17c7367d8e"
}
]
},
"immutable": true
},... | openai-build-week | fixtures/policies/RR-JCS-SHA256-1/rev-001/manifest.json | JSON | 76fbe5ccd3b2dfe179e273f968854088ec9f6e61cc904867f97649f9ccf0158b | 3 | 261 |
{"artifact_type":"obb","artifact_revision":1,"artifact_id":"artifact_00000000-0000-4000-8000-000000000001"}
| openai-build-week | fixtures/policies/RR-JCS-SHA256-1/rev-001/inputs/jcs.scope.artifact.json | JSON | 4277b38195a70cfb27fe85fe6ad93433f78604a548d4b6d4a9cea8f4f221f46a | 0 | 31 |
{"result_sha256_scope":"commit_object_with_result_sha256_member_omitted","committed_scene_revision":1,"authority_id":"device_00000000-0000-4000-8000-000000000001"}
| openai-build-week | fixtures/policies/RR-JCS-SHA256-1/rev-001/inputs/jcs.scope.commit.json | JSON | 53b5fe113a63d511f5bc8b90404ecb4fe981b7c27ef377bf6e4e249311b1daca | 0 | 31 |
[[1,"event","event_b","bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"],[0,"frame","frame_a","aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"]]
| openai-build-week | fixtures/policies/RR-JCS-SHA256-1/rev-001/inputs/jcs.scope.journal.json | JSON | 3e654faf1204a957a9c2cc235b8556d6984d9979ee2ae414116d4cfae93174dd | 0 | 33 |
{"session_id":"session_00000000-0000-4000-8000-000000000001","finalization":{"state":"finalized","last_durable_journal_sequence":0}}
| openai-build-week | fixtures/policies/RR-JCS-SHA256-1/rev-001/inputs/jcs.scope.manifest.json | JSON | d50eb540b6791718a6ea6b4993c6fc36ee235bd7d510340e163cbeaed4b8c973 | 0 | 37 |
{"frame_id":"frame_00000000-0000-4000-8000-000000000001","payload_sha256":"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08","protocol_version":"1.0.0"}
| openai-build-week | fixtures/policies/RR-JCS-SHA256-1/rev-001/inputs/jcs.scope.packet.json | JSON | 775a9c87bc2c1c56ef8b6dff10b993dd90934e167bb441ce3c2bfcc6563b6e6b | 0 | 36 |
{"world_frame_version":1,"projection_version":"RR-EDIT-PROJECTION-1","object_edit_states":[],"placed_assets":[],"asset_support_relations":[]}
| openai-build-week | fixtures/policies/RR-JCS-SHA256-1/rev-001/inputs/jcs.scope.projection.json | JSON | 1b7c89a1056c73a6ae3f738f16be012c5a410bb33419c3fa7f93d7656f1e15e4 | 0 | 42 |
{"target_context":{"selected_object_id":null},"schema_version":"1.0.0","session_id":"session_00000000-0000-4000-8000-000000000001","revision_authority":{"kind":"native_device"},"base_scene_revision":0,"intent":{"operation":"remove"},"proposed_operations":[]}
| openai-build-week | fixtures/policies/RR-JCS-SHA256-1/rev-001/inputs/jcs.scope.transaction.json | JSON | f1fc7a97e0d54a58b270919eff1bdc77e1b785ad369770e124f5096114c52300 | 0 | 80 |
{"checks":[{"check_id":"scene_revision"}],"request":{"base_scene_revision":0}}
| openai-build-week | fixtures/policies/RR-JCS-SHA256-1/rev-001/inputs/jcs.scope.validation.json | JSON | 1dbf903f3a7856ca7e4e95558f9272222f5443e2397aa1bf073dc686e07953e1 | 0 | 29 |
// swift-tools-version: 6.1
import PackageDescription
let package = Package(
name: "ReRoomContracts",
platforms: [
.iOS(.v16),
.macOS(.v13),
],
products: [
.library(name: "ReRoomContracts", targets: ["ReRoomContracts"]),
],
dependencies: [
.package(
... | openai-build-week | ios/Packages/ReRoomContracts/Package.swift | Swift | af5dac72ec4c1d7a1580e2f5a3b76a97104e696d3c218ee8a7e8dbbf2fd9f859 | 0 | 148 |
import json
import unittest
from pathlib import Path
from jsonschema import Draft202012Validator
ROOT = Path(__file__).resolve().parents[1]
SHA_A = "a" * 64
SHA_B = "b" * 64
def load_schema(name: str) -> dict:
with (ROOT / "fixtures" / name).open("r", encoding="utf-8") as handle:
return json.load(handl... | openai-build-week | tests/test_fixture_meta_schemas.py | Python | cc1ce031886b097237bb34a031726acb7e728a19086f6e55a4809d766d24ab9a | 0 | 896 |
self.instance, cases=[oversized])
self.assert_rejected(invalid_case)
def test_rejects_accept_with_rejection_class_and_reject_without_one(self) -> None:
accept = fixture_case("contract.frame.accept-class")
accept["expected"]["rejection_class"] = "schema_validation"
self.assert_reject... | openai-build-week | tests/test_fixture_meta_schemas.py | Python | 62b74d5d54b677fdc9efdf87138ffa64cd50c2b9622929072cb3e652d68a6d0a | 1 | 536 |
{
"name": "@reroom/phase-01-contract-tools",
"private": true,
"type": "module",
"engines": {
"node": "22.22.3"
},
"dependencies": {
"ajv": "8.20.0",
"ajv-formats": "3.0.1",
"canonicalize": "3.0.0"
}
}
| openai-build-week | tools/javascript/package.json | JSON | 58ff59ae070ca72d6b3d64eedddd78dc1c4018d06e33fcb69937c656cc52a519 | 0 | 86 |
import canonicalize from "canonicalize";
import {
RunnerFailure,
caseResult,
parseJsonBytesStrict,
readFixtureFile,
rejectedCaseResult,
sha256Hex,
} from "./loader.mjs";
function validateIJson(value) {
const stack = [value];
while (stack.length > 0) {
const current = stack.pop();
if (typeof cu... | openai-build-week | tools/javascript/src/canonical-json.mjs | JavaScript | b800d7133daf3b364060c5ce46e8b459b8e615ff2b713e51384926ba48d857fa | 0 | 573 |
import {
RunnerFailure,
caseResult,
parseJsonBytesStrict,
readFixtureFile,
rejectedCaseResult,
sha256Hex,
} from "./loader.mjs";
export const RR_FLOAT_MAX = 3.4028234663852886e38;
const SCALAR_ABSOLUTE_TOLERANCE = 1e-5;
const SCALAR_RELATIVE_TOLERANCE = 1e-6;
const RIGID_TOLERANCE = 1e-4;
const HOMOGENEOUS... | openai-build-week | tools/javascript/src/coordinate.mjs | JavaScript | d64c9139731b4a68b759cfb99a6a3996908fcfdf0aa99f441ebf9053a92dfd4e | 0 | 896 |
z] = quantizedArray(cameraPoint, 3);
requireCoordinate(z !== 0, "camera point lies on the projection plane");
const fx = quantizeRrFloat(intrinsics.fx);
const fy = quantizeRrFloat(intrinsics.fy);
const cx = quantizeRrFloat(intrinsics.cx);
const cy = quantizeRrFloat(intrinsics.cy);
requireCoordinate(fx > 0 &... | openai-build-week | tools/javascript/src/coordinate.mjs | JavaScript | 59f6d69cba062112186beef91293e9880ced52e62362c812961738b61b5eeeea | 1 | 896 |
);
const bytes = Buffer.from(`${JSON.stringify(output)}\n`, "utf8");
const kind = fixtureCase.expected.artifacts[0]?.kind;
return caseResult(fixtureCase.case_id, "accept", null, kind ? [{ kind, byte_length: bytes.length, sha256: sha256Hex(bytes) }] : []);
} catch (error) {
return rejectedCaseResult(fi... | openai-build-week | tools/javascript/src/coordinate.mjs | JavaScript | e2c1276e0133c8f7aa38c2284c1d4a8f2c1f2d08579bd78aa2a777c43ac21eff | 2 | 97 |
import { createHash } from "node:crypto";
import { realpath, readFile, stat } from "node:fs/promises";
import path from "node:path";
import { fileURLToPath } from "node:url";
import Ajv2020 from "ajv/dist/2020.js";
import addFormats from "ajv-formats";
export const MAX_DOCUMENT_DEPTH = 64;
export const MAX_FILE_BYTES... | openai-build-week | tools/javascript/src/loader.mjs | JavaScript | c13f85b886f3daf88c9239ebfa9da2821682f631b95f19c57c65d4c70e404a91 | 0 | 896 |
nesting exceeds the configured limit");
};
const parseHex = () => {
const digits = source.slice(index, index + 4);
if (!/^[0-9a-fA-F]{4}$/.test(digits)) throw syntaxFailure("invalid Unicode escape");
index += 4;
return Number.parseInt(digits, 16);
};
const parseString = () => {
if (source[in... | openai-build-week | tools/javascript/src/loader.mjs | JavaScript | faf4a7670969c1bdbfb8fade0b1e1a2ffa52b959127452fa93bdbf8f98c4cbcd | 1 | 896 |
}
}
if (character === "[") {
index += 1;
const value = [];
whitespace();
if (source[index] === "]") {
index += 1;
return value;
}
while (true) {
value.push(parseValue(depth + 1));
whitespace();
const delimiter = source[index++];
... | openai-build-week | tools/javascript/src/loader.mjs | JavaScript | b37b08d39f048fb5e73c797b149ad59fa858cca93cf7e97b2cbd4b905ecfa0a9 | 2 | 896 |
: true, strictTypes: false, strictTuples: false });
addFormats(ajv);
return ajv;
}
export async function loadFixture(manifestPath, { repoRoot } = {}) {
const absoluteManifest = path.resolve(manifestPath);
const root = path.resolve(repoRoot ?? MODULE_REPO_ROOT);
const manifestBytes = await readBytesBounded(ab... | openai-build-week | tools/javascript/src/loader.mjs | JavaScript | 849981264a42ae5c215a9001a4528ede4ee6d160afeaee22abcb39f047cc6fbb | 3 | 896 |
!(key in target))) {
throw new RunnerFailure("schema_validation", "replace mutation target is absent");
}
target[key] = structuredClone(mutation.value);
}
return value;
}
export function caseResult(caseId, verdict, rejectionClass = null, outputArtifacts = []) {
return { case_id: caseId, verdict, re... | openai-build-week | tools/javascript/src/loader.mjs | JavaScript | 087f3fc29e56d4536ecf2a5c016d6e7ccf6604ac4e54da96b6a775a0a02be762 | 4 | 121 |
#!/usr/bin/env node
import { execFile } from "node:child_process";
import { writeFile } from "node:fs/promises";
import path from "node:path";
import { promisify } from "node:util";
import { fileURLToPath } from "node:url";
import Ajv2020 from "ajv/dist/2020.js";
import { canonicalDigest, canonicalizeBytes } from ".... | openai-build-week | tools/javascript/src/runner.mjs | JavaScript | c7ecd1c83f98b545ddf84f546bbdfd638691b235a9a9d9bffc92a7264bc43f41 | 0 | 896 |
match the loaded oracle");
}
const { result_digest_sha256: digest, ...unsigned } = result;
if (digest !== canonicalDigest(unsigned)) throw new RunnerFailure("digest_mismatch", "result digest does not match its exact scope");
}
export async function runFixture(manifestPath, { repoRoot, implementationRevision } = ... | openai-build-week | tools/javascript/src/runner.mjs | JavaScript | fe5af1b2569126e106113750c3980df296c50e9c42a538035a82c0bc411a8293 | 1 | 758 |
import path from "node:path";
import Ajv2020 from "ajv/dist/2020.js";
import addFormats from "ajv-formats";
import {
RunnerFailure,
applyJsonMutations,
caseResult,
parseJsonBytesStrict,
readFixtureFile,
readFixtureInternal,
rejectedCaseResult,
sha256Hex,
} from "./loader.mjs";
const VERSION_FIELDS = ... | openai-build-week | tools/javascript/src/schema-validator.mjs | JavaScript | 4654008a6e41639bda301784efd5c4639195e82d77a974459edad249ce03c1c6 | 0 | 896 |
.commit.confirmation.preview_id !== value.preview.preview_id) {
throw new RunnerFailure("semantic_invariant", "confirmation is not bound to the transaction preview");
}
}
}
export function validateContractValue(fixture, contractId, value) {
rejectUnsupportedVersion(value);
validateSemanticInvariants(co... | openai-build-week | tools/javascript/src/schema-validator.mjs | JavaScript | 1794ab1ed002ddfbf038ebbb241456b67184f7d469543f36afcfe0cb04d31c80 | 1 | 583 |
import {
RunnerFailure,
caseResult,
parseJsonBytesStrict,
readFixtureFile,
readFixtureInternal,
rejectedCaseResult,
sha256Hex,
} from "./loader.mjs";
import { canonicalizeBytes } from "./canonical-json.mjs";
import { validateContractValue } from "./schema-validator.mjs";
export const RRFP_FIXED_HEADER_BY... | openai-build-week | tools/javascript/src/wire-frame.mjs | JavaScript | 61458147c1a6ebc32479d0e3d8ccc17ff90141fab60ba843cf9e4b244a9afc90 | 0 | 896 |
payload_sha256 === sha256Hex(payload), "digest_mismatch", "RRFP payload SHA-256 mismatch");
return { header, payload };
}
function parseWireHex(bytes) {
const text = bytes.toString("utf8");
requireWire(/^[0-9a-f]+\n$/.test(text) && (text.length - 1) % 2 === 0, "wire_length", "wire oracle is not lowercase even-le... | openai-build-week | tools/javascript/src/wire-frame.mjs | JavaScript | 50f2941f4b7642bf83dd1372190d61b4bbcf286072072f9a362bb062f7c600fc | 1 | 848 |
import assert from "node:assert/strict";
import { readFile } from "node:fs/promises";
import test from "node:test";
import { fileURLToPath } from "node:url";
import { loadFixture } from "../src/loader.mjs";
import { executeContractCase } from "../src/schema-validator.mjs";
import { executeJcsCase } from "../src/canoni... | openai-build-week | tools/javascript/test/runner.test.mjs | JavaScript | 26bfddff217cdd68bd57407ae738d75d60b906abe7e2380d8722f46faf4b0580 | 0 | 896 |
case_id }) => case_id),
expectedFixture.manifest.cases.map(({ case_id }) => case_id),
);
assert.deepEqual(result.summary, {
total: result.case_results.length,
accepted: result.case_results.filter(({ verdict }) => verdict === "accept").length,
rejected: result.case_results.filter(({ verdi... | openai-build-week | tools/javascript/test/runner.test.mjs | JavaScript | 44e2066bddd776ab6e936c0f2a2e5a8196f1cfe9f7ad8b89655d531104fd1ebe | 1 | 143 |
#!/usr/bin/env python3
"""Fail-closed integrity and normalized-result comparator for Phase 01 fixtures."""
from __future__ import annotations
import argparse
import hashlib
import json
import sys
from dataclasses import dataclass
from pathlib import Path
from typing import Any, Iterable, Sequence
from jsonschema imp... | openai-build-week | tools/verify/compare_results.py | Python | 8d2a4b780f88840651b98dd318edc751b94e0a6618c6da10cb9788806867ae19 | 0 | 896 |
-> Path:
try:
candidate = (base / relative_path).resolve(strict=True)
candidate.relative_to(base.resolve(strict=True))
except (OSError, ValueError) as error:
raise ComparisonError(f"{mismatch}:invalid_path") from error
return candidate
def _verify_file(base: Path, reference: dict[s... | openai-build-week | tools/verify/compare_results.py | Python | 65f521766aeb4293074feff238b56ffb1c5a0c6a5114d72c0049ebd60e845a48 | 1 | 896 |
:{missing[0]}")
if extra:
raise ComparisonError(f"extra_case:{extra[0]}")
if actual_ids != expected_ids:
raise ComparisonError("case_order")
def _expected_artifacts(case: dict[str, Any]) -> list[dict[str, Any]]:
keys = ("kind", "byte_length", "sha256", "value_sha256")
return [{key: art... | openai-build-week | tools/verify/compare_results.py | Python | c19037065f6aeea145fed5f3bede6d1cd5fbb8999bc21a3a7782e03c17bf0a5e | 2 | 896 |
set(required_runtimes) - set(results))
if missing:
raise ComparisonError(f"missing_runtime:{missing[0]}")
consensus_values = list(results.values())
if any(value != consensus_values[0] for value in consensus_values[1:]):
raise ComparisonError("runner_disagreement")
return tuple(sorted(res... | openai-build-week | tools/verify/compare_results.py | Python | e5515cfe5020e0554ce068162952979a5101e4da10f622309651e9cd8fd844f1 | 3 | 382 |
#!/usr/bin/env python3
"""Bounded, offline verification for the Phase 01 dependency approval gate."""
from __future__ import annotations
import argparse
import hashlib
import json
import re
import sys
from collections import defaultdict, deque
from pathlib import Path
from typing import Any
ALLOWLIST = {
"ajv",... | openai-build-week | tools/verify/verify_phase_01_dependencies.py | Python | 4aa3023a014c76a85c52e3534500051a3bbff87d0c159f1ab78e87458dc3a681 | 0 | 896 |
("npm", "pypi", "swiftpm"):
require(isinstance(transitive.get(ecosystem), dict), f"missing {ecosystem} transitive audit")
require("sus" not in {normalized(n) for n in transitive[ecosystem]}, "SUS appears as dependency")
return candidates
def verify_javascript(
candidates: dict[str, dict[str, A... | openai-build-week | tools/verify/verify_phase_01_dependencies.py | Python | 248852770ecfab1ae6cc39557b50fcb18033c15251c8d851de69ff10f307019c | 1 | 896 |
] = defaultdict(set)
for parent, entry in locked.items():
for child in entry.get("dependencies", {}):
require(child in locked, f"{parent}: dependency {child} is not resolved")
parents_by_child[child].add(parent)
for name, approved in transitive.items():
require(parents_by... | openai-build-week | tools/verify/verify_phase_01_dependencies.py | Python | 232aedb440d4d992561ab1e43a93f9c4f8cbb073f7cb1a5bb568f7fb6aa7bf21 | 2 | 896 |
= {**canonical, "entry_digest_sha256": digest}
return result
def verify_python(
candidates: dict[str, dict[str, Any]], audit: dict[str, Any], requirements_path: Path, lock_path: Path
) -> tuple[int, int]:
direct = parse_requirements_in(requirements_path)
expected = {
name
for name in (... | openai-build-week | tools/verify/verify_phase_01_dependencies.py | Python | bfa5b65cea44f61052f900a168910457eb194c3f4ceddee12c04e71e2ca4b79a | 3 | 896 |
"]
require(match.group(1) == expected_url, "Package.swift swift-json-schema URL drift")
require(match.group(2) == candidate["proposed_version"], "Package.swift swift-json-schema exact version drift")
else:
require(not declarations, "rejected/fallback Swift package remains in Package.swift")
... | openai-build-week | tools/verify/verify_phase_01_dependencies.py | Python | 33c11f5d01c1f24eb667fc3df4f92d9acf46e90ae242f68e6a969f86ecfd3ae3 | 4 | 896 |
"--swift-package", type=Path, required=True)
parser.add_argument("--swift-resolved", type=Path, required=True)
return parser.parse_args()
def main() -> int:
args = parse_args()
try:
audit = load_json(args.audit)
candidates = verify_audit(audit)
js = verify_javascript(candidates... | openai-build-week | tools/verify/verify_phase_01_dependencies.py | Python | 85db8274497c144f0a148b8db81d5c29a138da2288024ad48b24a3f47756a502 | 5 | 241 |
import copy
import hashlib
import json
import os
import shutil
import subprocess
import tempfile
import unittest
from pathlib import Path
from tools.verify.compare_results import ComparisonError, compare_runner_results, verify_fixture
ROOT = Path(__file__).resolve().parents[3]
MANIFESTS = (
ROOT / "fixtures/cont... | openai-build-week | tools/verify/tests/test_compare_results.py | Python | f98634baf742b491c90d6fdf9fe1601c8ed9c52b770747e47ff9f63740970eb4 | 0 | 896 |
}
baseline = result_for(MANIFESTS[1])
mutations["missing_case"] = baseline["case_results"][:-1]
mutations["extra_case"] = baseline["case_results"] + [dict(baseline["case_results"][-1], case_id="jcs.zzz-extra")]
mutations["duplicate_case"] = baseline["case_results"] + [baseline["case_resu... | openai-build-week | tools/verify/tests/test_compare_results.py | Python | d8e040abbee36ec390184d7e63116f013209f6bdd24f6fa1fe74c101a293073f | 1 | 896 |
self.write_result(temporary, "a.json", result_for(MANIFESTS[1]))
python_b = self.write_result(temporary, "b.json", result_for(MANIFESTS[1]))
with self.assertRaisesRegex(ComparisonError, "duplicate_runtime"):
compare_runner_results(MANIFESTS[1], [python_a, python_b], repo_root=ROO... | openai-build-week | tools/verify/tests/test_compare_results.py | Python | 5db9684d94aa72bea1c0f776135ea7a16c6283cbe3b8dd2425dd8a2ea23f64b3 | 2 | 896 |
= self.run_mode(
"gate",
REROOM_PHASE01_AUTOMATED_PREFLIGHT=str(preflight),
REROOM_PHASE01_EVIDENCE_DIR=str(evidence),
)
self.assertNotEqual(result.returncode, 0)
self.assertIn("GREEN,RED", result.stderr)
def test_full_boundary_con... | openai-build-week | tools/verify/tests/test_compare_results.py | Python | 6f3f304fc81fa6f85c4fd4e6916e6f0a307dd78096bf639e2fcefb7ebd54a6d1 | 3 | 147 |
import json
import unittest
from pathlib import Path
from jsonschema import Draft202012Validator
ROOT = Path(__file__).resolve().parents[3]
TEMPLATES = ROOT / "evidence" / "templates"
FIXTURES = ROOT / "evidence" / "fixtures"
SHA_A = "a" * 64
SHA_B = "b" * 64
SHA_C = "c" * 64
def load_schema(name: str) -> dict:
... | openai-build-week | tools/verify/tests/test_evidence_templates.py | Python | faf83413d767647f54f50e8ff6694d0ec5260eafc168453444b9382f228e3718 | 0 | 896 |
gate_id": "GATE-002",
"decision": decision,
"decision_actor": "human",
"report_sha256": SHA_A,
"reviewed_at_utc": "2026-07-16T10:20:30Z",
"checklist_items": items,
"signature_sha256": SHA_B,
}
class GateReportSchemaTests(unittest.TestCase):
@classmethod
def ... | openai-build-week | tools/verify/tests/test_evidence_templates.py | Python | f75ffcf3d260edf2eb950ea596ee152d1b015f8e7ce7db86abaee564e0700dca | 1 | 896 |
))
def test_rejects_automation_unsigned_unknown_and_extra_properties(self) -> None:
automation = base_checklist()
automation["decision_actor"] = "automation"
self.assert_rejected(automation)
unsigned = base_checklist()
unsigned["signature_sha256"] = None
self.assert_... | openai-build-week | tools/verify/tests/test_evidence_templates.py | Python | c29137572b956275166230fb40701738b4ab57c49011f9e6fc6c503cb2943b34 | 2 | 735 |
# AGENTS.md
## Learned User Preferences
- Preserve the existing/production look and behavior; when a change alters the visual design, expect a request to revert it completely rather than iterate.
- All user-facing copy/text must be verified by the user before changing it; propose exact before/after strings instead of... | portfolio | AGENTS.md | Markdown | 392fd4c1c4f53622cdb945580c5067c729526f27ff2cd06942da7d7a0a839e04 | 0 | 592 |
{
"$schema": "https://biomejs.dev/schemas/2.0.6/schema.json",
"files": {
"ignoreUnknown": true,
"includes": [
"**/*.ts",
"**/*.tsx",
"**/*.js",
"**/*.jsx",
"**/*.json",
"**/*.css",
"!.next",
"!.vercel",
"!node_modules",
"!data",
"!**/*.json"
... | portfolio | biome.json | JSON | 1c19f942cc4fc44984af21dbc2926e8708bdf5b407d44018790564c03bcc8a6c | 0 | 368 |
import bundleAnalyzer from '@next/bundle-analyzer';
import type { NextConfig } from 'next';
import { createSecureHeaders } from 'next-secure-headers';
const withBundleAnalyzer = bundleAnalyzer({
enabled: process.env.ANALYZE === 'true',
});
const nextConfig: NextConfig = {
images: {
formats: ['image/avif', 'im... | portfolio | next.config.ts | TypeScript | cd6612891d47efc52c2ec3933d014474cc27495d756482aec605e9203bde9c3d | 0 | 515 |
{
"name": "portfolio",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "bun --bun next dev --turbopack",
"build": "bun --bun next build",
"analyze": "ANALYZE=true bun --bun next build",
"lint": "biome check .",
"format": "biome format --write .",
"typecheck": "tsc --noEmit"
},... | portfolio | package.json | JSON | b68111d208e5d1c34d5989fc66502f12ad5472dbb238b1bac95a9dc33fdd31f9 | 0 | 697 |
# Portfolio
Personal portfolio for Julian Schmidt — [julianschmidt.cv](https://julianschmidt.cv/).
## Stack
- Next.js 16 (App Router) + React 19
- TypeScript (strict)
- Tailwind CSS 3 + shadcn/ui primitives
- Motion (framer-motion successor) with `LazyMotion` and `prefers-reduced-motion`
- Biome / Ultracite for lint... | portfolio | README.md | Markdown | 7717ab44e56a7a523a02007c5f923b6a080c1e11d426d696f3eff4023d1d715e | 0 | 640 |
import typography from '@tailwindcss/typography';
import type { Config } from 'tailwindcss';
import { fontFamily } from 'tailwindcss/defaultTheme';
import animate from 'tailwindcss-animate';
export default {
darkMode: ['class'],
content: [
'./app/**/*.{js,ts,jsx,tsx,mdx}',
'./components/**/*.{js,ts,jsx,tsx... | portfolio | tailwind.config.ts | TypeScript | 342d853e87b4c5407debf500d9362badea6be42df2d30cf14f0bda0b0433f575 | 0 | 896 |
(var(--radius) - 4px)',
},
fontFamily: {
sans: ['Twemoji Country Flags', 'var(--font-sans)', ...fontFamily.sans],
mono: ['var(--font-mono)', ...fontFamily.mono],
},
typography: (theme: (path: string) => string) => ({
DEFAULT: {
css: {
'h1, h2, h3, h4... | portfolio | tailwind.config.ts | TypeScript | 0102c359a3c46a04edc89fb142831a3f9ab0626854261d94ab04d4d674681eaf | 1 | 210 |
{
"compilerOptions": {
"target": "ES2017",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModule... | portfolio | tsconfig.json | JSON | 13bab8f21e59d6b9065b117861c76e526030c5251be40ad5cb7f8e6bc4a92101 | 0 | 222 |
{
"crons": [
{
"path": "/api/cron/spotify",
"schedule": "0 12 * * *"
}
]
} | portfolio | vercel.json | JSON | 91fefa239d83f1933b7d620f52605855fe15e790b3770921e3aa1afc5e24981a | 0 | 34 |
{
"lastRun": "2026-06-30T10:51:07Z",
"transcripts": {
"0d54f90b-2920-45ff-888e-32ae8589c9f6": {
"path": "C:\\Users\\julia\\.cursor\\projects\\c-Development-Private-portfolio\\agent-transcripts\\0d54f90b-2920-45ff-8... | portfolio | .cursor/hooks/state/continual-learning-index.json | JSON | 2ad25787e2dc20e88878148ebd635970bfd2b4e98eb03262c5cbaa27f37ec255 | 0 | 896 |
fd2-4053-afb0-405c5cfb9c12.jsonl",
"mtime": "2026-02-25T08:45:19Z"
},
"5d83c5b7-5362-4287-b151-250b9b7f88a9": {
... | portfolio | .cursor/hooks/state/continual-learning-index.json | JSON | 9dbacd3f832a6fbd855807496b9f0d939cb9651a1e27f8a12ec04468c14b32f8 | 1 | 816 |
{
"version": 1,
"lastRunAtMs": 1782816399805,
"turnsSinceLastRun": 9,
"lastTranscriptMtimeMs": 1782816399097,
"lastProcessedGenerationId": "75eeecc0-02f0-4462-8014-54d8712453d5",
"trialStartedAtMs": null
}
| portfolio | .cursor/hooks/state/continual-learning.json | JSON | 75074235a1a5a739530e2038f29be06dd5bfebb80fdc1afce8c6708bb3acf1cf | 0 | 50 |
'use client';
import { Button } from '@julian-at/components/ui/button';
export default function ErrorPage({
reset,
}: {
error: Error & { digest?: string };
reset: () => void;
}) {
return (
<div className="flex min-h-[50vh] flex-col items-center justify-center gap-4 px-4">
<h1 className="font-semibol... | portfolio | app/error.tsx | TypeScript | 1c45ef43cdae54aade9ebb14548f6da6733e6a39198010bb49bb99264f02ec97 | 0 | 160 |
'use client';
export default function GlobalError({
reset,
}: {
error: Error & { digest?: string };
reset: () => void;
}) {
return (
<html lang="en">
<body className="flex min-h-screen flex-col items-center justify-center gap-4 bg-background p-4">
<h1 className="font-semibold text-xl">Somethi... | portfolio | app/global-error.tsx | TypeScript | bd732f06dc1b51238c07ecdf7292f87077ddd103ab5acdfba1b3776caa890a1a | 0 | 223 |
@tailwind base;
@tailwind components;
@tailwind utilities;
body {
font-family: Arial, Helvetica, sans-serif;
}
@layer base {
:root {
--background: 0 0% 100%;
--foreground: 0 0% 3.9%;
--card: 0 0% 100%;
--card-foreground: 0 0% 3.9%;
--popover: 0 0% 100%;
--popover-foreground: 0 0% 3.9%;
... | portfolio | app/globals.css | CSS | a741737acaa5af938cc3d2cea7d8c4ffa774d62ecfd911386d8cead9a270acdd | 0 | 896 |
foreground: 0 0% 98%;
--popover: 0 0% 3.9%;
--popover-foreground: 0 0% 98%;
--primary: 0 0% 98%;
--primary-foreground: 0 0% 9%;
--secondary: 0 0% 14.9%;
--secondary-foreground: 0 0% 98%;
--muted: 0 0% 14.9%;
--muted-foreground: 0 0% 63.9%;
--accent: 0 0% 14.9%;
--accent-foregroun... | portfolio | app/globals.css | CSS | c9c88aacdfeeade24e6e20319406b9d315905634155ba340eaf4285012bd8cb9 | 1 | 896 |
rgba(115, 138, 148, 0.4);
}
::selection {
background-color: hsl(var(--primary));
color: hsl(var(--primary-foreground));
}
.dashed-line-top {
@apply absolute top-4 left-0 h-px w-full border-t border-dashed sm:top-8;
}
.dashed-line-left {
@apply absolute top-0 left-4 h-full w-px border-r border-dashed sm:left-... | portfolio | app/globals.css | CSS | 451f448c45c04524b4220a79f8ed10bd0ff2f884b305c99460c35def7789ffeb | 2 | 611 |
import '@julian-at/app/globals.css';
import { AnalyticsDeferred } from '@julian-at/components/analytics-deferred';
import { ScrollToTop } from '@julian-at/components/scroll-to-top';
import { Toaster } from '@julian-at/components/ui/sonner';
import { WindowsEmojiPolyfillDynamic } from '@julian-at/components/windows-emoj... | portfolio | app/layout.tsx | TypeScript | c5a3a4447fbe816eab08e81743c67c2b665183e777681904fcc113c981d716d4 | 0 | 598 |
import { Section } from '@julian-at/components/section';
import { Skeleton } from '@julian-at/components/ui/skeleton';
export default function Loading() {
return (
<>
<Section className="space-y-4">
<Skeleton className="mx-auto h-10 w-2/3" />
<Skeleton className="mx-auto h-6 w-1/2" />
... | portfolio | app/loading.tsx | TypeScript | e5ec622dbe65d984fc23e9a42cc654b69167db2187f8ca22e6f6c14b174884fc | 0 | 165 |
import { Button } from '@julian-at/components/ui/button';
import Image from 'next/image';
import Link from 'next/link';
export default function NotFound() {
return (
<div className="container mx-auto min-h-screen px-4 pt-24 sm:border-x">
<div
className={
'relative flex min-h-[60vh] flex-c... | portfolio | app/not-found.tsx | TypeScript | 1359508a1cb61f5c15ac566523316af11549a27f44b51cbae4d85491720edd93 | 0 | 509 |
import type { MetadataRoute } from 'next';
const baseUrl = process.env.VERCEL_PROJECT_PRODUCTION_URL
? `https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`
: 'https://julianschmidt.cv';
export default function robots(): MetadataRoute.Robots {
return {
rules: {
userAgent: '*',
allow: '/',
... | portfolio | app/robots.ts | TypeScript | 8dabf6ca2294c848bb7f08c91a01c4a03bcdfebc37804cba965fd28ae474290d | 0 | 100 |
import { getRoles } from '@julian-at/lib/data';
import type { MetadataRoute } from 'next';
const baseUrl = process.env.VERCEL_PROJECT_PRODUCTION_URL
? `https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`
: 'https://julianschmidt.cv';
export default function sitemap(): MetadataRoute.Sitemap {
const staticRoute... | portfolio | app/sitemap.ts | TypeScript | 1ac3d8375e5b1a88faacd24645dbc619213d1fa0df07c110e31e8f3e0c1559ec | 0 | 260 |
import { Footer } from '@julian-at/components/footer';
import { Header } from '@julian-at/components/header';
import type { ReactNode } from 'react';
type FrontendLayoutProps = {
children: ReactNode;
};
const FrontendLayout = ({ children }: FrontendLayoutProps) => (
<>
<Header />
<div className="container... | portfolio | app/(frontend)/layout.tsx | TypeScript | 4385d221bf2f6ce8fabb751eba54ada92aae7163ca35626e1cecd65f4d64ff95 | 0 | 134 |
import { FeaturedNews } from '@julian-at/components/home/featured-news';
import { Feed } from '@julian-at/components/home/feed';
import { GitHubActivity } from '@julian-at/components/home/github-activity';
import { Hero } from '@julian-at/components/home/hero';
import { RecentBook } from '@julian-at/components/home/rec... | portfolio | app/(frontend)/(home)/page.tsx | TypeScript | 7e8d09074117c15f60347b83cddf20cbea65e158c94935deb76ab09cfdacbb2a | 0 | 896 |
4 py-8 sm:px-8">
{Array.from({ length: 10 }).map((_, i) => (
<Skeleton key={i} className="h-4 w-full max-w-xl font-mono" />
))}
<div className="h-40" />
</Section>
);
}
const Home = () => {
const homePage = getGlobal<HomePage>('home-page');
return (
<>
<Hero
prior... | portfolio | app/(frontend)/(home)/page.tsx | TypeScript | a894b8c3e50fdb76acd10285a16cd6911ebddec5fa2eb6d919a5503651ed1815 | 1 | 263 |
import { AboutContentFallback } from '@julian-at/components/about/about-content-fallback';
import { Books } from '@julian-at/components/about/books';
import { BooksSkeleton } from '@julian-at/components/about/books/books-skeleton';
import Certificates from '@julian-at/components/about/certificates';
import { Content } ... | portfolio | app/(frontend)/about/page.tsx | TypeScript | 7d23abd4257429cc5bfff40ad75cb11f15e84dca6b735746837085e07165b987 | 0 | 492 |
import { CalEmbedDynamic } from '@julian-at/components/contact/cal-embed-dynamic';
import { Hero } from '@julian-at/components/contact/hero';
import { Section } from '@julian-at/components/section';
import { Skeleton } from '@julian-at/components/ui/skeleton';
import { getGlobal } from '@julian-at/lib/data';
import { S... | portfolio | app/(frontend)/contact/page.tsx | TypeScript | e208e35216a4de7ef9f096ab1625432a2e82f2f357a570e584758816e4717e27 | 0 | 470 |
import { Apps } from '@julian-at/components/projects/apps';
import { Hackathons } from '@julian-at/components/projects/hackathons';
import { Hero } from '@julian-at/components/projects/hero';
import { Section } from '@julian-at/components/section';
import { Skeleton } from '@julian-at/components/ui/skeleton';
import { ... | portfolio | app/(frontend)/projects/page.tsx | TypeScript | 971586a11d3013846f8e88afec2e5370dec894a596ee273674e2c98ead67a04c | 0 | 862 |
import { Section } from '@julian-at/components/section';
import { Apps } from '@julian-at/components/stack/apps';
import { Attribution } from '@julian-at/components/stack/attribution';
import { Hero } from '@julian-at/components/stack/hero';
import { Skeleton } from '@julian-at/components/ui/skeleton';
import { getTool... | portfolio | app/(frontend)/stack/page.tsx | TypeScript | 17842ec485d8835d31ac5281212b1afa3f59a1d41e30399a2a9dbc9fe10abac5 | 0 | 625 |
import { Section } from '@julian-at/components/section';
import { Skeleton } from '@julian-at/components/ui/skeleton';
import { Clients } from '@julian-at/components/work/clients';
import { Hero } from '@julian-at/components/work/hero';
import { getClients, getRoles } from '@julian-at/lib/data';
import dynamic from 'ne... | portfolio | app/(frontend)/work/page.tsx | TypeScript | 15762b737c0f2e3b4cecbbbed58fcc9a6752228711421997ae59ab0e65dc7296 | 0 | 896 |
mx-auto h-4 w-64" />
<div className="flex flex-wrap items-center justify-center gap-2">
{Array.from({ length: 12 }).map((_, i) => (
<Skeleton key={i} className="h-8 w-24 rounded-full" />
))}
</div>
</Section>
</>
);
}
const Work = () => (
<>
<Hero />
... | portfolio | app/(frontend)/work/page.tsx | TypeScript | 0dea050658dfa64f1b370f3b0fdcfd7d63c32e5fddcfedcba3777d0e6a047bc9 | 1 | 135 |
import { Prose } from '@julian-at/components/prose';
import { Section } from '@julian-at/components/section';
import { HeroSection } from '@julian-at/components/sections/hero';
import { ExternalLink } from '@julian-at/components/ui/external-link';
import { LogoImage } from '@julian-at/components/ui/logo-image';
import ... | portfolio | app/(frontend)/work/[role]/page.tsx | TypeScript | cbcda817fa50ecd177eaf39be6ae76685acd0b679c06d3ce97933a9bad1b158e | 0 | 896 |
<HeroSection
image={
imageUrl ? (
<LogoImage
src={imageUrl}
width={48}
height={48}
alt={role.title}
fallback={role.company}
variant={role.invertLogo ? 'invert' : 'default'}
className="block h-... | portfolio | app/(frontend)/work/[role]/page.tsx | TypeScript | 24825440c7c54cd8e6d646585138144db106db9e6fb80f83c0c2d2bb8e395a99 | 1 | 471 |
'use server';
import { parseError } from '@julian-at/lib/utils';
import { endOfWeek, subDays, subWeeks } from 'date-fns';
import ky from 'ky';
import { unstable_cache } from 'next/cache';
import type { Activity } from 'rsc-activity-calendar';
export type GitHubProperties = {
total: number;
data: Activity[];
};
t... | portfolio | app/actions/get-github-activity.ts | TypeScript | fbfa0d4d44ffeef8d212e7291e1987c8074a7787ff535ea54d5b33e9babf0879 | 0 | 439 |
import { parseError } from '@julian-at/lib/utils';
import ky from 'ky';
import type { Activity } from 'rsc-activity-calendar';
export type GitHubProperties = {
total: number;
data: Activity[];
};
type GitHubContributionsApiResponse = {
contributions: Activity[];
};
export const maxDuration = 60;
export const r... | portfolio | app/api/cron/github/route.ts | TypeScript | f824a1bd218368af964d2891316b50be54be74ec14f95ca3d7755a9657a9b36f | 0 | 209 |
import { env } from '@julian-at/lib/env';
import { parseError } from '@julian-at/lib/utils';
import { updateEdgeConfig } from '@julian-at/lib/vercel';
import ky from 'ky';
export type SpotifyProperties = {
lastUpdated: number;
name: string;
artist: string;
image: string;
href: string;
};
type SpotifyPlaying... | portfolio | app/api/cron/spotify/route.ts | TypeScript | e6a863df8d6594e861f04b9bc44ce3b2fafc999132e40cb1d429c84fbef8dd38 | 0 | 550 |
import type { SpotifyProperties } from '@julian-at/app/api/cron/spotify/route';
import { getCurrentlyPlaying } from '@julian-at/lib/spotify';
import { Redis } from '@upstash/redis';
import { get } from '@vercel/edge-config';
import { after } from 'next/server';
const SPOTIFY_CACHE_KEY = 'spotify:track';
const CACHE_TT... | portfolio | app/api/spotify/now/route.ts | TypeScript | a831bd8ca7a9ee52b049742a03cc2f22350f1d61b9395e5955188cc1d0809869 | 0 | 519 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.