Skip to content

Deploy guide in the contract section; nearhackathon.md - #3

Merged
gabehamilton merged 1 commit into
mainfrom
gabehamilton/deploy-docs
Nov 12, 2026
Merged

gabehamilton merged 1 commit into
mainfrom
gabehamilton/deploy-docs

Conversation

@gabehamilton

Copy link
Copy Markdown
Contributor

Summary

  • Adds a "Make it yours" subsection to the contract section: configure a policy (metrics, terms, recipes) and deploy the Wasm on NEAR for your own resource contention problem. Includes an example config.json, build/deploy commands, and a pre-deployment caveats note. Uses the existing two-level fade-in.
  • Adds nearhackathon.md (November 2026 NEAR Hackathon, AI Security & Defense, this repo plus the matching formal verification in shared-pool: formal verification of shared-pool-controls v1.0.0 formalver#31, and the two-team membership note for gabehamilton / invest-in-near) and links it from the README.
  • Points the page's specification/resource links at main instead of the old feature branch.

Notes

  • The deploy commands use near-cli-rs syntax and have not been run against a network; the guide tells readers to check --help for their version.
  • The example config was checked against the validator's rules by reading, not loaded into the contract.

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@gabehamilton
gabehamilton merged commit 80fb89e into main Nov 12, 2026
4 checks passed
@gabehamilton

Copy link
Copy Markdown
Contributor Author

Summary of Changes

Hello @gabehamilton, I'm the pr-review agent. I've reviewed this pull request — here's a summary to help you and other reviewers get up to speed, with the full code review to follow.

This PR adds a deployment-oriented “Make it yours” section to the static contract page, linking policy concepts to a JSON example and NEAR CLI commands. It also adds a hackathon submission document, links it from the README, includes the new guide in the existing reveal animation, and updates most historical feature-branch links to main.

Highlights

  • Configurable policy guide: The UI now explains metrics, scoring terms, recipes, a sample config, and lock deployment.
  • Submission documentation: A new nearhackathon.md records the submission scope, verification status, and team membership.
  • Link maintenance: Most specification, trace, test, and guide links now reference main.
Changelog
  • README.md
    • Adds a link to the hackathon submission document.
  • nearhackathon.md
    • Adds submission scope, verification status, and team-membership context.
  • ui/app.js
    • Adds the deployment guide to the existing intersection-observer reveal groups.
  • ui/base.css
    • Adds grid, code-panel, and responsive styling for the deployment guide.
  • ui/index.html
    • Adds the policy/deployment guide and changes several external repository links to main.

Automated review by the pr-review agent (Codex CLI + GPT-5.6 Terra). Reply on any review thread to discuss a finding.

@gabehamilton gabehamilton left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

The PR usefully exposes a deployment path and hackathon context, but the new deployment guide is not complete enough to yield a functioning contract: it configures an executor while omitting the required executor/adapter deployment and initialization. It also leaves one newly touched resource link pointing to the old feature branch. Address those documentation issues before merging so readers can safely follow the promoted deployment flow.

Comment thread ui/index.html
<pre><code># 1. Build both Wasm contracts and a provenance manifest
./scripts/build.sh

# 2. Deploy and initialize the lock in one transaction

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Document deployment and initialization of the configured executor

The command sequence deploys only pool_contract.wasm, even though the example policy binds every recipe to api-gateway.near. A fresh user following these steps has no initialized contract at that account which can accept execute/status; the first dispatch therefore fails, the lock records an unknown outcome, and the reservation cannot be released without authoritative executor evidence. The existing deployment preparation section requires deploying and initializing both contracts. Add an explicit adapter/executor deployment and initialization step (including its lock and operator configuration), or make the guide clearly require a pre-existing, initialized compatible adapter before the lock command.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 1262842 (PR #5, since #3 had already merged): the command block now has a step that deploys and initializes the executor (new with lock and operator), notes that the bundled adapter is synthetic, and says a missing executor leaves the first dispatch Unknown with the reservation held.

Comment thread ui/index.html
<details><summary>Inspect the last Rust decision <span aria-hidden="true">+</span></summary><div class="detail-body"><pre id="raw">Run a scenario decision to inspect its response.</pre></div></details>
</div>
<div class="resource-links"><a href="https://github.com/difflabai/shared-pool-controls/blob/feat/shared-pool-controls/docs/spec.md"><span>Read the specification</span><span aria-hidden="true">↗</span></a><a href="https://github.com/difflabai/shared-pool-controls/tree/feat/shared-pool-controls/crates/core"><span>Explore the Rust core</span><span aria-hidden="true">↗</span></a><a href="live.html"><span>Open the NEAR console</span><span aria-hidden="true">↗</span></a></div>
<div class="resource-links"><a href="https://github.com/difflabai/shared-pool-controls/blob/main/docs/spec.md"><span>Read the specification</span><span aria-hidden="true">↗</span></a><a href="https://github.com/difflabai/shared-pool-controls/tree/feat/shared-pool-controls/crates/core"><span>Explore the Rust core</span><span aria-hidden="true">↗</span></a><a href="live.html"><span>Open the NEAR console</span><span aria-hidden="true">↗</span></a></div>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

low

Point the Rust core link at main

This resource link still targets feat/shared-pool-controls, while the surrounding links were changed to main and the PR intends to retire the old branch references. If that feature branch is deleted after merge, “Explore the Rust core” becomes a dead link. Replace the branch segment with main.

Suggested change
<div class="resource-links"><a href="https://github.com/difflabai/shared-pool-controls/blob/main/docs/spec.md"><span>Read the specification</span><span aria-hidden="true">↗</span></a><a href="https://github.com/difflabai/shared-pool-controls/tree/feat/shared-pool-controls/crates/core"><span>Explore the Rust core</span><span aria-hidden="true">↗</span></a><a href="live.html"><span>Open the NEAR console</span><span aria-hidden="true">↗</span></a></div>
<div class="resource-links"><a href="https://github.com/difflabai/shared-pool-controls/blob/main/docs/spec.md"><span>Read the specification</span><span aria-hidden="true">↗</span></a><a href="https://github.com/difflabai/shared-pool-controls/tree/main/crates/core"><span>Explore the Rust core</span><span aria-hidden="true">↗</span></a><a href="live.html"><span>Open the NEAR console</span><span aria-hidden="true">↗</span></a></div>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 1262842 (PR #5): the Rust core link now points at main. No feat/shared-pool-controls references remain in the UI, README or docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant