Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "fdeops",
"description": "Forward deployed engineering skills for AI coding agents. Use focused task skills or @fde for discovery, implementation, verification and handoff, with local engagement records.",
"version": "5.1.5",
"version": "5.1.6",
"category": "productivity",
"tags": [
"community-managed"
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 5.1.6 - 2026-09-17

- Surface optional implementation checkpoints in bounded resume without opening linked task files; retain nested headings, ignore headings inside code examples and clear superseded progress.
- Keep substantial work resumable in existing task records, with applicable evidence and an explicit next action.
- Make consequential trust-boundary reviews and operator-response evidence explicit in existing methods.
- Consolidate coordinator guidance and make standalone task entry explicit.
- Add reproducible diagnostics for stale evidence, unproven alert delivery, tenant isolation and interrupted work.

## 5.1.5 - 2026-09-17

- Seal truncated and control-character private markers before preparing context or reports.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ After a meeting, paste permitted notes into the same agent conversation. It prop

A request is not automatically an agreement. A passing test is not a production deployment. A measured improvement is not customer acceptance. FDEOps keeps those distinctions in the record.

At the next session, the coordinator retrieves a short summary rather than loading the full history. The default summary is capped at 16 KiB; older evidence is retrieved when needed. This cap applies to FDEOps output, not everything your agent loads.
At the next session, the coordinator retrieves a short summary rather than loading the full history. The default summary is capped at 16 KiB; older evidence is retrieved when needed. For interrupted implementation, it also surfaces a saved checkpoint when one exists, then checks the current task record before continuing. This cap applies to FDEOps output, not everything your agent loads.

If your agent cannot start the record, run this in your terminal from the workspace where you work on that customer:

Expand Down
5 changes: 4 additions & 1 deletion bin/fde.js
Original file line number Diff line number Diff line change
Expand Up @@ -1464,6 +1464,8 @@ function cmdResume(args) {
}
const intro = [resumeTriage(eng), firstActionLine(eng), ...hygieneTriageLines(eng), ...recordDigest(eng)].join('\n')
const ctx = readClean(eng, 'context.md')
const savedWork = context.implementationCheckpoint(ctx)
const checkpoint = stripTemplateNoise(savedWork.checkpoint).trim()
if (args.includes('--full')) {
console.log(`${intro}\n\nENGAGEMENT: ${eng}\n\n${ctx || '(no context.md yet)'}`)
return
Expand All @@ -1476,11 +1478,12 @@ function cmdResume(args) {
process.stdout.write(maskedSections([
policy ? `CLIENT POLICY - trust-profile.md\n${policy}` : '',
preferences.work ? `WORKING PREFERENCES: ${preferences.work}. Starting help: ${preferences.start}.\n${setup.nextStep(preferences)}\nThis is a starting preference, not a client fact; current instructions and engagement state take precedence.` : '',
checkpoint ? `SAVED IMPLEMENTATION CHECKPOINT - context.md\nRecheck the referenced task record and working tree before acting; this is not fresh verification.\n${checkpoint}` : '',
intro,
success ? `CURRENT GOALS & ACCEPTANCE - success.md\n${success}` : '',
risks ? `OPEN RISKS - risks.md\n${extractRisks(eng).map(r => r.text).join('\n') || '(none recorded)'}` : '',
`VALUE LEDGER - delivery.md\n${parseValueLedger(eng).rows.map(r => formatValueLedgerLine(r) + '; source: ' + (r.evidence || '(missing)')).join('\n') || '(none recorded)'}`,
`WORKING CONTEXT - context.md\n${ctx ? resumeView(ctx) : '(no context.md yet)'}`,
`WORKING CONTEXT - context.md\n${ctx ? resumeView(savedWork.remaining) : '(no context.md yet)'}`,
], maxBytes, `ENGAGEMENT: ${eng}`))
}

Expand Down
2 changes: 1 addition & 1 deletion bin/generate-skills.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const inputGuidance = {
function entrypoint(item) {
const mode = item.inputMode || 'context'
if (!Object.hasOwn(inputGuidance, mode)) throw new Error(`Invalid input mode: ${mode}`)
return `---\nname: ${item.name}\ndescription: ${item.description}\n---\n\n# ${item.name}\n\n<!-- Generated by bin/generate-skills.js; edit the canonical references and catalog. -->\n\n## Purpose\n\n${item.description}\n\nRead [the task context contract](references/task-context.md), then [the method](references/${item.method}.md). Load further references only when the task needs them. Everything linked is included in this skill; no other skill pack is required.\n\n## Principles\n\n- ${inputGuidance[mode]}\n- If called by @fde, reuse its current sanitized packet and scope. Do not restart setup, discovery or questions already answered.\n- The task context contract controls persistence and authority in both modes. Preserve unknowns and distinguish implementation, verification, deployment and acceptance.\n- Use the customer's repository instructions and available tools. Report a missing capability or unrun check honestly; do not claim that installing a skill provisions infrastructure.\n`
return `---\nname: ${item.name}\ndescription: ${item.description}\n---\n\n# ${item.name}\n\n<!-- Generated by bin/generate-skills.js; edit the canonical references and catalog. -->\n\n## Purpose\n\n${item.description}\n\nBefore investigating or acting:\n1. Read [the task context contract](references/task-context.md).\n2. Read [the method](references/${item.method}.md).\n\nLoad further references only when the task needs them. Everything linked is included in this skill; no other skill pack is required.\n\n## Principles\n\n- ${inputGuidance[mode]}\n- If called by @fde, reuse its current sanitized packet and scope. Do not restart setup, discovery or questions already answered.\n- The task context contract controls persistence and authority in both modes. Preserve unknowns and distinguish implementation, verification, deployment and acceptance.\n- Use the customer's repository instructions and available tools. Report a missing capability or unrun check honestly; do not claim that installing a skill provisions infrastructure.\n`
}
function expectedFiles(item, referenceRoot = source) {
const files = new Map([['SKILL.md', entrypoint(item)]])
Expand Down
37 changes: 36 additions & 1 deletion bin/lib/context.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,39 @@ function recallSections(documents, query, maxHits = 12, outputText = text => tex
sections: selected.map(h => `${h.file}:${h.line}-${h.end} (lines in redacted view)\n${h.text}`),
}
}
module.exports = { DEFAULT_BYTES, clipUtf8, clipMaskedUtf8, budgetArgs, boundedSections, recallSections }
// Extract one optional unindented H2 section without losing nested headings. Last occurrence
// wins, including an empty one that clears older progress. Input is sanitized.
function implementationCheckpoint(text) {
const lines = String(text || '').split('\n')
const retained = []
let checkpoint = ''
let active = false
let body = []
let fence = null
for (const line of lines) {
let heading = null
if (fence) {
if (new RegExp(`^[\\t ]*${fence.char}{${fence.length},}[\\t ]*$`).test(line)) fence = null
} else {
// Track list fences too so their closing line cannot open a new block.
const opening = line.match(/^ {0,3}(?:(?:[-+*]|\d{1,9}[.)])[\t ]+)?(`{3,}|~{3,})(.*)$/)
if (opening && (opening[1][0] !== '`' || !opening[2].includes('`'))) {
fence = { char: opening[1][0], length: opening[1].length }
} else {
// Record sections start at column zero; list/container examples are content.
heading = line.match(/^(#{1,2})(?:[\t ]+|$)(.*)$/)
}
}
if (heading) {
if (active) checkpoint = body.join('\n').trim()
active = heading[1] === '##' && /^Implementation checkpoint$/i.test(heading[2].replace(/[\t ]+#+[\t ]*$/, '').trim())
body = []
if (active) continue
}
if (active) body.push(line)
else retained.push(line)
}
if (active) checkpoint = body.join('\n').trim()
return { checkpoint, remaining: retained.join('\n') }
}
module.exports = { DEFAULT_BYTES, clipUtf8, clipMaskedUtf8, budgetArgs, boundedSections, recallSections, implementationCheckpoint }
6 changes: 6 additions & 0 deletions docs/schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,9 @@ Optional root: `FDEOPS_ENGAGEMENTS_ROOT` relocates the engagements tree used by
From 3.27, accepted value requires a measured result, named signer, and non-pending source in Evidence. Explicit Acceptance status, when present, must be `accepted`. Legacy rows without a source display as CLAIM; files are never rewritten during this classification. A source is inspectable attribution, not automatic verification or customer approval. `PR #42`, `https://…`, `transcript:abc123`, `evidence/replay.json`, and `[source: meeting 2026-09-10]` are supported. `staging run`, `pending PR #42`, and the automatic entry date are insufficient.

`fde defend` prints the sponsor readout. `fde handoff` prints a portable Markdown snapshot with constraints, signer, success, next action, risks, ledger, recent dated decisions and gaps. Both default to 16 KiB of redacted output; `--max-bytes 4096..65536` changes this deterministic byte allowance, not a model token count. Truncation is explicit. `fde handoff --out successor.md` creates a new file only, outside `.fde/`; it refuses existing destinations. Review remaining client information and source access before sharing. These exports are derived snapshots, not replacements for the engagement record.

## Implementation checkpoint (optional)

For substantial work, keep the implementation plan and progress in the existing project task record. A bound engagement may hold a short confirmed summary under an unindented `## Implementation checkpoint` heading in `context.md`. Keep record section headings unindented; headings inside code or lists are content. Put the next action and source task path/ID first, followed by repository/revision and dirty state, completed and pending checks, blocker and update time. Replace the previous checkpoint or close it when work finishes; do not copy a second backlog.

`fde resume` gives this section its own bounded, sanitized excerpt so session history does not bury it. It never opens the source path automatically. The pre-compact hook leaves the saved section intact; it cannot infer unsaved progress. A fresh agent must reconcile the summary with the authorized task record, working tree and applicable evidence before continuing. Missing or stale checkpoints remain gaps, not proof of completion.
4 changes: 4 additions & 0 deletions docs/verification.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ Three additional fictional field simulations on 5.1.3 covered a tenant-scoped ca

These are single runs per case, not a randomized baseline comparison. The host was Codex; an exact model identifier and token measurements were not recorded. Fixture requirements were supplied, no customer systems were used, and no long-term or cross-model reliability is established. The [field-task protocol](../evals/delivery/README.md#repeatable-standalone-field-trials-f1-f3) prepares fresh baseline and FDEOps variants; its checker preserves evidence and never assigns customer-judgment scores automatically.

On the 5.1.6 candidate, fresh Codex CLI 0.154.0 sessions exercised four fictional cases: rejecting stale passing evidence against a failing current check, refusing unsupported alert/deployment readiness, reproducing a tenant authorization bypass, and reconciling an older saved checkpoint with a newer task record without executing pending work. Final runs used isolated host preferences. Trace and file review found only the requested answer files written; no application or engagement records changed. The exact model identifier was not captured.

The first stale-evidence run correctly rejected completion but claimed a Git command had run when it had not. The verification instructions now explicitly require an actual invocation and result; a fresh rerun supported its execution claims. The alert case reached the correct decision but read some supplied evidence before finishing the prescribed method-entry sequence. An initial continuity run also loaded a global skill and was repeated with isolated host preferences. These deviations remain part of the evidence; successful reruns do not establish enforcement or a reliability rate. F4-F7 fixtures and reviewer criteria are available in the delivery evaluation guide.

Keep the distinction between instructions available, agent task completed and customer benefit demonstrated. The repeated D1-D5 comparison remains unrun. Reproducible fixtures and review criteria are in [delivery evaluations](../evals/delivery/README.md); raw session traces remain local.

## Host and connection coverage
Expand Down
15 changes: 15 additions & 0 deletions evals/delivery/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,3 +189,18 @@ result record above. Record judgment and citations separately; deterministic
passes cannot award stakeholder judgment credit. F3 checks do not prove a real
backend supplies the fictional linearizable lookup contract. These fixtures and
harness tests are evaluation infrastructure, not completed model trials.

## Continuity and evidence diagnostics (F4-F7)

The same `field.js prepare <new-directory> <case-id> fdeops` and `field.js check <directory>` commands prepare and inventory these cases. Rubrics remain outside the executor workspace. Review actual tool calls and file changes; artifact presence or matching words cannot establish correct behavior.

| Case | Skill | Judgment being exercised |
|---|---|---|
| F4 | build | Reject a stale passing receipt when the current check fails; report only commands actually run; preserve report-only scope |
| F5 | ship | Separate configured alerts from delivery/acknowledgment, and local evidence from deployment and handoff |
| F6 | review | Reproduce a concrete tenant authorization bypass and explain the boundary with evidence |
| F7 | fde | Recover a saved checkpoint through the CLI, reconcile the newer task record and preserve pending checks |

For F7, set `FDEOPS_CLI` to the absolute path of the candidate `bin/fde.js`, `FDEOPS_ENGAGEMENT` to the prepared `executor/.fde`, and `FDEOPS_ENGAGEMENTS_ROOT` to an isolated directory such as `executor/.record-config`. Before starting the reader, use that environment to run `node "$FDEOPS_CLI" setup --view current --context compact --privacy agent --save`, then `node "$FDEOPS_CLI" preserve`. These are evaluator setup operations on fictional data. Record their changes separately from the reader's file inventory. Start a fresh agent with no prior conversation, the prepared prompt and those variables. The reader may write only `answer.md`; verify no record mutation or pending task execution. Keep the same approved host/tool restrictions when comparing candidates.

Use isolated host preferences and inventory other installed skills to avoid accidentally testing a different global installation. Save exact source/skill hashes, host version, model identifier when available, raw traces and reviewer decisions locally. Preserve failed attempts; a successful rerun does not erase an earlier unsupported claim. Single runs establish diagnostic observations only, not reliability rates or superiority.
Loading
Loading