Publishing an artifact takes a script and then a proposal for its details
artifact:publish saves a bare draft, and the title, description and tags follow in a separate proposal. The script could take them from a list, leaving only publishing to approve.
What happens
npm run artifact:publish uploads an artifact's HTML and screenshot and saves a bare draft row. Its title, description, tags and authorship then go through a separate proposal, which also publishes it.
Where
scripts/publish-artifact.mts in goatboat, and registerArtifact in src/db/artifacts.
Why it matters
Two steps where one would do, and the details are written after the fact. Drafts aren't public, so their details don't need approval; only publishing does.
Possible fix
The same list pattern planned for assets:add in the phase 2 plan: the agent writes the artifact's title, description, tags and authorship into a small file in scratch/, and the script saves them with the draft. The one proposal left is the one that matters: publishing it. The two scripts could share the list format.
Related
- Changing one passage of a page means resending its whole bodyAn update proposal replaces a page's entire body, so an agent fixing one paragraph has to send every other paragraph back unchanged.
- Issue tracker: planIssues become their own type with a small tracker around them: /issues pages in the notes chrome, a sidebar grouped by area, four states, a priority, and commits that close them.
- An agent can't check a proposal without filing itThere's no dry run: the only way to find out whether a change is valid, or what its diff looks like, is to file the proposal.
- Phase 2 plan: assets as a libraryPhase 2 makes assets a searchable library of files in R2, plus a record of where each file is used, so any image or video can fill any role and an agent can find files by what they show. What changes in goatboat and the site, with before and after examples.