Re: [Lager] Incoming AD review on draft-ietf-lager-specification-11.txt

Asmus Freytag <asmusf@ix.netcom.com> Fri, 25 March 2016 15:24 UTC

Return-Path: <asmusf@ix.netcom.com>
X-Original-To: lager@ietfa.amsl.com
Delivered-To: lager@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id F074912DBB0 for <lager@ietfa.amsl.com>; Fri, 25 Mar 2016 08:24:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level:
X-Spam-Status: No, score=-2.699 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); domainkeys=pass (384-bit key) header.from=asmusf@ix.netcom.com header.d=ix.netcom.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iKVpew69x-T1 for <lager@ietfa.amsl.com>; Fri, 25 Mar 2016 08:24:08 -0700 (PDT)
Received: from elasmtp-junco.atl.sa.earthlink.net (elasmtp-junco.atl.sa.earthlink.net [209.86.89.63]) by ietfa.amsl.com (Postfix) with ESMTP id E954412DB22 for <lager@ietf.org>; Fri, 25 Mar 2016 08:24:07 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=dk20050327; d=ix.netcom.com; b=pFpv7E9q9qPeu9mXN9AfMJzVYJio3AA2c24sBHvVS9D+hFmbLL7j1+Vtj/KP6LxT; h=Received:From:Subject:To:References:Message-ID:Date:User-Agent:MIME-Version:In-Reply-To:Content-Type:X-ELNK-Trace:X-Originating-IP;
Received: from [71.35.115.182] (helo=[192.168.1.103]) by elasmtp-junco.atl.sa.earthlink.net with esmtpa (Exim 4.67) (envelope-from <asmusf@ix.netcom.com>) id 1ajTak-0002Ph-Ma for lager@ietf.org; Fri, 25 Mar 2016 10:24:02 -0500
From: Asmus Freytag <asmusf@ix.netcom.com>
To: lager@ietf.org
References: <1458841579.4011697.558814722.09946B62@webmail.messagingengine.com> <56F47849.6050607@ix.netcom.com> <9E846AF5-6043-4715-8FD4-341D49EA9A17@fastmail.fm>
Message-ID: <56F55811.8070602@ix.netcom.com>
Date: Fri, 25 Mar 2016 08:24:01 -0700
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0
MIME-Version: 1.0
In-Reply-To: <9E846AF5-6043-4715-8FD4-341D49EA9A17@fastmail.fm>
Content-Type: multipart/alternative; boundary="------------070608000706080404020806"
X-ELNK-Trace: 464f085de979d7246f36dc87813833b2857e9f10d2205ddc288c7cbbbe49b2f6e3961a3287cb983b350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c
X-Originating-IP: 71.35.115.182
Archived-At: <http://mailarchive.ietf.org/arch/msg/lager/AOFD0KVPSJzj1lfb9Quu-Ao3caY>
Subject: Re: [Lager] Incoming AD review on draft-ietf-lager-specification-11.txt
X-BeenThere: lager@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: Label Generation Rules <lager.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/lager>, <mailto:lager-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/lager/>
List-Post: <mailto:lager@ietf.org>
List-Help: <mailto:lager-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/lager>, <mailto:lager-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 25 Mar 2016 15:24:16 -0000

