Historical local qualification: Source 7cf4b26e focused Core 22/22 and Dashboard 26/26 checks passed. The historical bounded local record keeps their exact scope. Historical source 7cf4b26e passed the 3,286/3,286 full checks and all 36 installed families. Independent bounded local evidence acceptance passed; exact-final-head CI is recorded separately from this frozen local proof. Module-specific and broader limits remain below.
Status: In progress. The native Factory M03a correction keeps its focused source checks and independent review. Historical source 7cf4b26e passed the 3,286/3,286 full checks and all 36 installed families. Independent bounded local evidence acceptance passed; exact-final-head CI is recorded separately from this frozen local proof. This entry admits no ticket or effect.
Use software-factory/milestone-work-brief for pure preparation and software-factory/milestone-work-brief-contract for neutral types. The caller uses its actual, previously commissioned milestone host. The example copies only one selected row at a time from an actual public inspect result; it opens no store, resolves no grant and invents no new owner fields.
import { prepareImplementationBrief } from 'software-factory/milestone-work-brief';
export function briefsFromPage(page) {
if (!page.admittedPlan) return [];
return page.subobjectives.map(({ generation, forecast }) => {
const snapshot = {
protocol: 'sf-milestone-selected-generation/1',
context: {
scope: page.scope, capturedVersion: page.capturedVersion, asOf: page.asOf,
cancelled: page.cancelled, coverage: page.coverage, capacity: page.capacity,
sharedScenario: page.sharedScenario, parallelPolicy: page.parallelPolicy,
milestone: page.milestone.pin, plan: page.admittedPlan,
originalIntentPins: {
values: page.milestone.productValuesPin, policy: page.milestone.operatingPolicyPin,
allowance: page.milestone.originalAllowanceScope,
},
primary: { selected: page.primary?.selected ?? null, eligibility: page.primaryEligibility },
},
selected: generation.pin, generation,
criteria: page.milestone.criteria.filter(c => generation.criteria.includes(c.id)),
forecasts: { selected: forecast, overall: page.forecast },
};
return prepareImplementationBrief({
protocol: 'sf-milestone-work-brief-input/1', profile: 'native-factory/1', snapshot,
});
});
}
export function readBriefs(milestones, authenticatedContext, inspectInput) {
const result = milestones.inspect(authenticatedContext, inspectInput);
if (result.kind !== 'ok' || result.value === null) return { read: result, briefs: [] };
return { read: result, briefs: briefsFromPage(result.value) };
}
Current READ and physical authority remain the caller's existing M01 responsibility. Do not expose retained private objectives or requirements after a denied read. A copied snapshot is untrusted literal data: shape, consistency and digest checks do not authenticate a plan, reviewer, current permission or source owner. M01 does not expose a separate currentProductValues field. Its global primary eligibility may describe a different milestone; do not turn that value into selected-generation readiness.
For additional pages, pass the actual returned cursor back to M01. Each page is a separate read with its own asOf; even an unchanged capturedVersion does not establish one atomic multi-page observation. A new read after drift, cancellation or expiry can produce a different historical brief. The preparer has no clock and never silently refreshes its input.
additions is optional or null. When present it contains exactly review (native SourcePin attribution), nullable affectedCapability and disproof strings, and nullable nonGoals string array. No additional form is necessary. The module neither authenticates that review nor invents missing disproof, executable acceptance, paths or non-goals. previousDraft is an optional prior content digest; caller history is not looked up or overwritten.
The output contains the snapshot once and returns work:{state:'not-admitted',authority:'not-evaluated',dispatch:'unavailable'}, dependencies:{satisfaction:'unknown'} and aggregateResourceDate:'not-derived'. Selected and overall forecasts retain their native date precision, expiry, claims, sources, unknown/conflict state and combinedResourceAssessment:'not-derived'. Capacity counts and opaque reserve/scenario/policy pins remain unchanged. Missing overall dates, third-party waits and resource coverage stay unknown; adding visible row dates or converting counts into dates is unsupported. Independent upkeep policy is retained without reallocating its allowance.
The sha256: digest is over canonical JSON of the normalised complete output body except its digest. It is content identity, never a Slice, ticket, command or dispatch ID. Identical normalised input returns the same brief; changed source version/time or optional additions returns a different brief. Native generation/plan digests are retained attribution, not recomputed authority without their original commission and full admitted graph.
Bounds and refusal
Input/success:65,536 canonical UTF-8 bytes; snapshot57,344; additions4,096; structural depth32 and4,096 slots. Native selected generation2,048, each forecast4,096, criterion requirement512, eight criteria/prerequisites and32 provenance pins also apply. Additional text fields are512 bytes and up to8 non-goals256 bytes each. A valid count of maximal strings may exceed the composite bound and refuse. Fixed INVALID, LIMIT or CONFLICT reveals no private input; non-implementation work returns unavailable/not-implementation. No truncation, callback, store, Journal write or network call occurs.
Intrinsic native Promise observation is bounded by a single shared per-call4,096-slot/depth32 budget, including own and eventual data and caught descriptor faults. It never awaits input, invokes getters/user thenables or turns non-JSON into authority. Structural object width is checked against remaining key/value slots before descriptor materialisation; arrays use their remaining element slots. Obtaining an own-key inventory is an atomic host operation, not pre-emptible work. This is a bounded boundary, not a universal JavaScript sandbox.
Honest limits: Actual queued implementation tickets and dispatch require a separately accepted original work-owner adapter, current physical authority, durable generation association and unknown/restart/orphan reconciliation. This module supplies none of them, starts no Research or model and adds no budget. Source, installed package, composed UI, live project and release evidence remain distinct.
