MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / isProtected

Function isProtected

src/skills/provenance.ts:31–35  ·  view source on GitHub ↗
(skill: ProvenanceLike | undefined | null)

Source from the content-addressed store, hash-verified

29 * protected, so an unknown/legacy skill is never clobbered.
30 */
31export function isProtected(skill: ProvenanceLike | undefined | null): boolean {
32 if (!skill) return false; // nothing there to protect
33 if (skill.humanEdited) return true; // a human touched a captured skill → now protected
34 return (skill.provenance ?? 'user') !== 'machine';
35}
36
37/** A pristine, machine-captured skill the loop is free to replace/curate. */
38export function isMachineOwned(skill: ProvenanceLike | undefined | null): boolean {

Callers 4

isMachineOwnedFunction · 0.85
canMachineWriteFunction · 0.85
decidePromotionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected