← Operations Web Function

Web Function SOP

Detailed subordinate SOP — the Web Function page is the definitive hub · Operations Web Function 0.1.0.

Download the complete plugin · Source SHA-256: dc892dc83228eab6f9ac3567a9e16d8ead33c388fd5f329bcea453bac06a980e

Version: 0.1.0 Status: public, portable reference Parent function: Operations Definition of Operations: repeatable excellence

1. Purpose

The Web Function keeps an organization's declared web properties reachable, trustworthy, measurable, changeable, recoverable, and documented. It replaces memory, chasing, and status narration with declared coverage, automatic observation, bounded action, independent verification, and durable receipts.

The Web Function is a sub-function of Operations because websites are ongoing production systems. Building a page, onboarding an owner, granting CMS access, checking analytics, responding to an outage, and publishing the lesson all belong to one operating loop.

2. The complete agent equation

running agent
= skill
+ runtime
+ job contract
+ trigger or schedule
+ current context and state
+ approved access adapter
+ policy and human approvals
+ lease and idempotency controls
+ verification
+ immutable receipt
+ evaluation and learning loop

A SKILL.md teaches behavior. It does not create a schedule, authenticate to a CMS, preserve state, decide whether a retry is safe, or prove that a production change worked. Keep those components separate so the skill can move between runtimes and the runtime can change without rewriting the SOP.

3. Function contract

Every installation declares:

If a property is not in the declared roster, it is not covered. If an owner, deadline, or next trigger is missing, the work is not handed off.

4. Service catalog

The Web Function owns nine repeatable services.

  1. Inventory and lifecycle — register, classify, assign, and retire domains, subdomains, environments, repositories, hosting, DNS, and critical paths.
  2. Build and migrate — launch or move a property with redirects, DNS, backups, analytics, forms, consent, and rollback proof.
  3. Maintain — update core, themes, dependencies, and integrations in a tested order with canaries and read-back.
  4. Secure — observe drift, spam, cloaking, rogue access, persistence, exposed credentials, and monitoring blind spots; preserve before repair.
  5. Measure — keep analytics, tags, calls, forms, bookings, and conversion routes working with test receipts.
  6. Publish — move approved content, media, and schema to production without breaking design, URLs, tracking, or accessibility.
  7. Operate access — grant the minimum role for the minimum time through an approved vault and record; review and revoke it.
  8. Respond and recover — classify, contain, repair, restore, monitor, and close incidents against written criteria.
  9. Document and automate — convert recurring work into tested skills, jobs, examples, and public-safe explanations.

Each request is assigned to one primary service. Split requests that mix unrelated outcomes so each child has its own owner and Definition of Done.

5. Component stack

