Repository navigation
Profile page: the apps table generator reads the family spec; the published table is unchanged - #13
Merged
Merged
Conversation
…heck scripts/apps_table.py no longer fetches the formai.studio catalogue. It follows formadaptor's generator contract: `--family PATH` writes the apps table and the licence sentence in profile/README.md between their existing markers, and `--family PATH --check` writes nothing, prints profile/README.md and exits 1 when the committed file differs. A bad spec or README exits 2. No network, standard library only, runs as `python3 -I`, same spec gives the same bytes. Only entries with public true are read; an entry with public false is skipped before any other field is looked at. The rule for which apps show is kept (state live, safe machine id) and links to the site use the machine id. Rows are sorted by name. The licence sentence is derived from the licences of the listed apps. tests/test_apps_table.py is updated for the spec's shape, because the functions now take family.json content instead of the catalogue and the empty-list error changed; tests are added for private entries, the id link, ordering, licence variants and the --check exit codes. Baseline before the change: 7 passed (old suite). After: 14 passed. Ran: the script against /home/claude/form/work/scratch/family.sample.json with --check (exit 1, printed profile/README.md), then without it (wrote), then --check again (exit 0) and a second write (identical bytes). The regenerated README is committed separately.
…mily spec Regenerated with `python3 -I scripts/apps_table.py --family family.json` (the sample spec at 2026-11-19, registry 0.16.0); `--check` now exits 0. Removed: FormPortal and FormEncoder (state public, not live), FormMCP, FormSkills, FormPDF and FormTray (state prelaunch). Changed: FormDeck links to the site id formslide; form.ext takes the registry's name and summary. All rows are now sorted by name. The licence sentence now names only form.ext, because FormPortal, FormMCP and FormSkills are no longer listed.
…e family spec The workflow no longer fetches formai.studio on a schedule and no longer opens bot pull requests; formadaptor opens those now. After the tests it downloads family.json from formadaptor's spec branch and runs `python3 -I scripts/apps_table.py --family <spec> --check` on pushes to main, on pull requests and by hand. Permissions stay contents: read; the action pins, Python 3.12 and pytest 8.3.3 are unchanged. Ran: the YAML parses (jobs test and check, triggers push, workflow_dispatch, pull_request); the check step's command against the sample spec exits 0. The download step was run against the real address and answered 404 because the spec branch is not published yet; it could not be run to success here, and the job itself cannot run outside GitHub.
…s settled Regenerating the table from the family spec cut the public list from 17 rows to 11 and changed the licence line. The table lists only apps whose state is live, and the spec (built from the registry) marks six apps the page shows today as public (FormPortal, FormEncoder) or prelaunch (FormMCP, FormSkills, FormPDF, FormTray). The owner has not decided which source is right, so the page must not change until then. profile/README.md is restored to exactly what origin/main has, by hand edits of the table region and the licence line.
…e named line The page is back to its published table (see the revert) and is not generated from the family spec yet, so the apps-table workflow drops the check job and its network fetch and only runs the script's tests on push, pull request and by hand. The HASHOUT_LOG says what to switch on when the owner decides: the --check step against scripts/family.spec.json and the first regeneration. No spec copy is committed. apps_table.py names the listing rule: LISTING_RULE is one assignment, today state live, with the two other candidates beside it (rule c lists every public app that has a published release). No behaviour change and no command-line switch. Tests added for the rule and for rule c.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Profile page: the apps table generator reads the family spec; the published table is unchanged
What changes
profile/README.mdis byte-identical to what is published today. Nothing on the organisation's page changes with this PR.scripts/apps_table.pycan now read the family spec that formadaptor builds (--family PATH) and has a--checkmode. The rule for which apps the page lists is one named line in the script.apps-table.ymlnow runs the tests only. It no longer fetches anything or rewrites the page.Why the table was not regenerated
A regeneration from the registry would have dropped six apps that the site shows as live (the registry has them as
publicorprelaunch): the page went from 17 rows to 11. That was reverted on this branch. Which apps the page lists is the owner's decision; until it is made, the page stays as published and formadaptor'sprofiletarget is switched off.How it was checked
tests/test_apps_table.py).profile/README.mdcompared byte for byte withmain.Not verified
Held for the owner
liveonly (11 rows), (b) the 17 published today, kept by hand, or (c) every public app (23 rows).Merge
Merge with a merge commit. Do not squash and do not rebase-merge.