Repository navigation
Open
Labels
epic:surfacesEpic: behold as an infrastructure viewer inside other tools (INTENTIUS/behold#1049)surface:actionBelongs in the behold-action repo once it existswave:1Wave 1 of an epic's rollout: can start once earlier waves land
Description
Several facts the action depends on are not in GitHub's documentation. This issue measures them on a real repository so the Mermaid budget and the action's fallbacks rest on measured behaviour. It writes no product code. Part of #1049, phase 1. Filed here under surface:action; it moves to behold-action when that repo exists.
Today
From the forge scoping report, 2026-11-14.
- Mermaid's own defaults are
maxTextSize50,000 andmaxEdges500, withsecurityLevelstrict. PastmaxTextSizeMermaid shows "Maximum text size in diagram exceeded"; pastmaxEdgesit reports a vague syntax error (third-party source). GitHub states no size or complexity limit for Mermaid and does not say which values its renderer sets. Unverified. - Mermaid rendering in job summaries is shown only by third-party posts. Unverified.
- The pull request comment limit of 65,536 characters ("Body is too long (maximum is 65536 characters)") comes from third-party sources only. Unverified.
gh pr comment --attach <file>uploads an image into a comment for users with push access, and SVG, PNG, GIF and JPEG are supported up to 10 MB (GitHub docs). Whether it works with a workflow'sGITHUB_TOKENis not stated. Unverified.- Whether a job summary is written on a fork's
pull_requestrun is unverified.
Change
On a public test repository, with a workflow and generated inputs:
- Post Mermaid flowcharts of 50, 200 and 500 edges, and of growing character counts, in a comment and in a job summary. Record where each stops rendering and what it shows.
- Post comment bodies just under and just over 65,536 characters.
- Run
gh pr comment --attachon an SVG and a PNG withGITHUB_TOKEN, withpull-requests: write. - Open a pull request from a fork and check whether the job summary appears.
Write the results as a comment on this issue, with links to the runs.
Done when
- The comment gives the largest Mermaid input that rendered in a comment and in a summary, in characters and edges.
- It gives the exact comment size limit observed and the error text.
- It says whether
--attachworked withGITHUB_TOKEN, with the run link. - It says whether a fork run wrote a summary.
- The
githubbudget in the Mermaid emitter is set from these numbers.
Depends on
Nothing. It can run as soon as phase 1 starts.
Metadata
Metadata
Assignees
Labels
epic:surfacesEpic: behold as an infrastructure viewer inside other tools (INTENTIUS/behold#1049)surface:actionBelongs in the behold-action repo once it existswave:1Wave 1 of an epic's rollout: can start once earlier waves land
Activity
feat: estate-read batch 2, behold graph CLI and package, changed and …
feat: set the github Mermaid budget from the live check, and run the …
lex00 commentedon Nov 15, 2026
Measured on the public test repository INTENTIUS/behold-sandbox, using the
limitsworkflow and one pull request that holds only the test comments (INTENTIUS/behold-sandbox#1). The runs are https://github.com/INTENTIUS/behold-sandbox/actions/runs/43772156713, https://github.com/INTENTIUS/behold-sandbox/actions/runs/43774140622 and https://github.com/INTENTIUS/behold-sandbox/actions/runs/43774430875.Done when:
maxTextSize. The edge count is the only limit found below the comment size limit.gh pr comment --attachwithGITHUB_TOKENdoes not work. Withpull-requests: writeandissues: writeit fails for an SVG and for a PNG with "attaching files requires write access to the repository". Addingcontents: writechanges nothing. The runner's gh was2.103.3, which has the flag. Runs: theattachjob of the first run, and theattach-contents-writejob of https://github.com/INTENTIUS/behold-sandbox/actions/runs/43774140622.githubbudget is set from these numbers:blockChars200,000,maxEdges500,commentChars262,144 andconfirmed: true, with a test. The change is on branchestate/sandbox-runsof INTENTIUS/behold.The
forgejorow is unchanged and still provisional.feat: the action is listed from the behold repo, and the github Merma…