Repository navigation
developer_docs: update app_meta.json format to version 1.3 - #20
Merged
Merged
Conversation
shard_core 0.40.0 made 1.3 the current format. It replaced the single lifecycle.idle_time_for_shutdown with idle_for_pause, idle_for_stop and skip_pause, and the docs still described the old field and its 60s stop, which no longer matches what shards do. The lifecycle page now covers pausing, the memory-pressure and low-disk behaviour, and the field rules from the Lifecycle model. The published JSON schema is still the 1.2 one, so the page says so. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Updates the documented
app_meta.jsonformat from 1.2 to 1.3, the current version since shard_core 0.40.0. Version 1.3 also changed the lifecycle fields, solifecycle.mdgets the bigger part of this change.Changes
app_meta_json.md:"v": "1.3"and the new lifecycle fields;minimum_portal_sizevalues (xstoxl) are listed.lifecycle.md:idle_time_for_shutdowndescription is replaced by a table ofidle_for_pause(default 60s),idle_for_stop(default 3h),skip_pauseandalways_on, plus the rules for combining them;digest.md: the same facts.Why the old page was wrong in practice
The page promised a 60-second stop via
idle_time_for_shutdown. On 1.3 shards, that field is migrated toidle_for_pause, so with pausing on, the app pauses after 60s and stops after 3h. With pausing off, it only stops after 3h.How it was verified
Lifecyclemodel,AppLifecycleSettings,_control_app_time,_demote_lruanddocker_pause_appat the 0.41.3 tag. The 1.2→1.3 migration is inapp_meta_migration.py. 0.40.0 is the first tag withCURRENT_VERSION = "1.3".v, so it has no entry for"1.3".mkdocs build --strictpasses locally.Spotted, not addressed here
json-schemajob in freeshard's.github/workflows/release.ymlis commented out, so the newest schema at the storage URL is 1.2. An IDE using it will flag the 1.3 lifecycle fields andminimum_freeshard_version.idle_time_for_shutdown(36 of them) now pauses at that time and stops after 3h, not at the time its author picked.🤖 Generated with Claude Code