Spaces:
Running
Running
|
Download CONTRACT.md from WideChaos/local-label-queue: direct link, hf CLI and curl.
- Browser
- Download file 6.28 kB
-
https://huggingface.co/spaces/WideChaos/local-label-queue/resolve/main/CONTRACT.md
- Command line
-
hf download hf://spaces/WideChaos/local-label-queue/CONTRACT.md
-
curl -L -o CONTRACT.md https://huggingface.co/spaces/WideChaos/local-label-queue/resolve/main/CONTRACT.md
6.28 kB
| # Local Label Queue0.1 · frozen functional contract | |
| 2026-11-04 before implementation. Newworkidentitywork:local-label-queue:v1. A usable staticbrowsermanual-labelingqueuewithdownloadedcheckpointresume,notatrainingrunorclaimthatresultinglabelsarecorrect. It addressesanoperationalgaprevealedbyLabelBudgetLab'slabel-informedbootstrap:actualdecisions,abstentionandunfinishedrecordsneedexplicitstates. Itdoesnotfix/bootstrapthatstudy,assumetrustworthylabelsorcountsimulatedactionsasrealannotationadoption. | |
| AllUIclient-onlymodernHTTP(S)/localhost,writablebrowsermemoryonly,nolocalStorage/IndexedDB/cookies/URLstate/telemetry/CDN/serviceworker/modelAPI. InitialfixedsampleassetGETonly. Noautomaticcloudsyncorautosavepromise;closing/reloadlosesdecisionsunlesscheckpointdownloaded. BrowserfilechooserinputislocalFileAPI,arrayBuffer+fatalUTF8decoder,noformuploads. Originalsynthetic12itemsfrozenbeforecore;nostockexternaldatasetoremployerprivatecontent. | |
| SetupinputLFJSONLrecordswithexact{id,group,text};1..1000records,1MiBUTF8raw,uniqueidnonblankUnicode-scalar<=128UTF16,groupnullorcaller-definednonblankscalar<=128,textnonblankscalar<=16384. Unknowngroupsremainnull,notinventedfromlabel/id. NativeJSON.parselastduplicatekeybehaviorexplicit,notaduplicate-keydetector. Blanklinescounted/ignored,literalU2028notrecordseparator. Taxonomy2..9distinctnonblankscalarlabels<=64UTF16,oneperline,trimPythonwhitespaceexplicit;rawidentifiersandtextsnotnormalized. Case-sensitivefixedorderusedforkeyboardnumbers. NoCSV/sniffing/URLfetching. | |
| Sessioninventory{taxonomy,items}canonicalserializedfixedkeyorder,itemsininputorderwithfixed{id,group,text};SHA256exactUTF8canonicalJSONisidentity. Editingsetupdoesnotmodifycurrentactiveinventory/decisionsuntilStartnewsessionbuttonexplicitlyreplacesit. Warncurrentdecisionswillbereplacedandshowcheckpointaction;invalidsetupdoesnoteraseactivesession. Successfulstartcreatesexactlyoneannotationrowperid:statusunlabelled,labelnull. Noautomatedsuggestionsorhiddenlabelpreselection. | |
| Statesunlabelled/labelled/abstained. Labelactionrequiresonetaxonomyvalue,setslabelled;Abstainsetsabstained+null;Cleardecisionresetsunlabelled+null. Repeatingidenticaldecisionisno-op,notextraannotationcount. Wholeinventorysummarytotal,labelled,abstained,unlabelledandperlabelcounts;reviewedfraction(labelled+abstained)/total,notgroundtruthcorrectness/quality/independence. Unknowngroupcountvisible. Noeventcountusedasnumberoflabeledrecords. No-notesfieldin0.1,avoidsuncommitteddraftloss. | |
| Stablequeueorderbyoriginalitemordinal;filterall/unlabelled/labelled/abstained,previous/nextnavigatesvisibleitems. Afterlabel/abstain,advancefirstnextunlabelledwithwrapifavailable;noneleftkeepcurrentifvisibleelseexplicitqueueemptywithoutpretendingalllabelled(allmayabstain). Clearstayscurrentwhenvisible. Fullinventoryneverfilteredoutofexports. Showrecordid/group/text/currentdecisionandposition,atleastoneexplicitwaytorevisiteverycompletedrecordviaAllfilter. Keyboard1..9labels,Aabstain,Uundo,onlyactivesessionandnoneditabletarget,nometactrlaltcombos/nativeinputinterference;buttonsremainaccessible. Noautomaticright/wronglabels. | |
| GlobalUndo20mostrecentrealdecisionchanges,storesid/priorstate,restorespreviousdecisionandnavigatesthatidunderAllfilter. Undoisanewsessionrevisionbutnotnewrecordcount. Label/abstain/clearrealmutationincrementsnonnegativeintegerrevision;nosignatures/timestamps/audit-historyclaims. Loadcheckpointstartsnewundoscope/historyempty,restoredrevisionkept. Savedmarkercomparessavedrevisiontocurrentrevision;navigation/filterdoesnotmakedecisionsdirty. Repeatdownloadwithoutmutationvalidsamecontentchecksum,noinferredbackupdurabilitybeyondrealBlobdownloadinitiation. | |
| CheckpointJSONexactroot{schema_version,tool_version,inventory,inventory_sha256,annotations,revision,content_sha256}. Version1/tool0.1.0. Annotationsfixedorderbyinventoryid,exactfields{id,status,label},oneeachnoextradupmissingIDs;labeltaxonomyonlyiflabelled,nullotherwise. revisioninteger0..1000000000. Canonicalpayloadfixedfieldorderwithoutcontent_sha256,allitems/annotationsreconstructedknownfields;contentSHA256UTF8canonicalJSON(payload),notfileformattinghash. Rawcheckpoint<=4MiB,strictUTF8andfullschema/Unicode/inventorySHA/contentSHAverifiedbeforeacceptance. Hashesdetectinconsistency,notauthenticity;anyonecanrehashchangeddata. Nosignedcheckpoint/encryption/historyprovenanceclaim. | |
| Restorechooseslocalfile,verifiesfullyandshowsstagedpreviewcounts/digest;doesnotreplacecurrentworkuntilseparateexplicitReplacewithcheckpointbutton. Failedread/schema/hashleavescurrentsessionunchanged. Previewcontainsallitsowninventory,notmergedbysimilartextorforeignids. CommitreplacesentiresessionandemptiesUndo,showsrestoredcounts+savedstate. Allasyncserialize/read/digeststateoperationsusetickets/versionchecks:adecisionchangeafterexportbeginsmustnotmarkanewerrevisionassaved,staleparsedpreviewmustnotinstallonlaterfilechoice. Checkpointvalidateddatafrozenclone,notmutableDOMvalues. | |
| Exports:checkpointfullsource/labelsrevisable;annotations.jsonlall100%inventoryrecords{ id,group,text,status,label },includingunlabelled/abstainednulls. Sharewarningfulldata,id/labelspossiblysensitive. No“training-ready”filterorautodrop;callerexplicitlydecidesdownstreamuse. CurrentBlobURLsrevokedwhenreplaced;exportlinksfromstaleannotationrevisionremovedonmutation. Exportdownloadisexplicitaction(noautofiledownloadonlabel). Crosslabelsamples/unknownclassnotinferred. | |
| Acceptance:Nodepurestateschema/inventoryhash/checkpointintegrity/statusfullcounts/undo/noop/revision/filter/repeatedactions/Unicode/prototypeid/caps/missingdupforeignannotation/illegallabeltests;independentPythonSHAcanonicalJSON/countstateoracleandrandomactionsequences. Actualnativehiddenbrowserstart,labelkeyboard/button,abstain,clear,undo,queueempty,editsetup-preservation,invalidnewsession,allrecordexportsandactualBlobcheckpointdownload;reload+realFileChooserrestorepreview+commitkeepsfullcounts/IDs/texts. Corruptedhash/foreign/missingrowsrejectedwithoutwipingactivesession. 390layoutandkeyboardfocus,networkfixedassetsonly;nosyntheticUIclaimwithoutactualactions. PreciseApacheLICENSE/NOTICE/SOURCE/manifestfreezeandindependenttotalactualrerunbeforelaterdailyHFpublication;todaynone. NoindependentadoptionorhumanannotationstudyclaimfromlocalCUAtests. | |