OAKMONT Integration

5files
11min read
Sheet 43 of 47 · OAKMONT

Filesai-drafts.json · edit.json · measurement.json · report.json · +1

Fileai-drafts.jsonFileedit.jsonIgniteTestTool runs every test on your own machine. With an OAKMONT API key it hands a few jobs to OAKMONT: it writes storyboards from one sentence, renders shorts, signs measurements so anyone can check them, writes scenario drafts from a menu map and keeps the run history of every machine and CI job. Without a key none of these jobs run, and every test works as before.

Ignited Studios makes the tool and runs the tests. OAKMONT signs the result, keeps the copy and runs the verify page, the drafts and the renders. Both companies have the same owner. A signature proves a report was not changed after it was issued, not that somebody independent ran the test.

What OAKMONT itself offers for the tool is on IgniteTestTool on OAKMONT.

The key

Create a key in the OAKMONT portal under Developer API. It starts with oak_live_. Paste it into Settings > OAKMONT, or set ITT_OAKMONT_KEY, which wins over the saved one. In CI set ITT_OAKMONT_KEY, and ITT_OAKMONT_URL when the address is not the default.

config.jsonDefault
oakmontApiKeyemptythe account that writes, signs and pays the AI minutes
oakmontApiUrlhttps://oakmonttechnologies.comwhere the calls go, a trailing /api is fine
aiAttempts2tries for a storyboard or a part of the menu map, 1 to 3
aiFeedbacktruesend boards and drafts you edited back to OAKMONT
historyToOakmontfalsesend every run record, see Run history
historyProjectemptythe project the records go under
renderTargetlocalcloud renders on OAKMONT when a call has no target=

Fileai-drafts.jsonThe key only ever goes into the Authorization header. It is never written to a log line, a report, an export, a draft or ai-drafts.json.

When a call does not work the reason is a sentence:

AnswerSentence
401The OAKMONT key was refused.
402No AI minutes left on this OAKMONT account.
429OAKMONT is getting too many requests from this key. Try again in a minute.
no answerCould not reach OAKMONT.

AI minutes

Everything OAKMONT does with a model or a renderer is paid in AI minutes, the one currency of the OAKMONT account behind the key: storyboards, scenario drafts, cloud renders and the editor's revisions. Packs are bought in the IgniteTestTool shop or on the API page of the OAKMONT portal and land on that account.

  • A storyboard or a draft is charged for the model's time. A board the model could not get past the check twice is not charged.
  • A render is charged for the time it took, once it is done. A failed or cancelled render costs nothing.
  • Before a render starts, OAKMONT checks its estimate against the minutes left and answers 402 when they do not cover it.

The tool still shows render credits in Settings > License (Check) and on /render/credits. OAKMONT works them out from the minutes left, so the tool stops at the same place either way.

Storyboards from one sentence

Type what should happen and OAKMONT writes a filming storyboard for /shoot. The tool runs the same check as /shoot/validate before it saves the board, and a board that fails goes back once with its errors.

curl -H "X-ITT-Token: $TOKEN" "localhost:8767/shoot/from-sentence?sentence=two+players+find+a+diamond,+a+creeper+blows+everything+up&cast=Alex,Steve&origin=120,64,-40&wait=1"
java -jar IgniteTestTool.jar storyboard "two players find a diamond, a creeper blows everything up" cast=Alex,Steve
  • Where it goes. storyboards/<name>.json in the data folder, ready for /shoot or /job/submit as it is. The name is name= or the first words of the sentence. A board nobody changed is replaced by the next one with that name, an edited one stays and the new one gets -2.
  • Voices. The spoken lines come back with the actor and the time they start, in storyboards/<name>.oakmont.json next to the board, ready as voiceLines for a render kit concept. The tool runs no text to speech.
  • Your fixes go back. /shoot/from-sentence/save?name=diamond with the edited board as the body saves it and sends it back once per new text, so the next boards get better. aiFeedback: false turns that off.
  • A board that still fails after the last try is saved anyway with its problems in the answer, to fix by hand.