On 3/25/2016 1:14 AM, Alexey Melnikov wrote:
> Hi Asmus,
>
> On 24 Mar 2016, at 23:29, Asmus Freytag (t) <asmus-inc@ix.netcom.com> 
> wrote:
>
>> I'll let Kim address the issues with 4.3.5 and 11.3 (media type and 
>> registration).
>>
>> Here some comments on the issues raised against 6.1 and 7.6.
>>
>> A./
>>
>> On 3/24/2016 10:46 AM, Alexey Melnikov wrote:
>>> In 6.1:
>>>
>>>> >A rule MAY contain the following as child elements:
>>> Nit: This is an invalid use of MAY, because it is not an implementation
>>> choice. I don't think you meant here that implementations don't have to
>>> support any of the listed child elements?
>>
>> What is the specification aimed at? It's a file format. That means, 
>> there are different levels of requirements for authors (of what may 
>> be a single LGR document, which does not have to include all possible 
>> features)
>
> Ok, but isn't that true for pretty much all the features in the 
> format? Why is this one special?
>
>> and implementations (that we would expect of being able to interpret 
>> any well-formed LGR document). It seems to me:
>>
>>   * Implementations (readers, parsers, validators) MUST support all
>>     features, including OPTIONAL ones.
>>
>
> I thought your document was mostly targeting implementations. If not, 
> having a separate section that covers authors might be a good idea.
>>
>>   * Authors MAY supply any features, except those that MUST NOT be
>>     present, and MUST supply all required features.
>>
>> In that context, MAY or not MAY in the above example?
>>
>> Aside from that, would it have been better to write:
>>
>> "A rule may contain the following OPTIONAL child elements"
>
> INHO, this is no better, because you are not telling who are they 
> optional for.

Looked at the text in context. MAY ---> may is fine anyway, because the 
passage is somewhat introductory.
>>> In 7.6:
>>>
>>>> >If no actions are defined for the standard disposition values of
>>>> >"invalid", "blocked", "allocatable", "activated", then the following
>>>> >implicitly defined default actions are evaluated.
>>> Are default actions defined if none of the actions for recommended
>>> standard dispositions is defined or if any of them is not defined? For
>>> example, I was thinking whether it would be Ok to just automatically
>>> (and unconditionally) append these default actions to any LGR file for
>>> purposes of evaluation? If any action for standard disposition value is
>>> already defined and it would take precedence, so the corresponding
>>> default action would be ignored.
>> Yes, this can be improved.
>>
>> I think it would be cleanest to describe the "implicitly defined 
>> default actions" as a block of <action> elements that is added 
>> (virtually) beyond the last of the user-supplied actions. Any label 
>> not processed by the user-supplied actions would be processed by 
>> these "implicitly defined default actions" as if they were present in 
>> the file. As the last one is a "catch-all", all processing is 
>> guaranteed to end with a definite disposition for the label.
>
> Right, this is what I thought.
>>
>> Note that the phrase used in the existing description ("standard 
>> disposition values") is potentially misleading, because we now make 
>> the distinction between "types" (on variant mappings) and 
>> "dispositions" (as result of processing labels). We didn't use to and 
>> this wording may be a holdover.
>>
>> I'll look at suggested wording.
>
> That would be great, thank you.

I cleaned up the passage and added a note that makes the point about 
default actions being treated as if added past the last user defined 
action.  (See below).

A./


  7.6 Default Actions <#default_actions>

If a label does not trigger any of the actions defined explicitly in the 
LGR, the following implicitly defined default actions are evaluated. 
They are shown below in their relative order of precedence (seeSection 
7.4 <#precedence>). Default actions have a lower order of precedence 
than explicit actions (seeSection 8.3 <#determining_dispositions>).

The default actions for variant labels are defined as follows. The first 
set is triggered based on the standard variant type values of "invalid", 
"blocked", "allocatable", "activated":

     <action disp="invalid" any-variant="invalid"/>
     <action disp="blocked" any-variant="blocked"/>
     <action disp="allocatable" any-variant="allocatable"/>
     <action disp="activated" all-variants="activated"/>

A final default action sets the disposition to "valid" for any label 
matching the repertoire for which no other action has been triggered. 
This "catch-all" action also matches all remaining variant labels from 
variants that do not have a type value.

     <action disp="valid" comment="Catch-all if other rules not met"/>

Conceptually, the implicitly defined default actions act just like a 
block of action elements that is added (virtually) beyond the last of 
the user-supplied actions. Any label not processed by the user-supplied 
actions would thus be processed by the default actions as if they were 
present in the LGR. As the last default action is a "catch-all", all 
processing is guaranteed to end with a definite disposition for the label.


>
>
>
> _______________________________________________
> Lager mailing list
> Lager@ietf.org
> https://www.ietf.org/mailman/listinfo/lager