LayerQuestion it answersPortable artifact
FunctionWhy does this exist and what does it own?This SOP and function contract
SkillHow should the agent reason and act?skills/*/SKILL.md
JobWhat exact run should occur?jobs/jobs.json
TriggerWhen and why should it start?schedule or event binding
ContextWhat is true now?context and property records
AccessWhat can this run read or change?access manifest and private adapter
PolicyWhat is automatic and what needs approval?permission ceiling and approval digest
StateHas this event/window already run, and who owns the surface?idempotency key, lease, heartbeat
EvidenceWhat was observed or changed?immutable run receipt
EvaluationDid the result satisfy the contract?tests, controls, independent verification
LearningWhat becomes easier next time?skill/test/SOP update and redacted case study

6. Intake and routing

For every incoming request or alert:

  1. Normalize the target: property ID, environment, URL or surface, requester, and desired result.
  2. Check the authoritative roster. If the target is absent, route to inventory-web-properties before work begins.
  3. Classify the primary service and risk level.
  4. Choose the narrowest skill and job contract that can produce the result.
  5. Compile current context from authoritative sources; do not rely on copied conversation history when a source record exists.
  6. Resolve access by capability reference. Do not paste credential values into the context.
  7. Determine the permission ceiling and required human approval.
  8. Acquire the correct lease or produce a read-only run identity.
  9. Execute, independently verify, and write a receipt.
  10. Route the receipt: close, monitor, escalate, request approval, or open a learning job.

7. State model

Do not force execution, target health, incident lifecycle, and evidence quality into one red/yellow/green label.

Execution state

QUEUED | RUNNING | WAITING_APPROVAL | COMPLETE | PARTIAL | FAILED | SKIPPED_LOCKED

Target health

PASS | WARN | FAIL | UNKNOWN

Finding classification

OK | DEGRADED | DOWN | SUSPECT | INFECTED | BLOCKED | UNREACHABLE

Incident lifecycle

OPEN | CONTAINED | REPAIRING | MONITORING | RESOLVED | CLOSED

Rules:

SUSPECT requires one plausible hostile signal or uncorroborated evidence. INFECTED requires passing controls plus either independent reproduction from a second permitted vantage or two structurally independent signal families. Several keywords, title differences, and body differences derived from one response remain one signal family.

8. Standard run lifecycle

A. Plan

B. Acquire

C. Observe or preserve

D. Approve

E. Execute

F. Verify

G. Receipt and route

9. Approval policy

Automatic by default

Explicit approval

Stronger approval and a change window

A broad instruction to “fix everything” does not approve an exact fleet plan that has not yet been written. Approval binds to the plan digest, target projection, cohorts, change window, and recipient set.

Never

10. Job catalog and cadence

The portable job definitions live in jobs/jobs.json. Bind them to the scheduler and timezone at installation time.

JobTriggerPurpose
web-fleet-dailyDaily scheduleCanary-gated read-only observation of every declared property.
web-monitor-alertmonitor.alertClassify, assign, and open a separate preservation event when needed.
web-incident-preserveincident.opened with suspected compromiseCapture volatile evidence before anyone repairs.
web-incident-repairincident.repair_approvedApply one evidence-backed, approved repair and verify or roll back.
web-approved-changechange.approvedApply one approved change to one property.
web-fleet-approved-changefleet-change.approvedRun an approved canary and bounded cohorts, halting on unknown or failure.
web-incident-communicationincident.communication_approvedSend one approved factual update; resolution requires a verification receipt.
web-deploy-verifydeploy.completedIndependently read back the changed surface and critical paths.
web-property-onboardproperty.addedAdd inventory, ownership, critical paths, analytics, access, and monitoring.
web-property-retireproperty.retiredArchive, redirect, revoke, and remove intentionally from active coverage.
web-weekly-maaWeekly scheduleMetrics → Analysis → Action for coverage, unknowns, incidents, and overdue receipts.
web-monthly-controlsMonthly scheduleRestore test, access review, inventory freshness, and planted-change test.
web-quarterly-reconcileQuarterly scheduleReconcile ownership, lifecycle, DNS, hosting, repos, access, and retired properties.
web-resolved-learn-publishincident.resolved or runbook.changedConvert evidence into tests, SOP updates, and a redacted public example.

11. Monitoring contract

A daily external sweep should, at minimum:

A green homepage cannot prove a clean filesystem. A clean sitemap cannot prove the absence of injected URLs. A timeout proves the observation failed to complete, not that the site is down.

12. Incident Definition of Done

An incident may move to RESOLVED only when:

CLOSED additionally requires that no unowned follow-up, overdue control, or unresolved public/client communication remains.

For recurrence-prone incidents, the incident record declares a stability-window duration and required number of automatic checks. The organization sets these values in policy. RESOLVED is unavailable until both the duration and check count pass; do not invent a shorter window during triage.

13. Production-change Definition of Done

A production change is complete only when the receipt contains:

14. Access contract

15. Evidence tiers

Assign evidence quality to each claim, not merely to the report.

TierMeaning
E0Assertion or progress narration; no reproducible proof.
E1One timestamped external observation.
E2Reproducible multi-identity or multi-vantage observation with exact inputs and tool hashes.
E3Authenticated read-only internal corroboration: users, dependencies, files, logs, jobs, or host state.
E4Approved change with before state, exact diff, rollback, and independent after-read.
E5Sustained monitoring-window proof plus a negative/control test or independent third-party confirmation.

The evidence ledger records what has actually been demonstrated. It does not award a superlative because the publisher wrote one.

16. Standard receipt

Each immutable receipt includes:

The action ledger is a generated human-readable projection of receipts. It is not a substitute for them.

17. Metrics → Analysis → Action

Track:

Every review ends with named actions, due dates, and the trigger that will check them. A chart without an action is observation, not Operations.

18. Learning and publication loop

For each novel incident or meaningful run:

  1. Establish the facts from receipts and source records.
  2. Resolve the exact Task Library row, exact task page, broader definitive article, executable skill source, and prior accepted meta examples.
  3. Write the instance as a meta article, including decisions, deviations, guesses, elapsed time, evidence, outcome, and unknowns.
  4. QA the run against the definitive article; give each flag one source correction.
  5. Separate root cause from root correction.
  6. Fix the narrowest authoritative source in the same run where possible.
  7. Make the contradiction or regression automatically detectable.
  8. Prove the new check can fail against a planted or historical fixture.
  9. Run the changed path again.
  10. Propose the skill/job/source change through branch, checks, review, and human merge; never hot-edit a downstream mirror as the durable fix.
  11. Redact credentials, customer data, private infrastructure, and exploitable detail.
  12. Regenerate the task/implementation page, definitive hub when changed, evidence tier, limitations, and downloadable artifact from their owned sources.
  13. Run a fresh-chat activation canary, then observe the next scheduled/event firing.
  14. Link receipt → meta article → source correction → test → release from the evidence ledger and originating task.

Generate public skill pages from the source skill files when practical. A hand-edited page beside a changing skill will drift.

The master is one registry graph with artifact-level owners: bounded tasks in the reviewed Task Library, reusable high-level skills in the merged marketplace, and generated pages/archives as projections. Exact task pages, broader definitive articles, skills, and meta examples remain distinct linked artifacts. See docs/MASTER-SOURCE-AND-LEARNING-LOOP.md and registry/capability-map.json. The Web Function delegates to existing owners instead of forking them; every new task or interface remains a candidate until reviewed, registered or merged, fresh-chat tested, and propagated.

19. Public and private boundary

PublicPrivate
Function architecture; job and check definitions; source code without secrets; fictional configs; redacted timelines; coverage counts; tool and release hashes; lessons; limitationsPasswords and tokens; account and admin lists; private host paths and IPs; raw logs with personal data; private client rosters; exploit payloads; unpatched persistence details; vault identifiers that reveal access structure

When a public explanation depends on a private fact, publish the conclusion, evidence tier, and verification method—not the secret or attack recipe.

20. Adoption sequence

  1. Declare the roster and freshness rule.
  2. Run the read-only monitor manually with controls.
  3. Schedule the daily observation job.
  4. Connect alert routing and require a receipt for closure.
  5. Add authenticated read-only collectors.
  6. Add deployment verification triggers.
  7. Add access governance.
  8. Add approved single-property writers.
  9. Prove canary, lease, rollback, and independent verification before any fleet writer.
  10. Publish redacted examples and update the evidence ledger continuously.

The first milestone is not “full autonomy.” It is complete coverage with honest unknowns and no silent failure. Autonomy expands only as the evidence and controls support it.


This page is generated from docs/WEB-FUNCTION-SOP.md. Do not hand-edit the public copy.