EndpointParameters
/shoot/from-sentencesentence (3-500 characters), cast (up to 8 Minecraft names), origin=x,y,z, duration=20 (5-120 s), name, wait=1
/shoot/from-sentence/statusjob, default the latest
/shoot/from-sentence/feedbackname, sends that board as it is now
/shoot/from-sentence/savename, the board as the body

Cast names are checked as Minecraft names before anything is sent. The command line version exits 0 when the board passes the check.

Scenario drafts from a crawl

After a menu crawl, Write scenarios from this map on the Crawl page sends the map to OAKMONT and gets YAML scenarios back. Every file goes through the same check as check on the command line, and a failing one goes back once with its errors.

curl -H "X-ITT-Token: $TOKEN" "localhost:8767/ai/scenarios/start?job=crawl-1&plugin=IgniteZombies"
curl "localhost:8767/ai/scenarios/status"

They land in ai/<plugin>/ in the scenario folder, each starting with # draft - check before trusting. They are drafts: the model only knows what the map shows, so the checks are shallow, and a file that passes the check can still fail on the server. A folder run, run suite/ and CI leave ai/ out, so a draft never breaks a build. Save one after fixing it and the text you kept goes back to OAKMONT once.

Cloud renders

target=cloud on /produce, or renderTarget: cloud in Settings > Auto director, sends each short to OAKMONT instead of running the render kit here. No kit and no node are needed on this machine.

curl -H "X-ITT-Token: $TOKEN" "localhost:8767/produce?x=120&z=-40&target=cloud"
java -jar IgniteTestTool.jar run suite/ --deploy --release-short --cloud
  1. Concept

    The concept is written as for a local render. A copy with bare clip names goes to OAKMONT with the size and SHA-256 of every clip, at most 3 clips of up to 512 MB each.

  2. Upload

    Each clip goes up in parts. A part that does not get through is sent again, and when OAKMONT says which byte it has the file up to, the upload goes on from there. OAKMONT checks the SHA-256 of the whole file.

  3. Render

    The tool asks for the state every 3 seconds: the place in the queue, then the progress.

  4. Download

    The MP4 lands where a local render would: out/<name>.mp4 in the kit, or the film folder when no kit is set.

  • /produce checks the minutes before it films anything, so a run with nothing left stops at once instead of after the filming.
  • A render still going after renderTimeoutSeconds stays on OAKMONT. /render/cloud?id=rnd_...&out=D:/shorts/a.mp4 asks again and saves it once it is done.
  • --release-short and /director/cut take target=cloud too. A concept with voice lines sends the WAVs with the clips.
  • OAKMONT deletes the uploaded clips as soon as the render ends and keeps the MP4 for 7 days.

Cut by OAKMONT's editor

OAKMONT can also cut the short itself. An order in the OAKMONT portal takes the takes with their event log (the itt-edit/v1 format): what the bots did and when, the chat, and the server's lines such as deaths, explosions, joins and summons. The editor cuts on those moments, puts captions and the game's own sounds on them and times the music to the hits. A cut can then be changed in plain words, like "make the hook shorter", or with exact edits, and each version is rendered again.

Signing measurements

Filemeasurement.jsonFilereport.jsonA run that measures something writes measurement.json next to its report.json: the one-sentence result, the server, the conditions, what was not checked and the SHA-256 of the report.

Runkind
Load run and its rampminecraft-load
GUI fuzzerminecraft-fuzz
Hosting plan calibrationminecraft-calibration
Anticheat benchminecraft-anticheat
Version matrix with --protocolminecraft-compat
Update checkminecraft-update-gate
First minutes of a new playerminecraft-first-minutes

Filereport.jsonFilemeasurement.jsonWith a key, the tool sends OAKMONT the SHA-256 of report.json, the headline as the note and measurement.json without its signature block, so OAKMONT signs the figures too. report.json itself stays on your machine. OAKMONT refuses a measurement whose hash is not the one sent.

  • /audit signs a load or fuzz run when a key is set, sign=0 skips it. Calibrations sign each plan on its own.
  • /measurement/sign?job=anticheat-3 signs one of the other runs afterwards. A report changed since the run is not sent.
  • Filereceipt.jsonConfig keypreview.pngThe answer is kept as receipt.json. The verify link, the issue date and the expiry go into the measurement, the audit, preview.png and the kit config. The same bytes are never signed twice.
  • A signature is valid for 30 days.

