Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,20 @@ jobs:
- name: Install Python and dependencies
run: uv sync --locked --all-groups

- name: Lint Python files
run: uv run ruff check src scripts tests

- name: Check Python formatting
run: uv run ruff format --check src scripts tests

- name: Compile Python files
run: uv run python -m compileall -q src scripts tests

- name: Verify generated showcase is current
run: |
uv run python scripts/build_static_showcase.py
git diff --exit-code -- docs

- name: Run unit tests
run: uv run pytest -q --ignore=tests/test_e2e.py

Expand Down
64 changes: 64 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: ProtocolSmith static showcase

on:
push:
branches:
- main
paths:
- "artifacts/**"
- "assets/**"
- "docs/**"
- "scripts/build_static_showcase.py"
- "templates/dashboard.html"
- ".github/workflows/pages.yml"
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: pages
cancel-in-progress: true

jobs:
deploy:
name: Build and deploy recorded-evidence showcase
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest

steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e
with:
version: "0.13.6"
enable-cache: true

- name: Install Python and dependencies
run: uv sync --locked --all-groups

- name: Rebuild static showcase
run: uv run python scripts/build_static_showcase.py

- name: Confirm generated site is committed
run: git diff --exit-code -- docs

- name: Configure GitHub Pages
uses: actions/configure-pages@v5
with:
enablement: true

- name: Upload static showcase
uses: actions/upload-pages-artifact@v3
with:
path: docs

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
57 changes: 57 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Changelog

All notable changes to ProtocolSmith will be documented in this file.

The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and the project uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [0.1.0] - 2026-11-17

### Added

- A controlled laboratory containing intentionally incompatible Orders API v1
and v2 contracts.
- Differential black-box evidence capture across success, collection-size, and
missing-customer cases.
- Meta Muse Spark 1.3 structured reasoning for compatibility hypotheses,
constrained adapter compilation, and active experiment design.
- A six-case causal-control experiment for the `page_size` to `limit` request
parameter mapping.
- An allowlisted declarative adapter specification and deterministic bridge
runtime.
- A machine-readable verification receipt containing 15 passing controlled
contract checks and an explicit information-loss warning.
- An interactive local dashboard and a one-command demo launcher.
- A serverless GitHub Pages showcase that honestly replays the committed
verification receipt without presenting it as a live backend.
- Reliable launcher handling for existing ProtocolSmith services, occupied
default ports, headless environments, and browser-open failures.
- Unit, integration, and live HTTP end-to-end tests in GitHub Actions.
- Security guidance, a reviewer demo guide, a controlled-benchmark evidence
note, and draft v0.1.0 release material.

### Security

- Remote targets are denied unless explicitly enabled.
- Redirects are disabled, HTTP requests have timeouts, and response size is
bounded.
- Model output is validated as typed data and is never executed as generated
Python source.

### Known limitations

- The current evaluation covers one synthetic Orders domain and one known
endpoint family.
- Only the request-parameter rename is tested with the six-case causal-control
matrix; the other rules are supported by paired observations and
deterministic replay, not independent causal probes.
- The modern API removes time-of-day information. The bridge reconstructs
midnight UTC and discloses the loss rather than claiming exact equivalence.
- Non-null pagination tokens, non-USD currencies, additional status values,
authentication, and arbitrary production API surfaces are outside the
current benchmark.

[Unreleased]: https://github.com/mkhan48-debug/protocolsmith-meta-hackathon/compare/v0.1.0...HEAD
[0.1.0]: https://github.com/mkhan48-debug/protocolsmith-meta-hackathon/releases/tag/v0.1.0
72 changes: 72 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# Contributing to ProtocolSmith

Thank you for helping make ProtocolSmith more rigorous, reproducible, and safe.
The most useful contributions expand evidence or reduce uncertainty without
overstating what the prototype can do.

## Development setup

```bash
git clone https://github.com/mkhan48-debug/protocolsmith-meta-hackathon.git
cd protocolsmith-meta-hackathon
uv sync --locked --all-groups
uv run pytest -q
```

Run the local demonstration with `uv run protocolsmith`. Replaying committed
artifacts uses synthetic services and does not require a Meta API key.

## Before opening a change

- Keep the default workflow local and synthetic.
- Probe only systems you own or have explicit permission to test.
- Do not add credentials, personal data, private endpoints, or production
responses to fixtures, logs, screenshots, issues, or commits.
- Preserve the separation between model reasoning and deterministic execution.
- Prefer explicit rejection or uncertainty over an unsupported compatibility
guess.
- Keep public claims scoped to the evidence in
[`docs/CONTROLLED_BENCHMARK.md`](docs/CONTROLLED_BENCHMARK.md).

For vulnerability reports, follow [SECURITY.md](SECURITY.md) instead of opening
a public issue.

## Tests

Run the same core checks used for release review:

```bash
uv run python -m compileall -q src scripts tests
uv run pytest -q
```

Changes to launcher behavior should include isolated launcher tests. Changes to
adapter behavior should include fail-closed cases as well as successful cases.
Changes to the proof path should preserve a real local HTTP-stack test.

## Evidence and artifact changes

The JSON files in `artifacts/` are experimental evidence, not ordinary sample
configuration. If a change regenerates them:

1. Follow [`docs/REGENERATING_ARTIFACTS.md`](docs/REGENERATING_ARTIFACTS.md).
2. Review every artifact diff.
3. Confirm timestamps, model identifiers, controls, receipt totals, and known
losses.
4. Explain in the pull request why the new run should replace the previous
evidence.
5. Never hand-edit a model-assisted artifact to manufacture a passing result.

## Pull requests

A focused pull request should include:

- The problem and intended evidence boundary
- The implementation or documentation change
- Tests or reproduction commands
- Any new uncertainty, risk, or unsupported behavior
- Screenshots only when they contain no secrets or private data

Do not combine unrelated cleanup with a behavioral change. If the public demo
or claim boundary changes, update the README, controlled-benchmark note, and
release material in the same pull request.
Loading
Loading