Skip to content
Open
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
24 changes: 24 additions & 0 deletions challenge-award-transparency-guard/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Challenge Award Transparency Guard

This module is a focused Scientific Bounty System slice for issue #18. It validates the post-arbitration, pre-publication step before a sponsor announces winners and releases award packets.

The guard checks that:

- final ranks have complete rubric-backed score breakdowns
- reviewer conflict summaries are disclosed and unresolved conflicts hold publication
- every solver team receives the result notice before public announcement
- appeal windows close before payout release
- award totals reconcile to cleared escrow
- IP transfer is gated on payout readiness
- private challenge announcements redact protected solver and artifact details

It uses only Node.js built-ins and synthetic data.

## Run

```bash
node challenge-award-transparency-guard/test.js
node challenge-award-transparency-guard/demo.js
```

The demo writes reviewer artifacts to `challenge-award-transparency-guard/reports/`.
27 changes: 27 additions & 0 deletions challenge-award-transparency-guard/demo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
"use strict";

const fs = require("node:fs");
const path = require("node:path");
const {
buildAwardTransparencyPacket,
buildMarkdownReport,
buildSvgSummary,
} = require("./index");
const { challenge } = require("./sample-data");

const reportsDir = path.join(__dirname, "reports");
fs.mkdirSync(reportsDir, { recursive: true });

const packet = buildAwardTransparencyPacket(challenge);
const markdown = buildMarkdownReport(packet);
const svg = buildSvgSummary(packet);

fs.writeFileSync(path.join(reportsDir, "award-transparency-packet.json"), `${JSON.stringify(packet, null, 2)}\n`);
fs.writeFileSync(path.join(reportsDir, "award-transparency-report.md"), markdown);
fs.writeFileSync(path.join(reportsDir, "summary.svg"), svg);

console.log(`status=${packet.status}`);
console.log(`blockers=${packet.blockers.length}`);
console.log(`warnings=${packet.warnings.length}`);
console.log(`auditDigest=${packet.auditDigest}`);
console.log(`reports=${reportsDir}`);
Loading