The verify page, the badge and the card

Every signed result has a public verify page, oakmonttechnologies.com/verify/<receipt id>. It shows the measurement with its date and expiry and says whether the copy someone holds was changed. A signed audit prints the link and a QR code on its first page, and the footer reads "Tested with IgniteTestTool." over "Signed by OAKMONT.". OAKMONT's IgniteTestTool page shows what one holds, next to a real report.

The IgniteTestTool panel in the OAKMONT portal has a share block next to each signed result:

  • the verify link;
  • the badge as Markdown, HTML, BBCode for SpigotMC and BuiltByBit, or a plain link, with the receipt filled in;
  • the share card, 1200x630, the same image the verify link unfurls into.

The badge is drawn from the receipt every time it loads: bone while valid, an amber edge in its last 7 days, grey with the date struck through once it expires. A click opens the verify page. Calibrations also put a ready badge with Markdown and HTML into each plan, with the dates in the line, never just "Verified".

Run history

Turn on Run history in Settings > OAKMONT (historyToOakmont), or pass --history-oakmont in CI mode, and every scenario run goes to the OAKMONT account of the key. It works next to historyUploadUrl, the upload to a bucket of your own, either or both.

  • Records go in batches on a background thread. Each has an id, the SHA-256 of its line in the history file, so a record sent twice counts once.
  • A busy OAKMONT gets one more try. A refused key or a full quota is said once in the log. It never holds a run up or fails it; CI mode waits up to 15 s at the end.
  • The project is historyProject, else the deploy project's folder, else the scenario folder. In CI it is --history-project, else the GitHub repository name.
  • In CI the deploy label is ITT_DEPLOY_LABEL, else the commit from GITHUB_SHA or CI_COMMIT_SHA.
curl "localhost:8767/history/summary?days=7"

/history/summary answers with OAKMONT's summary of a project: runs, passed, failed, the flaky steps (failed and passed in the same window) and the last failures.

On OAKMONT the test runs page, /portal/test-runs, lists every run with flaky steps and failures by deploy. Two ready rules send an alert: a step that keeps failing, and a pass rate that drops after a deploy.

The panel

The IgniteTestTool page of the OAKMONT portal, /portal/itt, gathers what the tool left on the account: the keys and the last call, Minecraft monitors with their latest reading, the signed measurements with their share blocks, 7 days of runs, the AI minutes used this month and the last renders. It shows up once the account has anything from the tool. Before that, the page explains how to connect.

What is sent and what is not

Without a key none of the jobs below send anything. With one, each job sends only what it needs:

JobSentStays on your machine
Storyboardthe sentence, the cast names, the origin and the length; a retry adds the last board and the check's errorsanything from the server or the disk
Scenario draftsthe menus with paths, slots, names and lore, where each click leads, the dialogs, chat prompts and the risky clicks the crawl left alonestyled runs, head textures, timings, stats
Edited boards and draftsonly files that came from OAKMONT, once per new text, with what the check sayseverything else; aiFeedback: false sends nothing
Cloud renderthe concept with bare clip names, the clips and voice lines with their size and SHA-256the rest of the film folder
Signingthe SHA-256 of report.json, the headline and measurement.jsonreport.json, the replays and the captures
Run historytime, file, scenario, trigger, result, duration, step counts, server error count, the failed steps with their message, the deploy labelthe steps that passed, bot state, captures
The keythe Authorization headerlogs, reports, exports, drafts

One more thing leaves the machine without a key, and only when you ask for it: --share puts the text of a failed run on OAKBIN, OAKMONT's paste service, as an unlisted paste that expires after a week (shareExpires). Captures and images never go in.

Loading the index

Enter openUp Down moveEsc close